You can use commands below to install Jenkins and Java8 on a Debian Jessie server.


These are the basic packages that your "fresh" Debian system would need. They may already be available in your system but just in case I am putting them here so do not run these commands for now. Use $ dpkg -s name_of_the_package to check if they are installed or not. It should print something like Status: install ok installed.

$ sudo apt-get install -y software-properties-common
$ sudo apt-get install -y python-software-properties
$ sudo apt-get install -y build-essential


$ sudo apt-get install -y debconf-utils
$ sudo sh -c 'echo deb trusty main > /etc/apt/sources.list.d/java-8-debian.list'
$ sudo sh -c 'echo deb-src trusty main > /etc/apt/sources.list.d/java-8-debian.list'
$ sudo apt-key adv --keyserver --recv-keys EEA14886
$ sudo apt-get update
$ echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
$ sudo apt-get install -y oracle-java8-installer
$ sudo apt-get install -y oracle-java8-set-default


$ wget -q -O - | sudo apt-key add -
$ sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
$ sudo apt-get update
$ sudo apt-get install -y jenkins

Logs are stored in /var/log/jenkins/jenkins.log file and the UI is accessible via IP:8080 address.