How to Install Jenkins in Ubuntu Linux 18.04 & 19.04

Share on :

Jenkins is one of the famous and most used CI/CD Tool in the IT Market today. It can be Integrated with many other tools like git hub , git lab , bit bucket and many more.. It can also be used for testing and as well as for performing automation.

Now lets Install Jenkins in Ubuntu Linux

First of all Install Java. As Jenkins is written in Java.

sudo apt update -y
sudo apt install openjdk-8-jdk -y

After Installing Java you need to add a repository and gpg key to install Jenkins . run the following commands to setup repo and Install Jenkins Package.

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

echo “deb https://pkg.jenkins.io/debian binary/” >> /etc/apt/sources.list | sudo bash

Now Lets Install Jenkins

sudo apt update -y
sudo apt install jenkins -y

Start and Enable the Service of Jenkins.

sudo systemctl start jenkins
sudo systemctl enable jenkins

Now Jenkins is up. Now just open browser and by typing your ip address or localhost with 8080 port ( eg. http://127.0.0.1:8080 )

Jenkins Default Password

To get the default Password of Jenkins. cat the “/var/lib/jenkins/secrets/initialAdminPassword” file and copy the password and paste it on the jenkins dashboard.

cat /var/lib/jenkins/secrets/initialAdminPassword
Jenkins Plugin Selection

Now, either you can go with “Install suggested plugins” or “Select plugins to Install” In Select plugins to install you will get a list of plugins to Install . I am installing suggested plugins.

Plugin Installation

Create a User or you can skip this.

Creating First Admin User
Instance Configuration
Jenkins is Ready
Start using Jenkins 🙂

Follow our Youtube Guide.

YouTube Guide on Installing Jenkins

Share on :

Gaurav Ubnare

Hi, I Gaurav Ubnare is the founder of "Lets Learn Tech". I am RHCSA and RHCE Certified Professional.

You may also like...

Leave a Reply

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