jenkins from repo centos 7

[root@localhost ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2019-05-29 21:49:59--  https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 52.202.51.185
Connecting to pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|: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     

2019-05-29 21:50:00 (2.78 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]

[root@localhost ~]# sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
[root@localhost ~]# yum install jenkins
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: repos.del.extreme-ix.org
 * extras: repos.del.extreme-ix.org
 * updates: repos.del.extreme-ix.org
jenkins                                                         | 2.9 kB  00:00:00   
jenkins/primary_db                                              |  28 kB  00:00:00   
Resolving Dependencies
--> Running transaction check
---> Package hudson.noarch 0:3.3.3-1.1 will be obsoleted
---> Package jenkins.noarch 0:2.164.3-1.1 will be obsoleting
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package            Arch              Version                 Repository          Size
=======================================================================================
Installing:
 jenkins            noarch            2.164.3-1.1             jenkins             74 M
     replacing  hudson.noarch 3.3.3-1.1

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

Total download size: 74 M
Is this ok [y/d/N]: y
Downloading packages:
jenkins-2.164.3-1.1.noarch.rpm                                  |  74 MB  00:00:31   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jenkins-2.164.3-1.1.noarch                                          1/2
  Erasing    : hudson-3.3.3-1.1.noarch                                             2/2
  Verifying  : jenkins-2.164.3-1.1.noarch                                          1/2
  Verifying  : hudson-3.3.3-1.1.noarch                                             2/2

Installed:
  jenkins.noarch 0:2.164.3-1.1                                                       

Replaced:
  hudson.noarch 0:3.3.3-1.1                                                           

Complete!
[root@localhost ~]# service jenkins start
Starting jenkins (via systemctl):                          [  OK  ]

/var/lib/jenkins/secrets/initialAdminPassword
37a812f6919c4a1684de4f50e4b04541

Comments