Install Jenkins on Ubuntu Machine

We’ve already seen introduction to Jenkins, Architecture, Sample Pipeline and other stuffs. In this post we will be seeing how you can install Jenkins on Linux machine: Ubuntu.

Login to your Ubuntu machine and run below commands.

Since Jenkins is a Java application, the first step is to install Java. 

sudo apt update
sudo apt install openjdk-8-jdk

Import the GPG keys of the Jenkins repository using the following wget command

GnuPrivacyGuard uses public-key cryptography so that users may communicate securely i.e. “enable secure communication between two parties”

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

Add the Jenkins repository to the system

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

Install Jenkins.

sudo apt update
sudo apt install jenkins

Jenkins service will automatically start after the installation process is complete.

systemctl status jenkins
systemctl enable jenkins

This is how you install Jenkins and enable it to start on machine reboot.



Categories: DevOps, Jenkins

Tags: , , , ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: