Skip to content

Instantly share code, notes, and snippets.

@Caesarsage
Created July 15, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Caesarsage/5da51fff02bb945c932029c4ba48d064 to your computer and use it in GitHub Desktop.
Save Caesarsage/5da51fff02bb945c932029c4ba48d064 to your computer and use it in GitHub Desktop.
Bash script Setup for jenkins instance
sleep 30
sudo yum update –y
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum upgrade
sudo amazon-linux-extras install java-openjdk11 -y
sudo yum install jenkins -y
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment