...
- read the changelog for anything scary
- Log in to the infrastructure machine as jenkins
- we only need to keep a couple of old WAR files, so trim older ones once in a whilein the web application,
Manage Jenkins
|Prepare for shutdown
. This will tell Jenkins to stop executing new jobs, so that it will become safe to shut it down once any running at present have completed. You will start seeing a red banner saying "Jenkins is going to shut down" on every page. - move the old
jenkins.war
intojenkins.war.previous
- pull the latest release using
wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
- make a copy of the new file under its version number, e.g. jenkins.war.1.508
- once the last job running has completed, from an appropriate user:
sudo /sbin/service tomcat-jenkins stop
sudo /sbin/service tomcat-jenkins start
log in to the infrastructure machine and run : sudo yum update jenkins
To stop or start Jenkins :
sudo systemctl stop jenkins
sudo systemctl start jenkins
Once this has restarted, check that things are basically functional before proceeding to update the plugins.
...