Jenkins is the most popular open source automation server. It allows you to automate everything you can write in shell and much more.
Installation
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:
HTTP_PORT=8080
For this tutorial please change Jenkins port to 9091.
sudo nano /etc/default/jenkins ... ctrl+w HTTP_PORT //find HTTP_PORT ... #HTTP_PORT=8080 HTTP_PORT=9091 ... 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:
http://JENKINS_SERVER_IP_ADDRESS:9091/
In my case:
http://192.168.1.56:9091/