Hello all, Let’s learn how to install Jenkins on an Ubuntu VPS easily without wasting your time. This is an easy and short article that is only made for showing all the steps you need to follow. Before going to the installation process, you must already have a VPS with Ubuntu Installation with an unblocked 8080 port.

First, let’s update the OS and install java on VPS. Run the following command one by one to make it.

sudo apt update
sudo apt install openjdk-8-jdk

Then, run all the following commands one by one to install Jenkins.

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install jenkins

99% Done. Let’s start the Jenkins server and configure it for production use.

sudo systemctl start jenkins
sudo systemctl status jenkins

All done. I hope you got a good status report and now you just have to make type the IP with port {your-ip:8080} on the URL bar and find the password by using the following line.

Unlock Jenkins screen

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Then you can follow the UI parts to make it completed.

Welcome to Jenkins Screen

That’s all. I hope all are well. Just leave a comment below if you got any issues.

Write A Comment