Created
January 15, 2018 15:51
-
-
Save dvir1994/ce648d366f09469b25a54bf763c2c218 to your computer and use it in GitHub Desktop.
install jenkins master
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
#!/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