Created
October 13, 2020 14:50
-
-
Save Ronnasayd/e7d6cfd24b7a323e3fab636b3165c0a2 to your computer and use it in GitHub Desktop.
script for install jenkins
This file contains 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
sudo apt install -y openjdk-8-jre | |
sudo update-alternatives --config java | |
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - | |
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get update | |
sudo apt-get install -y jenkins | |
sudo ufw allow 8080 | |
sudo usermod -aG docker jenkins | |
sudo cat /var/lib/jenkins/secrets/initialAdminPassword | |
sudo systemctl start jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment