所在位置:首页 → 网络教程 → 替换Jenkins插件地址为国内镜像源

替换Jenkins插件地址为国内镜像源

发布: 更新时间:2022-09-04 15:03:56

问题:Jenkins安装插件报错,该Jenkins实例似乎已离线。

问题:Jenkins插件下载失败或下载慢或报错There were errors checking the update sites: SSLHandshakeException: sun.secu

这些问题都可以通过如下设置解决:

1.进入:http://localhost:8080/pluginManager/advanced

2.拉到页面最下面,把https改成http。这里其实就已经可以重启jenkins,使用了。但是为了更方便使用,我们可以设置镜像源,下载插件更快速!

3.修改上面的URL地址为国内镜像源:选择下面任何一个即可!

https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

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

http://mirror.xmission.com/jenkins/updates/update-center.json

4.工作目录/updates/default.json设置

updates.jenkins.io/download或updates.jenkins-ci.org全部替换成选择的镜像源mirrors.tuna.tsinghua.edu.cn/jenkins

www.google.com全部替换成www.baidu.com或其它能打开的网页

5.保存后,重启Jenkins。ok!

注意:使用https时,需要跳过ssl证书认证,不然可能会失败!如下操作

[postsbox post_id="2459"]
标签:, ,
文章排行