How to Install Jenkins on POP! OS Latest via https://jenkins-ci.org/

Jenkins is an open-source automation server that helps automate parts of the software development process, including building, testing, and deploying. In this tutorial, we will learn the process of installing Jenkins on POP! OS Latest.

Prerequisites

Step 1: Install dependencies

Before installing Jenkins, we need to ensure that all dependencies required by Jenkins are installed. Open the Terminal and execute the following command:

sudo apt update && sudo apt install -y wget gnupg2

This will update the package list and update any outdated packages, then install wget and gnupg2.

Step 2: Install Java

Jenkins requires java to be installed on the system, so we need to install java first. Open the terminal and execute the following command to install OpenJDK 11:

sudo apt install -y default-jdk

Once installed, verify the installation using the command:

java -version

The output should show the java version number.

Step 3: Add the Jenkins Repository Key

Before we can download and install Jenkins, we need to add the Jenkins repository key to the system. This key will ensure that we download authentic packages from the Jenkins repository.

Execute the following command in the terminal to add the Jenkins repository key:

wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

This will download the Jenkins repository key and add it to the system.

Step 4: Add the Jenkins Repository

After adding the Jenkins repository key, we need to add the Jenkins repository to the system.

Execute the following command in the terminal:

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

This will add the Jenkins repository to the system.

Step 5: Install Jenkins

After adding the Jenkins repository, we can now download and install Jenkins.

Execute the following command in the terminal:

sudo apt update && sudo apt install -y jenkins

This will update the package list and install Jenkins.

Step 6: Start and Enable Jenkins Service

After installing Jenkins, we need to start and enable the Jenkins service to launch Jenkins on system startup.

Execute the following commands in the terminal:

sudo systemctl start jenkins
sudo systemctl enable jenkins

This will start the service and enable it so that it launches automatically on system startup.

Step 7: Verify Jenkins Installation

After completing the Jenkins installation, we can verify it by accessing the Jenkin's web interface. Open a web browser and type the following URL:

http://localhost:8080

You should see the Jenkins login page in your web browser; enter the administrative password which can be found at "/var/lib/jenkins/secrets/initialAdminPassword" by executing the following command in your terminal:

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

After entering the initial password, click on the "Install suggested plugins" button. After the installation process, you will be redirected to the Jenkins home page.

Conclusion

We have successfully installed Jenkins on POP! OS Latest via https://jenkins-ci.org/. Now we can use Jenkins to automate different processes related to software development.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!