下载最新war包

到官网 https://updates.jenkins-ci.org/download/war/或者 http://ftp-chi.osuosl.org/pub/jenkins/war-stable/ 下载最新的安装 war 包, 如果有新包的时候Jenkins后台也会有提示的,直接下载就好。

升级

[[email protected] jenkins]# cd /usr/lib/jenkins/
[[email protected] jenkins]# ls
jenkins.war
[[email protected] jenkins]# mv jenkins.war jenkins.war.old # 备份就的war包
[[email protected] jenkins]# wget http://ftp-chi.osuosl.org/pub/jenkins/war-stable/需要升级的版本/jenkins.war
[[email protected] jenkins]# ls
jenkins.war  jenkins.war.old
[[email protected] jenkins]# systemctl restart jenkins 
文章目录