Setting up Jenkins on Ubuntu 14.04

Installing Jenkins
To install Jenkins, first we will need to download this key and add it to our system using this command: Next, we will need to add this entry to our sources.list using this command: Next, update the local package index and install Jenkins
Setting up Jenkins
After installation, we can start jenkins by executing the start up script found in our /etc/init.d folder. However, if you have installed tomcat or other apps using port 8080, you will most likely encounter this error. So, how do we resolve this? We simply open this file: '/etc/default/jenkins', then, we will have to edit this line: That line will set the port to 8090, or some other port if you prefer another one. Now that we've overcome that problem, we will need to setup an apache proxy for port 8090. If you haven't got apache installed in your system, go ahead and do so. Once apache is installed, perform the following commands: Next, create a file called 'jenkins.conf' under '/etc/apache2/sites-available' and in the file, add this: After that perform these commands: If you get an error similar to this: Don't worry, it is just a friendly warning and not really a problem. If you really wanted to get rid of it though, try these commands: Now, if everything went well, jenkins should be up and running. You can access it via 'localhost:8090'.


Meep Musings

I am a free lamb who loves travels around the world, exploring different cultures, meeting interesting people and I talking about anything and everything under the sun. :)