Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active April 16, 2017 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/7dc7a5a6849d688da744bd044b54ec7c to your computer and use it in GitHub Desktop.
Save goyalmohit/7dc7a5a6849d688da744bd044b54ec7c to your computer and use it in GitHub Desktop.
#update list of repositories
sudo apt-get update
#install jre and jdk
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
#set export variables for java
export JAVA_HOME='/usr/lib/jvm/jre-1.8.0-openjdk'
export JRE_HOME='/usr/lib/jvm/java-8-openjdk-amd64/jre'
#install jenkins on debian based distributions such as ubuntu
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
#configures jenkins service to start at run time
sudo systemctl start jenkins.service
sudo systemctl enable jenkins.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment