In this manual, we will show you how to install "Jenkins" on your own Server. This way you can count on your own pipelines for CI/CD in a completely private environment.
Attention: This manual has been made and tested correctly in Ubuntu 18.04. It is possible that for other distributions or versions the steps change.
All instructions in this manual assume that you have superuser privileges, which are essential to complete all the steps correctly.
1. Download and install the public key from the Jenkins repository
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. It is a very common and normal procedure.
2. Add Jenkins repository to your list of repositories
The previous command will open our list of repositories with a text editor. Next, 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
CTRL + X.
3. Update the list of packages
The previous command will update the list of packages, including those from the Jenkins repository that we have added.
4. Install Jenkins with the package manager
apt-get install jenkins
Finally, with the previous command, you can complete the installation of Jenkins. Is that easy.
If you have followed the previous steps correctly, you will already have Jenkins installed and you will be able to connect to it through a web browser through port 8080. For example: