Jenkins: Installation on Ubuntu/Debian Machine

Installing Jenkins on Ubuntu or Debian

Mohit Sethi
Appliedcode
1 min readJul 6, 2014

--

* If you are installing Jenkins on Debian or Ubuntu, it is convenient to install the native binary package for these platforms. So. First of all, you need to add the key to your system as below:
$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

$ sudo echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list

* Now, we update the Debian package repository, to check whether key is set and package are easily extracted.
$ sudo apt-get update -y

* Once this is done, you can install Jenkins using apt-get tool:
$ sudo apt-get install -y jenkins

This will install jenkins as a service, with a correclty configured script at /etc/init.d/jenkins and a corresponding system user called "jenkins".

* By default, you will find the jenkins WAR file in the /usr/share/jenkins directory, and the Jenkins home directory in /var/lib/jenkins.

* Now, you can start the Jenkins service:
$ sudo /etc/init.d/jenkins start
or
$ sudo service jenkins start
* You can see the Jenkins dashboard at http://localhost:8080/
If you can see the dashboard that means you have correct installation on Debain/Ubuntu

This is way to install to Jenkins on Debian/Ubuntu Machine. Other Machines (REDHAT, CentOS) will require some changes.

--

--

Mohit Sethi
Appliedcode

OpenSource | DevSecOps | DataScience | Machine Learning | ChatBots | Robotic Process Automation(RPA) | Coffee lover | Codes for a better world | Opinions = Mine