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 - | sudo apt-key add -

Add the Jenkins repository to the system

sudo sh -c 'echo deb 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.

Leave a Reply

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

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

Facebook photo

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

Connecting to %s