Jenkins version upgrade

1. The jenkins version is too low, and some plug-ins cannot be upgraded. At this time, we need to upgrade the jenkins version

insert image description here

2. The first method - pull down will let us download the new version on the jenkins page

insert image description here

3. The second method is to download the war package from the official website

https://www.jenkins.io/

insert image description here

4. Enter the jenkins login machine and find jenkins.war

5. Copy a copy of jenkins.war as a backup

6. Close the jenkins service and check the jenkins status

systemctl stop jenkins
systemctl status jenkins 

7. Move the latest jenkins.war to the current directory

[root@mylinux1 ~]# find / -name jenkins.war
/var/lib/docker/overlay2/9faa04c279a7a03a33a9714036e8132f4812b3e62a4a39e691a3918c082bffc6/diff/usr/share/jenkins/jenkins.war
/var/lib/docker/overlay2/24318a7e61e01f7564924bddd0e90ecb25a75a33b82cc0b81b9d14949ccb9533/merged/usr/share/jenkins/jenkins.war
[root@mylinux1 ~]# cd /var/lib/docker/overlay2/9faa04c279a7a03a33a9714036e8132f4812b3e62a4a39e691a3918c082bffc6/diff/usr/share/jenkins/
[root@mylinux1 jenkins]# ls
jenkins_cp.war  jenkins.war
[root@mylinux1 jenkins]# cd /var/lib/docker/overlay2/24318a7e61e01f7564924bddd0e90ecb25a75a33b82cc0b81b9d14949ccb9533/merged/usr/share/jenkins/
[root@mylinux1 jenkins]# ls
jenkins_cp.war  jenkins.war  ref

insert image description here

8. Start jenkins again (or restart the server directly)

systemctl start jenkins

Guess you like

Origin blog.csdn.net/YZL40514131/article/details/131504777