Jenkins自动化部署maven项目
2018-07-18 本文已影响0人
年少时难免轻狂Ho
1、下载Jenkins
根据自己的需求下载不同版本的jenkins,我这里下载的是通用的war包


将下载后的war包放到tomcat的webapp目录下,启动tomcat

访问8080端口访问页面

查看初始密码

刚装上以后jenkins似乎不能联网,我们选择跳过插件,我们进行手动安装插件

接下来设置管理员账户和访问地址

接下来我们就能进入jenkins的管理页面了

2、安装插件
安装必要的插件


这时我们直接点击可选安装插件时不能联网的

在高级中来修改插件获取的站点为http://updates.jenkins.io/update-center.json

点击提交后,再次点击可选插件发现已经可以获得可安装插件了

接下来我们可以正常安装插件了
安装svn插件
搜索subversion

安装maven插件
搜索Maven Integration

安装nodejs插件

基本的插件已经安装完成了,接下来我们就可以创建一个任务了。
3、配置环境

我使用的都是本地安装的环境,也可以利用jenkins自动安装环境


基本环境已经具备了,接下来就是创建一个新的任务。
4、创建任务






