Centos7 安装最新版Jenkins

配置jenkins源

1
2
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

直接 yum install jenkins是安全版本非最新版。

可以去 https://pkg.jenkins.io/redhat-stable/
下载自己喜欢的版本
比如我安装最新版

1
yum install https://pkg.jenkins.io/redhat-stable/jenkins-2.89.4-1.1.noarch.rpm

vim /etc/sysconfig/jenkins 编辑下配置文件

我主要改了端口和home目录

启动

1
systemctl start/enable jenkins

http://120.79.138.224:10086/generic-webhook-trigger/invoke?token=offence-reporting-service
https://wiki.jenkins.io/display/JENKINS/CloudBees+Docker+Build+and+Publish+plugin

#参考资料

关注公众号 尹安灿