Skip to content

Instantly share code, notes, and snippets.

@Ronnasayd
Created October 13, 2020 14:50
Show Gist options
  • Save Ronnasayd/e7d6cfd24b7a323e3fab636b3165c0a2 to your computer and use it in GitHub Desktop.
Save Ronnasayd/e7d6cfd24b7a323e3fab636b3165c0a2 to your computer and use it in GitHub Desktop.
script for install jenkins
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