jenkins installation on linux
Installing Jenkins
The version of Jenkins included with the default Ubuntu packages is often behind the latest available version from the project itself. how to install Jenkins on Linux
Debian/Ubuntu
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
Installation of Java
sudo apt update
sudo apt install openjdk-11-jre
java -version
sudo systemctl enable jenkins
You can start the Jenkins service with the command:
sudo systemctl start jenkins
You can check the status of the Jenkins service using the command:
sudo systemctl status jenkins
If everything has been set up correctly, you should see an output like this:
Opening the Firewall
sudo ufw allow 8080
If you ufw not install it. Install the first following command.
sudo apt install ufw
Visit Following url
Open terminal type command
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Past in the above empty field.
We’ll click the Install suggested plugins option, which will immediately begin the installation process.
Enter User name and Password .
You’ll receive an Instance Configuration page that will ask you to confirm the preferred URL for your Jenkins instance. Confirm either the domain name for your server or your server’s IP address:press the save and finish.
After confirming the appropriate information, click Save and Finish. You’ll receive a confirmation page confirming that “Jenkins is Ready!”:
Click Start using Jenkins to visit the main Jenkins dashboard:jenkins installation on linux
Conclusion
In this tutorial, you installed Jenkins using the project-provided packages, started the server, opened the firewall, and created an administrative user. At this point, you can start exploring Jenkins. jenkins installation on linux.