02 – Automation server: Jenkins

02 – Automation server: Jenkins

Jenkins is the most popular open source automation server. It allows you to automate everything you can write in shell and much more.


This part of the guide comes from the official Jenkins Wiki.

Important! For this tutorial purposes change default jenkins HTTP port to 9091. The default Jenkins port is 8080 (default apache tomcat port). We are going to install few more tools based on apache tomcat, so to avoid conflicts, we will change every default ports configuration.

Connect to your Ubuntu Server and run:

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

How to change default Jenkins HTTP port

To change default jenkins port (8080) just edit:

sudo nano /etc/default/jenkins

change the line:


For this tutorial please change Jenkins port to 9091.

sudo nano /etc/default/jenkins
ctrl+w HTTP_PORT //find HTTP_PORT
ctrl+o //save
ctrl+x //exit
sudo service jenkins restart

Starting, stopping and restarting Jenkins service in Ubuntu

sudo service jenkins start
sudo service jenkins stop
sudo service jenkins restart

Test Jenkins access

Verify your Jenkins installation now. Open your browser and go:


In my case:


Dashboard [Jenkins] - Mozilla Firefox_001

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments