Frank Robert Anderson

I am a Developer who does web good and likes to do other stuff good too.

Blog Tutorials Rants Everything Back to My Site

Setting Up Jenkins on 12.04

What I have noticed, is that every step by step for installing Jenkins on Ubuntu 12.04 is currently wrong. It is wrong because Jenkins recently began to require Java 1.7 instead of 1.6.

I was able to find one saving grace. This site gave a great step by step on installing Jenkins --which I am going to condense for you all here.

Install the correct JAVA RTE

  1. sudo apt-get purge openjdk*
  2. sudo apt-get install python-software-properties
  3. sudo add-apt-repository ppa:webupd8team/java
  4. sudo apt-get update
  5. sudo apt-get install oracle-java7-installer
  6. java -version

The output of the last command will say something like Java version 1.7.blah blah blah

Install Jenkins

  1. wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
  2. sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
  3. sudo apt-get update
  4. sudo apt-get install jenkins

By default Jenkins listens to port 8080. All you need to do is go to example.com:8080 and ...

Setup Jenkins

I am not going to cover setting up Jenkins. If this is your first time installing Jenkins I recommend doing at least what is has here in the post install portion (Securing Jenkins). It goes over how to do the bare minimum in a secure install.

Bonus

If you don't like how Jenkins is listening only to port 8080, you can set up Jenkins to listen on port 80, or just have nginx do all the hard work.

Written on May 19, 2015 by Frank Robert (frob) Anderson

Social Networks

Blogroll

BTMash's blob of contradictions
LA Grafitti
Justin Biard's icodealot
Copyright Frank Robert Anderson 2020