Jenkins构建发布Java项目
文章目录 准备工作 安装maven 构建job 发布war包 准备工作 克隆私有仓库到本地: [root@linux01 ~]# git clone git@github.com:AsnFy/test_java.git [root@linux01 ~]# ls test_java/ README.md 下载zrlog的源码作测试: [root@linux01 ~]# wget https://codeload.github.com/94fzb/zrlog/zip/master 解压: [root@linux01 ~]# unzip master 移动文件到本地git仓库: [root@linux01 ~]# mv zrlog-master/* test_java/ 推到私有仓库: [root@linux01 test_java]# git add . [root@linux01 test_java]# git commit -m "add zrlog" [root@linux01 test_java]# git push 在GitHub私有仓库已显示: 在另外一台机器安装jdk和tomcat,用于发布Java项目: [root@linux02 ~]# yum -y install java-1.8.0-openjdk [root@linux02 ~]# wget https:/