Create a Continuous Integration Server With Jenkins On Ubuntu 14.04

Ref: [1]

Installing Prerequisite

1
2
3
4
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
java -version

Installing Jenkins

1
2
3
4
5
6
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

sudo service jenkins status

We know that Jenkins is running, let’s check whether Jenkins is already listening on port 8080:

sudo netstat -naptu | grep LISTEN | grep 8080

Installing Nginx

1
2
sudo apt-get -y install nginx
sudo service nginx status

Configure nginx