####Java
# Source: http://stackoverflow.com/questions/15543603/installing-java-7-oracle-in-debian-via-apt-get
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
####Jenkins
sudo apt-get install git
sudo wget -q -O - http://pkg.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
If your /etc/init.d/jenkins file fails to start jenkins, edit the /etc/default/jenkins to replace the line
From HTTP_PORT=8080 to HTTP_PORT=8081
- http://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511
- https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
- http://superuser.com/questions/879392/how-force-jenkins-to-show-ui-always-in-english
- https://www.safaribooksonline.com/library/view/gitlab-cookbook/9781783986842/ch06s05.html