如何升级Jenkins版本

  1. 通过以下命令进入docker容器。

    docker exec -it 容器id /bin/bash
    
  2. 在目录“/var”下面建一个Jenkins的文件夹,然后拉取最新Jenkins包。

    root@jenkins:/var# mkdir jenkins
    root@jenkins:/var# cd jenkins
    root@jenkins:/var/jenkins# wget http://mirrors.jenkins.io/war/latest/jenkins.war
    
  3. 当Jenkins程序包下载好后,进入Jenkins的war包存放的路径,然后备份原来的war包,将新war包复制过来,删除原程序包。

    root@jenkins:/var/jenkins# cd /usr/share/jenkins
    root@jenkins:/usr/share/jenkins# mv jenkins.war jenkins.war.bak
    root@jenkins:/usr/share/jenkins# cp /var/jenkins/jenkins.war .
    root@jenkins:/usr/share/jenkins# rm -rf /var/jenkins/jenkins.war
    
  4. 退出docker容器,重启docker容器即可。

    root@jenkins:/usr/share/jenkins# exit
    [chg@centosy home]$ docker restart 容器id
    
上一篇:rancher2+docker+SpringCloud+jenkins+redis集群+mysql主从搭建:三、安装jenkins (通过rancher部署服务)


下一篇:Proj FuzzViz Paper Reading: An Architecture-Tracking Approach to Evaluate a Modular and Extensible F