Skip to content

Instantly share code, notes, and snippets.

@thelazyindian
Last active April 3, 2017 10:34
Show Gist options
  • Save thelazyindian/9dfd4d57c7765934be2b01bd002b77cf to your computer and use it in GitHub Desktop.
Save thelazyindian/9dfd4d57c7765934be2b01bd002b77cf to your computer and use it in GitHub Desktop.
Script to install Jenkins
tput setaf 1
echo "Installing Jenkins..."
echo ""
tput setaf 7
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 nginx openjdk-8-jre openjdk-8-jdk -y
tput setaf 1
echo ""
echo "Jenkins Setup Complete"
tput setaf 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment