jenkins修改源为国内的源

jenkins的软件源默认为国外的源,速度慢

进入到jenkins源目录下

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界面修改


image-20230522180231334.png



image-20230522180341809.png




修改地址为:


http://mirror.esuni.jp/jenkins/updates/update-center.json


image-20230522180431043.png



浏览器输入,重启jenkins

http://10.0.0.21:8888/restart


image-20230522180601213.png









Powered By Z-BlogPHP 1.7.3

 Theme By 优美模版

本博客为开源博客,本博客联系QQ:372097243