jenkins修改插件鏡像

1.使用sed

cd {你的Jenkins工作目錄}/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

以下可以省略...

鏡像的地址會變,不要複製網上的地址,需要點進入找到正確的地址

1.jenkins鏡像地址列表
http://mirrors.jenkins-ci.org/status.html

找到國內鏡像

例如:https://mirrors.tuna.tsinghua.edu.cn/jenkins/

然後進入update目錄,找到update-center.json

全路徑地址爲:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

2.修改jenkins插件更新鏡像地址

3.效果如下圖

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章