O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Jenkins on Ubuntu

Unfortunately, Jenkins is not as straightforward as doing apt-get install. If you try to install Jenkins through sudo apt-get install jenkins, you will get an error saying Jenkins was not found in the repository. Luckily, the Jenkins Wiki did a good job of describing how to install it on Ubuntu (or Debian-based distributions). See: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu, for more information:

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.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 updatesudo apt-get install jenkins

So, what does this do exactly? The wget (or web get) command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required