root@centos7 ~]# cd /var/lib/jenkins/updates/ 查看 [root@centos7 updates]# ls default.json hudson.tasks.Maven.MavenInstaller
修改源为国内的源
root@centos7 ~]# cd /var/lib/jenkins/updates/ [root@centos7 updates]# sed -i 's/http:\/\/updates.jenkins-ci.org\/download/https:\/\/mirrors.tuna.tsinghua.edu.cn\/jenkins/g' default.json && sed -i 's/http:\/\/www.google.com/https:\/\/www.baidu.com/g' default.json
web界面修改
修改地址为:
http://mirror.esuni.jp/jenkins/updates/update-center.json
浏览器输入,重启jenkins
http://10.0.0.21:8888/restart