Skip to content

Instantly share code, notes, and snippets.

@chfw
Created September 16, 2018 16:27
Show Gist options
  • Save chfw/106e63fa9aa191696f54c7b14a177e39 to your computer and use it in GitHub Desktop.
Save chfw/106e63fa9aa191696f54c7b14a177e39 to your computer and use it in GitHub Desktop.
create an instance in gcloud
you need java
sudo apt install openjdk-8-jre-headless
then following these commands
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
startup
sudo /etc/init.d/jenkins start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment