Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created May 13, 2012 10:40
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 simkimsia/2687679 to your computer and use it in GitHub Desktop.
Save simkimsia/2687679 to your computer and use it in GitHub Desktop.
Install Jenkins and related dependencies
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
# Copyright (c) 2011 Cake Development Corporation (http://cakedc.com)
#
# Ubuntu 11.xx server installation script for Jenkins
# Run this by executing the following from a fresh install of Ubuntu 11.xx server:
#
# bash -c "$(curl -fsSL https://raw.github.com/gist/2687679)"
#
# Also, run this as root, unless you enjoy failing.
#
# Its handy to install 'screen' if you want to ensure your remote connection to
# a server doesn't disrupt the installation process. If you want to do this, just
# do the following before running the main bash command:
#
# apt-get install screen -y
# screen
#
# To recover your session if you are disconnected, ssh to your server as root again,
# and type:
#
# screen -x
#
# Dependencies:
# - curl
#
# Todo:
# - SSL Configuration
#
###
export DEBIAN_FRONTEND=noninteractive
########################################
## System Updates
########################################
apt-get update
apt-get install \
curl \
aptitude \
-y
apt-get upgrade -y
########################################
## Jenkins
########################################
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install \
openjdk-7-jre \
openjdk-7-jdk \
jenkins \
-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment