Upgrade Jenkins core and plugins (2025Q3)
Last time: Upgrade Jenkins core and plugins (2025Q2) (#42112 - closed)
Preparation
-
Go through the changelog, paying attention to changes on how agents connect to controller, config changes that may need update, important changes in plugins, etc. - Current version: 2.504.3
- Available version: ?
Deployment
-
Use the 0.list-running-jobs.groovy script in the Jenkins Script Console to get a list of queued and running jobs to manually restart in the end of this process -
Deploy Jenkins upgrade to latest version available -
Use the 1.generate-plugins-list.groovy in the Jenkins Script Console and then the 2.generate-puppet-code.py Python 3 script in your machine to generate a list of up-to-date plugins -
Deploy plugin upgrades -
Manually uninstall removed plugins via Jenkins interface -
Manually delete removed plugins from /var/lib/jenkins/plugins
-
Restart all agents from lizard
:for i in isoworker{1,2,3,4,5,6,7,8}; do sudo -u zen ssh $i sudo systemctl reboot; done
-
Manually run the Update jobs script (may be needed so XML is valid with current Jenkins) in jenkins.dragon
:sudo -u jenkins /usr/local/sbin/deploy_jenkins_jobs update
-
Go through warnings in Jenkins interface
Wrap up
-
Restart builds that were interrupted by Jenkins restarts. -
Schedule next update.