Friday, July 17, 2015

Install Jenkins on Ubuntu 14.04


Introduction

To make test case more easy to use, you can use Jenkins to manage the test tasks. This article describe how to install jenkins on Ubuntu 14.04.

Steps

Install Oracle JDK (or any other JDK/JRE you want)

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Install jenkins

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 binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

(Optional) Change Jenkins port

Jenkins will use port 8080 by default, change port as below if needed

# assume change port from 8080 to 9999
# you can also edit /etc/default/jenkins manually
sudo sed -i 's/HTTP_PORT=8080/HTTP_PORT=9999/g' /etc/default/jenkins
# restart jenkins with new port setting
sudo service jenkins restart

Now you can link to jenkins at localhost and start to use it:

http://localhost:8080/

References

How To Install Java on Ubuntu with Apt-Get

Installing Jenkins on Ubuntu

how to change port number for Jenkins installation In Ubuntu 12.04

No comments:

Post a Comment