Last active
April 16, 2017 09:19
-
-
Save goyalmohit/7dc7a5a6849d688da744bd044b54ec7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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