Jenkins regularly releases new versions. To upgrade Jenkins
On Linux
To install the Generic Java Package (.war)
- Write down the current version of Jenkins you have on your server
- Download the Jenkins “Generic Java Package (.war)” file from https://jenkins.io/download/to your workstation
- Upload the installer to Artifactory or other HTTP repository
- SSH into the Jenkins server
- Switch to sudo mode
- Stop the Jenkins service with
service jenkins stop
- Navigate to the Jenkins directory
cd /usr/lib/jenkins/
- Rename the current Jenkins .war file to include the version, so you can restore it if the new version does not work as expected
mv jenkins.war jenkins_2.46.3.war
- Download the Jenkins war file from Artifactory
url -O http://THE_IP_ADDRESS_OF_THE REPOSITORY/.../jenkins.war
- Start the Jenkins service
service jenkins start