CentOS7-安装Jenkins
CentOS7-安装Jenkins
配置yum, 可参考: CentOS7-配置yum国内源
yum安装jdk
1.导入Jenkins镜像源
curl -o /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
2.导入公钥
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
3.安装Jenkins
yum install -y jenkins
4.启动Jenkins后替换国内源
systemctl restart jenkins
sed -i "s@http://updates.jenkins-ci.org/update-center.json@https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json@g" /var/lib/jenkins/hudson.model.UpdateCenter.xml

浙公网安备 33010602011771号