Installing the latest version of Jenkins

To install the latest version of Jenkins, follow these steps in sequence:

  1. Add the repository key to the system using the following command:
        wget --no-check-certificate -q -O \
- https://pkg.jenkins.io/debian/jenkins-ci.org.key | \

sudo apt-key add -
  1. You should get an output of OK. Next, append the Debian package repository address using the following command:
        echo deb http://pkg.jenkins.io/debian binary/ | \
sudo tee /etc/apt/sources.list.d/jenkins.list
  1. Update the package index:
        sudo apt-get update 
  1. Now, install Jenkins using the following command:
        sudo apt-get install jenkins 
  1. See the Starting, stopping, and restarting Jenkins on Ubuntu section if you are required to start Jenkins.
  2. Jenkins is now ready for use. By default, the Jenkins service runs on port 8080. To access Jenkins, use http://localhost:8080/ or http://<Jenkins server IP address>:8080/ in a browser .