Skip to content

Instantly share code, notes, and snippets.

@ops-gaurav
Last active March 22, 2018 18:21
Show Gist options
  • Save ops-gaurav/3c826523fcaa4b5720af2267ed111a8d to your computer and use it in GitHub Desktop.
Save ops-gaurav/3c826523fcaa4b5720af2267ed111a8d to your computer and use it in GitHub Desktop.
Configuring jenkins script
#!/bin/bash
echo "Downloading jenkins...."
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 jenkins -y
echo "Starting jenkins..."
sudo systemctl start jenkins
sudo systemctl status jenkins
echo "finished setup jenkins"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment