Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to install Jenkins on your Linux server

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.

Jenkins Installation

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

nano /etc/apt/sources.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 CTRL+X.

3. Update the package list

apt-get update

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.

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: http://<dirección-ip>:8080