当前位置:网站首页>Upgrade Jenkins steps and problems encountered

Upgrade Jenkins steps and problems encountered

2022-06-21 07:43:00 Operation and maintenance @ small soldier

One 、 background

Because of my pipeline Need to use readYaml, So install Utility Steps plug-in unit , But restart after installation Jenkins, Find many job All have no ,slave Several nodes are offline .
The reason for the above problems is my Jenkins The version is relatively low , by 2.201.1, According to the prompt message of the plug-in , I need to upgrade to 2.277.4 edition

Two 、 Backup

cd ${tomcat_home}/webapps
cp jenkins.war jenkins.war.bak
cd ~
zip -r jenkins_home.zip .jenkins	# Backup jenkins_home

3、 ... and 、 download jenkins.war

Download address :https://mirrors.jenkins.io/war-stable/
Find the corresponding version and download it

Put the new war Put the bag in ${tomcat_home}/webapps Next , restart tomcat

Four 、 problem

Log in after reboot Jenkins Report the following error

 Insert picture description here
solve :
download hpi file , And put it in /home/admin/.jenkins/plugins/ below

Role strategy hpi plugin The download link for is :https://updates.jenkins.io/latest/role-strategy.hpi

restart Jenkins

Free style job Click save and nothing happens , The front end reports the following errors

 Insert picture description here

reason

Official documents
 Insert picture description here

The previous plug-ins are not upgraded to the latest version, resulting in

solve

Upgrade all plug-ins to the latest version , restart Jenkins that will do

原网站

版权声明
本文为[Operation and maintenance @ small soldier]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206210733591639.html