How to Install Jenkins on Ubuntu

In this tutorial we will learn how to install Jenkins server on Linux, Jenkins is the leading open-source continuous integration server. Jenkins built with java and running in Apache Tomcat. Jenkins has 1000+ plugins for support building and testing virtually any project. It supports SCM tools including CVS, Subversion, Git, Mercurial and RTC.You can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands.

Simple Steps to Install Jenkins In Linux

wget -q -O - https://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

If already has, you can update with below steps:

sudo apt-get update
sudo apt-get install jenkins

You can access http://localhost:8080

Download jenkins war for Linux and Install

You can also use .war file of Jenkins with tomcat, there are following steps need to use jenkins as a .war file

1 – Install tomcat7 (sudo apt-get install tomcat7)
2 – Copy jenkins.war file into webapps directory.
3 – You can access jenkins using this (http://localhost:8080/jenkins) url.