How to Install Jenkins on Linux Mint
Jenkins is an open-source automation server that provides hundreds of plugins to support building, deploying, and automating any project. Here's how you can install Jenkins on Linux Mint:
Step 1: Update the System
Open the Terminal and update the system using the following command:
sudo apt update && sudo apt upgrade
Step 2: Install Java
Jenkins is built on Java, so you must have Java installed on your system. To install Java, run the following command:
sudo apt install openjdk-11-jdk openjdk-11-jre
Step 3: Install Jenkins
Jenkins is not available in the default Linux Mint repository. So, you need to add the Jenkins repository key to the system and then set up the Jenkins repository. Run the following commands one by one:
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Update the system package list by running the following command:
sudo apt update
Finally, install Jenkins on your Linux Mint system using the command given below:
sudo apt-get install jenkins
Step 4: Start the Jenkins Service
Once Jenkins is installed on your system, you need to start its service by running:
sudo systemctl start jenkins
Step 5: Verify Jenkins Installation
To verify that Jenkins is installed and running without errors, use the following command:
sudo systemctl status jenkins
Once the command is executed, it should display that the Jenkins service is active and running. Open your web browser and enter http://localhost:8080/ or http://your-ip-address:8080/ to access the Jenkins web console.
That's it! You have successfully installed Jenkins on your Linux Mint machine. You can now start creating pipelines, jobs, and workflows to automate your development process.