/usr/share/jenkins
Upgrade Jenkins on Ubuntu 18.04 LTS
Upasana | September 30, 2020 | 1 min read | 7,924 views
In this short tutorial we will apply minor update to existing Jenkins installation on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS machine.
Common location of jenkins war file on ubuntu server is:
Update the installation
cd /usr/share/jenkins
sudo service jenkins stop
sudo mv jenkins.war jenkins.war.old
sudo wget https://updates.jenkins-ci.org/latest/jenkins.war
sudo service jenkins start
Everything should be good now.
Troubleshooting steps
If you are running jenkins using root permissions, (which you should not be doing), you need to change the jenkins.war permissions.
$ sudo chown root:root jenkins.war
You can optionally restart the jenkins server using below command:
$ sudo /etc/init.d/jenkins restart
If you are not able to find jenkins war file in standard path, you can goto Manage Jenkins → System Information, it will display the path to the .war file.
On ubuntu, you can also try the below two commands to update everything:
$ sudo apt-get update $ sudo apt-get upgrade
As per jenkins official wiki: https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu
$ sudo apt-get update $ sudo apt-get install jenkins
Top articles in this category:
- Install OpenJDK 11 on Ubuntu 18.04 LTS
- Upgrade MySQL from 5.7 to 8 on Ubuntu 18.04
- Install ElasticSearch 7 on Ubuntu 20.04
- Install & configure Redis on Ubuntu
- Install Cassandra 4 on Ubuntu 20.04
- Install RabbitMQ and Erlang 23 on Ubuntu 20
- Permanent swap space in Ubuntu