539 views 35 secs 0 comments

How to install Jenkins in Ubuntu 18.04.LTS – 2020

In General
October 21, 2020
How to install Jenkins on Ubuntu 18.04.TLS

Install and Configure Jenkins on Ubuntu 18.04.TLS

Step 1: Log in to your ubuntu server and update it.

sudo apt-get -y update

Step 2: Install Java runtime environment (JDK)

sudo apt install openjdk-11-jdk -y

Step 3: Add the Jenkins keys to your system so you can download the build

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

Step 4: Create the Jenkins build list file

sudo touch /etc/apt/sources.list.d/jenkins.list

Step 5: Add the Jenkins build ID to the build List file

sudo sh -c 'echo "deb https://pkg.jenkins.io/debian-stable binary/" >>/etc/apt/sources.list.d/jenkins.list'

Step 6: Update the packages

sudo apt-get update -y

Step 7: Install Jenkins

sudo apt-get install jenkins -y

Step 8: Start Jenkins

sudo service jenkins start

Step 9: Open your local browser and enter


Step 10: To get the initial password, open or cat your initial admin password file:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword
How to install Jenkins on Ubuntu 18.04.TLS
How to install Jenkins on Ubuntu 18.04.TLS

Where to find Jenkins Logs – The initial Jenkins password is also here



Leave a Reply
You must be logged in to post a comment.