Install and upgrade Jenkins on Ubuntu
Carvia Tech | April 30, 2019 | 1 min read | 23 views
In this short tutorial we will apply minor update to existing Jenkins installation on Ubuntu machine.
Common location of jenkins war file on ubuntu server is:
Update the installation
$ sudo service jenkins stop
$ sudo mv jenkins.war jenkins.war.old
$ cd /usr/share/jenkins $ sudo wget https://updates.jenkins-ci.org/latest/jenkins.war
$ sudo service jenkins start
If we are running jenkins using root permissions, (which we should not be doing) we need to change the jenkins.war permissions.
$ sudo chown root:root jenkins.war
We 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:
- Installing nginx on macOS Mojave using brew
- Install Artifactory OSS private maven repository
- Basic Unix commands for every programmer
Find more on this topic:
Recommended books for interview preparation:
Enter your email address to subscribe to this blog and receive notifications of new posts by email.