In this manual we will show you how to install Jenkins in your own Server. This way you will be able to have your own pipelines for CI/CD in a totally private environment.
info This manual has been made and tested correctly on Ubuntu 18.04. It is possible that for other distributions or versions the steps may change. All instructions in this manual assume that you have superuser privileges, which are essential to correctly complete all steps.
wget -q -O - [https://pkg.jenkins.io/debian-stable/jenkins.io.key](https://pkg.jenkins.io/debian-stable/jenkins.io.key) | sudo apt-key add -
This public key certifies the origin of the packages to be installed and prevents attempts to impersonate the manufacturer. This is a very common and normal procedure.
The above command will open our repository list with a text editor. Then add the following line to the end of the document.
deb https://pkg.jenkins.io/debian-stable binary/
Save the changes with
CTRL+O and exit the editor with
The above command will update the list of packages, including those from the Jenkins repository that we have added.
apt-get install jenkins
Finally, with the above command, you will be able to complete the Jenkins installation. It's as easy as that.
success That's it! If you have followed the above steps correctly, you will already have Jenkins installed and you will be able to connect to it via a web browser through port 8080. For example: