Created
May 13, 2012 10:40
-
-
Save simkimsia/2687679 to your computer and use it in GitHub Desktop.
Install Jenkins and related dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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