Jenkins Installation

Jenkins is an open source tool which is widely used for 
Continuous Integration and Continuous delivery. This is very
famous and accepted tool in Software Development Industry.
This works with others tool to develop a software fast and
accuracy. Let’s install it now.

We are assuming that you have internet connectivity on the
machine so that you can configure repo and can install
required packages.

Let’s download Jenkins repo and import its key.
# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo

# rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
Now go ahead and install some dependency packages and Jenkins.
# yum install fontconfig java-17-openjdk

# yum install jenkins –y
Once Jenkins installed. Now start and enable Jenkins service.
# systemctl start Jenkins

# systemctl enable Jenkins
Now check status and see what details it is showing to you.
# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
     Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-05-08 08:44:43 IST; 51s ago
   Main PID: 366778 (java)
      Tasks: 45 (limit: 10804)
     Memory: 410.5M
        CPU: 46.748s
     CGroup: /system.slice/jenkins.service
             └─366778 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

May 08 08:44:02 jenkins.kb.com jenkins[366778]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
May 08 08:44:02 jenkins.kb.com jenkins[366778]: *************************************************************
May 08 08:44:02 jenkins.kb.com jenkins[366778]: *************************************************************
May 08 08:44:02 jenkins.kb.com jenkins[366778]: *************************************************************
Jenkins URL works on port 8080. So Web URL will be 
http://IPAddress:8080 and as above in status command you can
see where is the initial password and you can cat the file to
see password.
# cat /var/lib/jenkins/secrets/initialAdminPassword
And open the URL now: http://192.168.64.205:8080/

It will give you below screen and ask for password you have in
above file.
Next page will show you to install plugins. You can select the 
plugins and you can leave up to setup. I am keeping the default.
Now it is progressing.
Now create first admin user. You can also skip the step if you 
want. It will take you to instance configuration. Save and
Finish it.
Now start using it. Below is the home page which will opened 
once you are into it.

Leave a Reply

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