Linux installation
We will install Jenkins on a Ubuntu 16.04 Digital Ocean Droplet; please follow the instructions to install Jenkins on your specific Linux distribution on the button link on the Jenkins download page (https://jenkins.io/download/). You can click on one of the Linux distributions that Jenkins is officially supported on, but, for the purposes of this section, we will be looking at installing Jenkins on the Ubuntu operating system on a Digital Ocean Droplet.
Installing Jenkins on Ubuntu
Run the following command to add the repository key to your system:
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
When the key is added, the system will return OK
.
Next, we will append the Debian package repository address to the server's sources.list
by running this command:
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
Next, we need to update the repositories in the system by running the following command...