Install and upgrade Jenkins on Ubuntu 18.04 LTS

Carvia Tech | July 29, 2019 | 1 min read | 2,038 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

Stop the jenkins server
$ sudo service jenkins stop
Move existing jenkins war file
$ sudo mv jenkins.war jenkins.war.old
Download latest jenkins war file
$ cd /usr/share/jenkins
$ sudo wget
Start the Jenkins server
$ sudo service jenkins start

Troubleshooting steps

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
$ sudo apt-get update
$ sudo apt-get install jenkins

Top articles in this category:
  1. DevOps interview questions - Basic Concepts, Microservices, Databases, AWS
  2. Install OpenJDK 11 on Ubuntu 18.04 LTS
  3. Upgrade MySQL from 5.7 to 8 on Ubuntu 18.04
  4. Installing nginx on macOS Mojave using brew
  5. Install Artifactory OSS private maven repository
  6. Basic Unix commands for every programmer
  7. Difference between Forward Proxy and Reverse Proxy Server

Find more on this topic:
Dev Ops image
Dev Ops

Dev Ops Automation - Ubuntu OS, Centos, MySql, MongoDB, Java, AWS Infrastructure.

Last updated 1 week ago

Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info