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


Prerequisites


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

Java8


$ sudo apt-get install -y debconf-utils
$ sudo sh -c 'echo deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main > /etc/apt/sources.list.d/java-8-debian.list'
$ sudo sh -c 'echo deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main > /etc/apt/sources.list.d/java-8-debian.list'
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --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

Jenkins


$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.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
$ 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.