jenkins下载插件速度非常慢,而且经常提示下载插件失败
提升Jenkins安装插件速度,大多数博客中都是在插件配置里使用
但其实下载插件的速度并没有加快 emmm
这边找到了一个有效的在线安装方法 ↓ ↓ ↓ ↓
在线安装方法:
-
1. 修改 .jenkins 目录中的 hudson.model.UpdateCenter.xml 值
改为:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
-
2、修改updates文件夹中的 default.json文件
替换文件中所有的 :
https://updates.jenkins.io/download 改为 https://mirrors.tuna.tsinghua.edu.cn/jenkins
google.com 改为 baidu.com
-
3.使用 http:localhost:8080/reload 或者 http:localhost:8080/restart 重新载入