How to Install Jenkins on Ubuntu 17.04 | 17.10

Jenkins is an extensible, self-contained Java-based automation opensource server. It provides means for building, deploying and automating any project using hundreds of different plugins.  Right out of the box, Jenkins supports Windows, Mac OS X and other Unix-like operating systems.

Jenkins can easily be setup using its web-based interface to automate tasks and projects and supports many of the version control tools available, including Git, subversion and many more. This brief tutorial is going to show students and new users how to install Jenkins on Ubuntu 17.04 | 17.10 Servers.

When you’re ready to install Jenkins on Ubuntu, continue with the steps below

Installing Jenkins on Ubuntu

To install Jenkins on Ubuntu, run the commands below to update the server.

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

After running the above, commands, continue below with installing Jenkins’ repository.

Run the commands below to add Jenkins’ repository key to Ubuntu.

wget -q -O - | sudo apt-key add -

After that, run the commands below to add the repository.. the key is require on Ubuntu so that is can authenticate packages being downloaded from the Jenkins’ repository server.

sudo sh -c "echo 'deb binary/' > /etc/apt/sources.list.d/Jenkins.list"

When the repository and key have been added, run the commands below to update Ubuntu so that packages in the Jenkins’ repository can be refreshed and visible to Ubuntu servers.

sudo apt update

Finally, run the commands below to install Jenkins

sudo apt install jenkins

After installing, the commands below can be used to stop, start and enable Jenkins to always startup when the server boots

sudo systemctl stop jenkins.service
sudo systemctl start jenkins.service
sudo systemctl enable jenkins.service

Logging on to Jenkins

After installing Jenkins, it listens on port 8080 by default. To access its portal, open your favorite web browser and browse to the server hostname or IP address followed by port 8080


You should be prompted with a logon page… the default username is admin. The password is stored in the file below


Open it and copy the password from the file above and paste in the password field to logon.

jenkins ubuntu

Congratulations! You’ve successfully installed Jenkins on Ubuntu 17.04 | 17.10

You may also like the post below:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.