Skip to content

Instantly share code, notes, and snippets.

@JohnProg
Created July 25, 2017 17:46
Show Gist options
  • Save JohnProg/6fa0859045acaa70835d0593f9a8c100 to your computer and use it in GitHub Desktop.
Save JohnProg/6fa0859045acaa70835d0593f9a8c100 to your computer and use it in GitHub Desktop.
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
java -version
# Download the security key for the Jenkins repository & add it to the keychain
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
# Add the Jenkins sources to apt
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
# Update the list of packages
sudo apt-get update
# Install Jenkins (will also install its dependencies, eg OpenJDK)
sudo apt-get install jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment