linux安装jenkins

方法一:

A.创建Jenkins的yum源文件

vi /etc/yum.repos.d/jenkins.repo

B.在 Jenkins.repo中加入以下内容:

[jenkins]

name=Jenkins

baseurl=http://pkg.jenkins-ci.org/redhat

gpgcheck=1

C.rpm增加Jenkins源的key

sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

D.安装 jenkins

sudo yum install jenkins


posted @ 2018-05-04 17:05  方家小白  阅读(31)  评论(0)    收藏  举报