Skip to content

Instantly share code, notes, and snippets.

@dimitardanailov
Last active October 19, 2015 09:14
Show Gist options
  • Save dimitardanailov/333a2094fa81f94b8b79 to your computer and use it in GitHub Desktop.
Save dimitardanailov/333a2094fa81f94b8b79 to your computer and use it in GitHub Desktop.
Jenkins and Debian

Installation

####Java

# Source: http://stackoverflow.com/questions/15543603/installing-java-7-oracle-in-debian-via-apt-get

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer

####Jenkins

sudo apt-get install git

sudo 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'
sudo apt-get update

sudo apt-get install jenkins

Change port of jenkins

If your /etc/init.d/jenkins file fails to start jenkins, edit the /etc/default/jenkins to replace the line

From HTTP_PORT=8080 to HTTP_PORT=8081

Source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment