How to install Jenkins in Ubuntu 18.04.LTS – 2020

How to install Jenkins on Ubuntu 18.04.TLS

DevOps CI/CD class starts:

Get a $50.00 OFF, if you enroll now. 

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 - | 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 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

Your email address will not be published. Required fields are marked *


Enjoy this blog? Please spread the word :)