Skip to content

Instantly share code, notes, and snippets.

@dvir1994
Created January 15, 2018 15:51
Show Gist options
  • Save dvir1994/ce648d366f09469b25a54bf763c2c218 to your computer and use it in GitHub Desktop.
Save dvir1994/ce648d366f09469b25a54bf763c2c218 to your computer and use it in GitHub Desktop.
install jenkins master
#!/bin/bash
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update -y
sudo apt-get install openjdk-7-jdk -y
sudo apt-get install openjre-7-jre -y
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 -y
sudo apt-get install jenkins -y
: <<'COMMENT'
then get the pass from file
/var/lib/jenkins/secrets/initialAdminPassword
optional:
insert key automatically after install with curl
COMMENT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment