Lab1 Jenkins installation

I followed this command to install jenkins on provided lab which is a centOS env,
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo “deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]”
Debian Jenkins Packages binary/ | sudo tee
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins

After that when I start the jenkins it does not start and when I check the status it gives me the below error.

[bob@centos-host ~]$ sudo systemctl status jenkins -l
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2024-04-17 19:30:10 UTC; 5min ago
Process: 78558 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 78558 (code=exited, status=1/FAILURE)

Apr 17 19:30:10 centos-host systemd[1]: Failed to start Jenkins Continuous Integration Server.
Apr 17 19:30:10 centos-host systemd[1]: Unit jenkins.service entered failed state.
Apr 17 19:30:10 centos-host systemd[1]: jenkins.service failed.
Apr 17 19:30:10 centos-host systemd[1]: jenkins.service holdoff time over, scheduling restart.
Apr 17 19:30:10 centos-host systemd[1]: Stopped Jenkins Continuous Integration Server.
Apr 17 19:30:10 centos-host systemd[1]: start request repeated too quickly for jenkins.service
Apr 17 19:30:10 centos-host systemd[1]: Failed to start Jenkins Continuous Integration Server.
Apr 17 19:30:10 centos-host systemd[1]: Unit jenkins.service entered failed state.
Apr 17 19:30:10 centos-host systemd[1]: jenkins.service failed.

Could someone help on this?

You listed apt commands which would not run on a centos system as it uses dnf/yum

Also the tasks says to change the port but I don’t see where you did that.

Hello! al1, Thank you for your response.

I actually used yum commands but pasted wrong commands here, if I used apt-get commands in centos they would all give error but here all the commands ran perfectly and it is giving me the above error.

The correct commands:

And for changing the port, I wanted to perform clean default installation first to understand it better and will later try to use the port change.

Please paste the commands you actually entered and their output in a code block </>- this allows us to see what happened.

Commands used:
sudo wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
sudo yum upgrade

Add required dependencies for the jenkins package

sudo yum install fontconfig java-17-openjdk
sudo yum install jenkins
sudo systemctl daemon-reload

sudo wget -O /etc/yum.repos.d/jenkins.repo \
>     https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2024-04-18 08:36:54--  https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 151.101.2.133, 151.101.66.133, 151.101.130.133, ...
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.2.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85
Saving to: ‘/etc/yum.repos.d/jenkins.repo’

100%[=====================================>] 85          --.-K/s   in 0s      

2024-04-18 08:36:54 (8.89 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]

[bob@centos-host ~]$ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
[bob@centos-host ~]$ sudo yum upgrade
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.lug.mtu.edu
 * epel: ix-denver.mm.fcix.net
 * extras: mirrors.gigenet.com
 * updates: mirror.vacares.com
jenkins                                                 | 2.9 kB     00:00     
jenkins/primary_db                                        |  49 kB   00:00     
Resolving Dependencies
--> Running transaction check
---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.13 will be updated
---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.15 will be an update
---> Package ca-certificates.noarch 0:2022.2.54-74.el7_9 will be updated
---> Package ca-certificates.noarch 0:2023.2.60_v7.0.306-72.el7_9 will be an update
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be updated
---> Package curl.x86_64 0:7.29.0-59.el7_9.2 will be an update
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-14 will be an update
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be updated
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.2 will be an update
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be updated
---> Package libssh2.x86_64 0:1.8.0-4.el7_9.1 will be an update
---> Package nspr.x86_64 0:4.34.0-3.1.el7_9 will be updated
---> Package nspr.x86_64 0:4.35.0-1.el7_9 will be an update
---> Package nss.x86_64 0:3.79.0-5.el7_9 will be updated
---> Package nss.x86_64 0:3.90.0-2.el7_9 will be an update
---> Package nss-softokn.x86_64 0:3.79.0-4.el7_9 will be updated
---> Package nss-softokn.x86_64 0:3.90.0-6.el7_9 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.79.0-4.el7_9 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.90.0-6.el7_9 will be an update
---> Package nss-sysinit.x86_64 0:3.79.0-5.el7_9 will be updated
---> Package nss-sysinit.x86_64 0:3.90.0-2.el7_9 will be an update
---> Package nss-tools.x86_64 0:3.79.0-5.el7_9 will be updated
---> Package nss-tools.x86_64 0:3.90.0-2.el7_9 will be an update
---> Package nss-util.x86_64 0:3.79.0-1.el7_9 will be updated
---> Package nss-util.x86_64 0:3.90.0-1.el7_9 will be an update
---> Package openssh.x86_64 0:7.4p1-22.el7_9 will be updated
---> Package openssh.x86_64 0:7.4p1-23.el7_9 will be an update
---> Package openssh-clients.x86_64 0:7.4p1-22.el7_9 will be updated
---> Package openssh-clients.x86_64 0:7.4p1-23.el7_9 will be an update
---> Package openssh-server.x86_64 0:7.4p1-22.el7_9 will be updated
---> Package openssh-server.x86_64 0:7.4p1-23.el7_9 will be an update
---> Package python.x86_64 0:2.7.5-93.el7_9 will be updated
---> Package python.x86_64 0:2.7.5-94.el7_9 will be an update
---> Package python-libs.x86_64 0:2.7.5-93.el7_9 will be updated
---> Package python-libs.x86_64 0:2.7.5-94.el7_9 will be an update
---> Package systemd.x86_64 0:219-78.el7_9.7 will be updated
---> Package systemd.x86_64 0:219-78.el7_9.9 will be an update
---> Package systemd-libs.x86_64 0:219-78.el7_9.7 will be updated
---> Package systemd-libs.x86_64 0:219-78.el7_9.9 will be an update
---> Package tzdata.noarch 0:2023c-1.el7 will be updated
---> Package tzdata.noarch 0:2024a-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
 Package              Arch     Version                         Repository
                                                                          Size
===============================================================================
Updating:
 bind-license         noarch   32:9.11.4-26.P2.el7_9.15        updates    92 k
 ca-certificates      noarch   2023.2.60_v7.0.306-72.el7_9     updates   923 k
 curl                 x86_64   7.29.0-59.el7_9.2               updates   271 k
 epel-release         noarch   7-14                            epel       15 k
 libcurl              x86_64   7.29.0-59.el7_9.2               updates   223 k
 libssh2              x86_64   1.8.0-4.el7_9.1                 updates    88 k
 nspr                 x86_64   4.35.0-1.el7_9                  updates   128 k
 nss                  x86_64   3.90.0-2.el7_9                  updates   905 k
 nss-softokn          x86_64   3.90.0-6.el7_9                  updates   383 k
 nss-softokn-freebl   x86_64   3.90.0-6.el7_9                  updates   321 k
 nss-sysinit          x86_64   3.90.0-2.el7_9                  updates    67 k
 nss-tools            x86_64   3.90.0-2.el7_9                  updates   557 k
 nss-util             x86_64   3.90.0-1.el7_9                  updates    80 k
 openssh              x86_64   7.4p1-23.el7_9                  updates   510 k
 openssh-clients      x86_64   7.4p1-23.el7_9                  updates   655 k
 openssh-server       x86_64   7.4p1-23.el7_9                  updates   459 k
 python               x86_64   2.7.5-94.el7_9                  updates    97 k
 python-libs          x86_64   2.7.5-94.el7_9                  updates   5.6 M
 systemd              x86_64   219-78.el7_9.9                  updates   5.1 M
 systemd-libs         x86_64   219-78.el7_9.9                  updates   419 k
 tzdata               noarch   2024a-1.el7                     updates   497 k

Transaction Summary
===============================================================================
Upgrade  21 Packages

Total download size: 17 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/21): libcurl-7.29.0-59.el7_9.2.x86_64.rpm              | 223 kB   00:00     
(2/21): bind-license-9.11.4-26.P2.el7_9.15.noarch.rpm     |  92 kB   00:00     
(3/21): libssh2-1.8.0-4.el7_9.1.x86_64.rpm                |  88 kB   00:00     
(4/21): curl-7.29.0-59.el7_9.2.x86_64.rpm                 | 271 kB   00:00     
(5/21): ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarc | 923 kB   00:00     
(6/21): nss-3.90.0-2.el7_9.x86_64.rpm                     | 905 kB   00:00     
(7/21): nss-sysinit-3.90.0-2.el7_9.x86_64.rpm             |  67 kB   00:00     
(8/21): nss-softokn-freebl-3.90.0-6.el7_9.x86_64.rpm      | 321 kB   00:00     
(9/21): nspr-4.35.0-1.el7_9.x86_64.rpm                    | 128 kB   00:00     
(10/21): nss-tools-3.90.0-2.el7_9.x86_64.rpm              | 557 kB   00:00     
(11/21): nss-softokn-3.90.0-6.el7_9.x86_64.rpm            | 383 kB   00:00     
(12/21): nss-util-3.90.0-1.el7_9.x86_64.rpm               |  80 kB   00:00     
(13/21): openssh-clients-7.4p1-23.el7_9.x86_64.rpm        | 655 kB   00:00     
(14/21): python-2.7.5-94.el7_9.x86_64.rpm                 |  97 kB   00:00     
(15/21): openssh-server-7.4p1-23.el7_9.x86_64.rpm         | 459 kB   00:00     
(16/21): python-libs-2.7.5-94.el7_9.x86_64.rpm            | 5.6 MB   00:00     
(17/21): systemd-libs-219-78.el7_9.9.x86_64.rpm           | 419 kB   00:00     
(18/21): systemd-219-78.el7_9.9.x86_64.rpm                | 5.1 MB   00:00     
(19/21): tzdata-2024a-1.el7.noarch.rpm                    | 497 kB   00:00     
(20/21): openssh-7.4p1-23.el7_9.x86_64.rpm                | 510 kB   00:00     
(21/21): epel-release-7-14.noarch.rpm                     |  15 kB   00:02     
-------------------------------------------------------------------------------
Total                                             8.3 MB/s |  17 MB  00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nspr-4.35.0-1.el7_9.x86_64                                 1/42 
  Updating   : nss-util-3.90.0-1.el7_9.x86_64                             2/42 
  Updating   : openssh-7.4p1-23.el7_9.x86_64                              3/42 
  Updating   : systemd-libs-219-78.el7_9.9.x86_64                         4/42 
  Updating   : nss-softokn-freebl-3.90.0-6.el7_9.x86_64                   5/42 
  Updating   : nss-softokn-3.90.0-6.el7_9.x86_64                          6/42 
  Updating   : nss-sysinit-3.90.0-2.el7_9.x86_64                          7/42 
  Updating   : nss-3.90.0-2.el7_9.x86_64                                  8/42 
  Updating   : python-libs-2.7.5-94.el7_9.x86_64                          9/42 
  Updating   : libssh2-1.8.0-4.el7_9.1.x86_64                            10/42 
  Updating   : libcurl-7.29.0-59.el7_9.2.x86_64                          11/42 
  Updating   : systemd-219-78.el7_9.9.x86_64                             12/42 
  Updating   : openssh-server-7.4p1-23.el7_9.x86_64                      13/42 
  Updating   : curl-7.29.0-59.el7_9.2.x86_64                             14/42 
  Updating   : python-2.7.5-94.el7_9.x86_64                              15/42 
  Updating   : nss-tools-3.90.0-2.el7_9.x86_64                           16/42 
  Updating   : openssh-clients-7.4p1-23.el7_9.x86_64                     17/42 
  Updating   : ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarch        18/42 
  Updating   : 32:bind-license-9.11.4-26.P2.el7_9.15.noarch              19/42 
  Updating   : tzdata-2024a-1.el7.noarch                                 20/42 
  Updating   : epel-release-7-14.noarch                                  21/42 
  Cleanup    : ca-certificates-2022.2.54-74.el7_9.noarch                 22/42 
  Cleanup    : 32:bind-license-9.11.4-26.P2.el7_9.13.noarch              23/42 
  Cleanup    : tzdata-2023c-1.el7.noarch                                 24/42 
  Cleanup    : epel-release-7-11.noarch                                  25/42 
  Cleanup    : nss-tools-3.79.0-5.el7_9.x86_64                           26/42 
  Cleanup    : curl-7.29.0-59.el7_9.1.x86_64                             27/42 
  Cleanup    : openssh-server-7.4p1-22.el7_9.x86_64                      28/42 
  Cleanup    : systemd-219-78.el7_9.7.x86_64                             29/42 
  Cleanup    : libcurl-7.29.0-59.el7_9.1.x86_64                          30/42 
  Cleanup    : nss-sysinit-3.79.0-5.el7_9.x86_64                         31/42 
  Cleanup    : nss-3.79.0-5.el7_9.x86_64                                 32/42 
  Cleanup    : nss-softokn-3.79.0-4.el7_9.x86_64                         33/42 
  Cleanup    : nss-softokn-freebl-3.79.0-4.el7_9.x86_64                  34/42 
  Cleanup    : nss-util-3.79.0-1.el7_9.x86_64                            35/42 
  Cleanup    : python-2.7.5-93.el7_9.x86_64                              36/42 
  Cleanup    : openssh-clients-7.4p1-22.el7_9.x86_64                     37/42 
  Cleanup    : openssh-7.4p1-22.el7_9.x86_64                             38/42 
  Cleanup    : python-libs-2.7.5-93.el7_9.x86_64                         39/42 
  Cleanup    : nspr-4.34.0-3.1.el7_9.x86_64                              40/42 
  Cleanup    : libssh2-1.8.0-4.el7.x86_64                                41/42 
  Cleanup    : systemd-libs-219-78.el7_9.7.x86_64                        42/42 
  Verifying  : epel-release-7-14.noarch                                   1/42 
  Verifying  : nss-softokn-3.90.0-6.el7_9.x86_64                          2/42 
  Verifying  : libcurl-7.29.0-59.el7_9.2.x86_64                           3/42 
  Verifying  : openssh-clients-7.4p1-23.el7_9.x86_64                      4/42 
  Verifying  : tzdata-2024a-1.el7.noarch                                  5/42 
  Verifying  : libssh2-1.8.0-4.el7_9.1.x86_64                             6/42 
  Verifying  : 32:bind-license-9.11.4-26.P2.el7_9.15.noarch               7/42 
  Verifying  : python-libs-2.7.5-94.el7_9.x86_64                          8/42 
  Verifying  : curl-7.29.0-59.el7_9.2.x86_64                              9/42 
  Verifying  : nss-softokn-freebl-3.90.0-6.el7_9.x86_64                  10/42 
  Verifying  : systemd-libs-219-78.el7_9.9.x86_64                        11/42 
  Verifying  : openssh-7.4p1-23.el7_9.x86_64                             12/42 
  Verifying  : python-2.7.5-94.el7_9.x86_64                              13/42 
  Verifying  : nss-tools-3.90.0-2.el7_9.x86_64                           14/42 
  Verifying  : systemd-219-78.el7_9.9.x86_64                             15/42 
  Verifying  : nss-util-3.90.0-1.el7_9.x86_64                            16/42 
  Verifying  : ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarch        17/42 
  Verifying  : nspr-4.35.0-1.el7_9.x86_64                                18/42 
  Verifying  : nss-sysinit-3.90.0-2.el7_9.x86_64                         19/42 
  Verifying  : openssh-server-7.4p1-23.el7_9.x86_64                      20/42 
  Verifying  : nss-3.90.0-2.el7_9.x86_64                                 21/42 
  Verifying  : python-2.7.5-93.el7_9.x86_64                              22/42 
  Verifying  : nss-sysinit-3.79.0-5.el7_9.x86_64                         23/42 
  Verifying  : systemd-libs-219-78.el7_9.7.x86_64                        24/42 
  Verifying  : openssh-clients-7.4p1-22.el7_9.x86_64                     25/42 
  Verifying  : nspr-4.34.0-3.1.el7_9.x86_64                              26/42 
  Verifying  : openssh-7.4p1-22.el7_9.x86_64                             27/42 
  Verifying  : nss-softokn-3.79.0-4.el7_9.x86_64                         28/42 
  Verifying  : tzdata-2023c-1.el7.noarch                                 29/42 
  Verifying  : libssh2-1.8.0-4.el7.x86_64                                30/42 
  Verifying  : python-libs-2.7.5-93.el7_9.x86_64                         31/42 
  Verifying  : nss-3.79.0-5.el7_9.x86_64                                 32/42 
  Verifying  : nss-util-3.79.0-1.el7_9.x86_64                            33/42 
  Verifying  : systemd-219-78.el7_9.7.x86_64                             34/42 
  Verifying  : libcurl-7.29.0-59.el7_9.1.x86_64                          35/42 
  Verifying  : epel-release-7-11.noarch                                  36/42 
  Verifying  : curl-7.29.0-59.el7_9.1.x86_64                             37/42 
  Verifying  : 32:bind-license-9.11.4-26.P2.el7_9.13.noarch              38/42 
  Verifying  : ca-certificates-2022.2.54-74.el7_9.noarch                 39/42 
  Verifying  : openssh-server-7.4p1-22.el7_9.x86_64                      40/42 
  Verifying  : nss-softokn-freebl-3.79.0-4.el7_9.x86_64                  41/42 
  Verifying  : nss-tools-3.79.0-5.el7_9.x86_64                           42/42 

Updated:
  bind-license.noarch 32:9.11.4-26.P2.el7_9.15                                 
  ca-certificates.noarch 0:2023.2.60_v7.0.306-72.el7_9                         
  curl.x86_64 0:7.29.0-59.el7_9.2                                              
  epel-release.noarch 0:7-14                                                   
  libcurl.x86_64 0:7.29.0-59.el7_9.2                                           
  libssh2.x86_64 0:1.8.0-4.el7_9.1                                             
  nspr.x86_64 0:4.35.0-1.el7_9                                                 
  nss.x86_64 0:3.90.0-2.el7_9                                                  
  nss-softokn.x86_64 0:3.90.0-6.el7_9                                          
  nss-softokn-freebl.x86_64 0:3.90.0-6.el7_9                                   
  nss-sysinit.x86_64 0:3.90.0-2.el7_9                                          
  nss-tools.x86_64 0:3.90.0-2.el7_9                                            
  nss-util.x86_64 0:3.90.0-1.el7_9                                             
  openssh.x86_64 0:7.4p1-23.el7_9                                              
  openssh-clients.x86_64 0:7.4p1-23.el7_9                                      
  openssh-server.x86_64 0:7.4p1-23.el7_9                                       
  python.x86_64 0:2.7.5-94.el7_9                                               
  python-libs.x86_64 0:2.7.5-94.el7_9                                          
  systemd.x86_64 0:219-78.el7_9.9                                              
  systemd-libs.x86_64 0:219-78.el7_9.9                                         
  tzdata.noarch 0:2024a-1.el7                                                  

Complete!
[bob@centos-host ~]$ sudo yum install fontconfig java-17-openjdk
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.lug.mtu.edu
 * epel: ix-denver.mm.fcix.net
 * extras: mirrors.gigenet.com
 * updates: mirror.vacares.com
No package java-17-openjdk available.
Resolving Dependencies
--> Running transaction check
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: freetype >= 2.8-7 for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: freetype for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package freetype.x86_64 0:2.8-14.el7_9.1 will be installed
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
 Package                     Arch       Version              Repository   Size
===============================================================================
Installing:
 fontconfig                  x86_64     2.13.0-4.3.el7       base        254 k
Installing for dependencies:
 dejavu-fonts-common         noarch     2.33-6.el7           base         64 k
 dejavu-sans-fonts           noarch     2.33-6.el7           base        1.4 M
 fontpackages-filesystem     noarch     1.44-8.el7           base        9.9 k
 freetype                    x86_64     2.8-14.el7_9.1       updates     380 k
 libpng                      x86_64     2:1.5.13-8.el7       base        213 k

Transaction Summary
===============================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 2.3 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): dejavu-fonts-common-2.33-6.el7.noarch.rpm          |  64 kB   00:00     
(2/6): dejavu-sans-fonts-2.33-6.el7.noarch.rpm            | 1.4 MB   00:00     
(3/6): fontconfig-2.13.0-4.3.el7.x86_64.rpm               | 254 kB   00:00     
(4/6): fontpackages-filesystem-1.44-8.el7.noarch.rpm      | 9.9 kB   00:00     
(5/6): libpng-1.5.13-8.el7.x86_64.rpm                     | 213 kB   00:00     
(6/6): freetype-2.8-14.el7_9.1.x86_64.rpm                 | 380 kB   00:00     
-------------------------------------------------------------------------------
Total                                             4.8 MB/s | 2.3 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                   1/6 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                       2/6 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                         3/6 
  Installing : 2:libpng-1.5.13-8.el7.x86_64                                4/6 
  Installing : freetype-2.8-14.el7_9.1.x86_64                              5/6 
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                            6/6 
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                            1/6 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                       2/6 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                         3/6 
  Verifying  : 2:libpng-1.5.13-8.el7.x86_64                                4/6 
  Verifying  : freetype-2.8-14.el7_9.1.x86_64                              5/6 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                   6/6 

Installed:
  fontconfig.x86_64 0:2.13.0-4.3.el7                                           

Dependency Installed:
  dejavu-fonts-common.noarch 0:2.33-6.el7                                      
  dejavu-sans-fonts.noarch 0:2.33-6.el7                                        
  fontpackages-filesystem.noarch 0:1.44-8.el7                                  
  freetype.x86_64 0:2.8-14.el7_9.1                                             
  libpng.x86_64 2:1.5.13-8.el7                                                 

Complete!
[bob@centos-host ~]$ sudo yum install jenkins -y
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.lug.mtu.edu
 * epel: ix-denver.mm.fcix.net
 * extras: mirrors.gigenet.com
 * updates: mirror.vacares.com
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.440.3-1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
 Package          Arch            Version               Repository        Size
===============================================================================
Installing:
 jenkins          noarch          2.440.3-1.1           jenkins           89 M

Transaction Summary
===============================================================================
Install  1 Package

Total download size: 89 M
Installed size: 89 M
Downloading packages:
jenkins-2.440.3-1.1.noarch.rpm                            |  89 MB   00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jenkins-2.440.3-1.1.noarch                                  1/1 
  Verifying  : jenkins-2.440.3-1.1.noarch                                  1/1 

Installed:
  jenkins.noarch 0:2.440.3-1.1                                                 

Complete!
[bob@centos-host ~]$ sudo systemctl daemon-reload
[bob@centos-host ~]$ sudo systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
[bob@centos-host ~]$ sudo systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
   Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2024-04-18 08:41:44 UTC; 10s ago
  Process: 78100 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
 Main PID: 78100 (code=exited, status=1/FAILURE)

Apr 18 08:41:43 centos-host systemd[1]: Failed to start Jenkins Continuous ....
Apr 18 08:41:43 centos-host systemd[1]: Unit jenkins.service entered failed....
Apr 18 08:41:43 centos-host systemd[1]: jenkins.service failed.
Apr 18 08:41:44 centos-host systemd[1]: jenkins.service holdoff time over, ....
Apr 18 08:41:44 centos-host systemd[1]: Stopped Jenkins Continuous Integrat....
Apr 18 08:41:44 centos-host systemd[1]: start request repeated too quickly ...e
Apr 18 08:41:44 centos-host systemd[1]: Failed to start Jenkins Continuous ....
Apr 18 08:41:44 centos-host systemd[1]: Unit jenkins.service entered failed....
Apr 18 08:41:44 centos-host systemd[1]: jenkins.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[bob@centos-host ~]$ 

In you log it says:

No package java-17-openjdk available.

You need to fix that.

Java Support Policy (jenkins.io)

install java-11-openjdk, update $JAVA_HOME and it seems you cannot run jenkins with default port(8080) as there is another service running on this port. you can use this command to run jenkins with port 8090
java -jar /usr/share/java/jenkins.war --httpPort=8090