Jenkins 基础1

2022-03-21 17:54:20 浏览数 (1)

安装过程

代码语言:javascript复制
[root@h101 ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
--2015-12-17 19:42:11--  http://pkg.jenkins-ci.org/redhat/jenkins.repo
Resolving pkg.jenkins-ci.org... 199.193.196.24
Connecting to pkg.jenkins-ci.org|199.193.196.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75 [text/plain]
Saving to: “/etc/yum.repos.d/jenkins.repo”

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

2015-12-17 19:42:12 (6.28 MB/s) - “/etc/yum.repos.d/jenkins.repo” saved [75/75]

[root@h101 ~]# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
[root@h101 ~]# echo $?
0
[root@h101 ~]# yum install jenkins
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * epel: mirrors.opencas.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:1.642-1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                        Arch                          Version                            Repository                      Size
======================================================================================================================================
Installing:
 jenkins                        noarch                        1.642-1.1                          jenkins                         61 M

Transaction Summary
======================================================================================================================================
Install       1 Package(s)

Total download size: 61 M
Installed size: 61 M
Is this ok [y/N]: y
Downloading Packages:
jenkins-1.642-1.1.noarch.rpm                         57% [========================                  ]  48 kB/s |  35 MB     09:07 ETA 
jenkins-1.642-1.1.noarch.rpm                         57% [======================
jenkins-1.642-1.1.noarch.rpm                                                                                   |  61 MB     13:52     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : jenkins-1.642-1.1.noarch                                                                                           1/1 
  Verifying  : jenkins-1.642-1.1.noarch                                                                                           1/1 

Installed:
  jenkins.noarch 0:1.642-1.1                                                                                                          

Complete!
[root@h101 ~]# 

/etc/yum.repos.d/jenkins.repo 是一个Jenkins RPM 仓库

0 人点赞