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.

 

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:

How To Install Jenkins on Ubuntu 20.04

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 

 

http://localhost:8080 

Unlock Jenkins screen

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.

Customize Jenkins Screen

Enter User name and Password .

Jenkins Create First Admin User Screen

 

 

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.

Jenkins download and deployment

After confirming the appropriate information, click Save and Finish. You’ll receive a confirmation page confirming that “Jenkins is Ready!”:

Jenkins is ready screen

Click Start using Jenkins to visit the main Jenkins dashboard:

 

Welcome to Jenkins Screen

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.

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *