Install Jenkins on Ubuntu 16

Date Posted: 02-07-2017

Jenkins is a deployment application tool which is used for continuous integration and deployment. In this post, we will explain on how to install jenkins on Ubuntu 16.

Prerequisites:

  1. Ubuntu Host
  2. Allow Incoming port 8080.

Implementation:

Consider this is a fresh ubuntu server and we will start with system upgrade. You need to reboot the machine after the upgrade.

apt-get upgrade

Add the jenkins key to the server.

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

Add the jenkins repo to the server.

echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list

Perform update on the server.

apt-get update

Install jenkins on the host.

apt-get install jenkins

Enable jenkins on reboot safe.

systemctl start jenkins

Access the IP address on the browser with the port 8080.

http://IPaddress:8080

We will see an jenkins as like below.

Open the file and get the temporary password.

cat /var/lib/jenkins/secrets/initialAdminPassword

Use the password and enter Administrator password and click on Continue. Setup a new password and click on save.

After that, Install suggested plugins.

This may take some time to complete it.  Now, logout and login with new password which we setup.

 

Leave a Reply