In this section, we will take you through the steps to install Jenkins, the GitHub plugin for Jenkins and git, and the revision control tool. The steps are as follows:
- We begin with adding the Jenkins' trusted PGP public key:
$ wget -q -O - \ https://jenkins-ci.org/debian/jenkins-ci.org.key | \ sudo apt-key add -
Here, we are using wget to download the PGP public key, and then we add it to the list of trusted keys using the apt-key tool. Since Ubuntu and Debian share the same software packaging, Jenkins provides a single common package for both Ubuntu and Debian.
- Add the Debian package location to the apt package source list, as follows:
$ sudo sh -c \ 'echo deb http://pkg.jenkins-ci.org/debian binary/ ...