Tuesday 22 September 2015

Part 4 -- Setup Jenkins and gerrit: Install Jenkins

In this part, we will install and configure Jenkins.

Install Jenkins:
Follow below instructions to do so.
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 -y install openjdk-7-jdk
sudo apt-get -y install jenkins
Upgrade:
Once Jenkins have been installed, you can update to the latest version.
sudo apt-get update
sudo apt-get install jenkins
Salient Files:
  • Jenkins logs: /var/log/jenkins/jenkins.log. 
  • Configuration parameters: /etc/default/jenkins. e.g. JENKINS_HOME 
  • By default, Jenkins listen on port 8080.
Access Jenkins:
Browse to <jenkins-ip>:8080.

No comments:

Post a Comment