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.
💡 Attention: 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.
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. This is a very common and normal procedure.
2. Add the Jenkins repository to your repository list.
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
3. Update the package list
The above 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 above command, you will be able to complete the Jenkins installation. It's as easy as that.
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: