jenkins插件中心国内镜像

您所在的位置:网站首页 jenkins官方 jenkins插件中心国内镜像

jenkins插件中心国内镜像

2023-01-16 22:33| 来源: 网络整理| 查看: 265

jenkins非常先进,是项目自动化、部署上线的必备程序,更新频率很高,各种插件也时有更新,然而他的默认站点从国内访问比较缓慢。

我们通过系统管理-插件管理-高级进入设置页面或者直接输入以下网址

http://jenkins:8080/pluginManager/advanced

看到升级站点配置

默认为

http://updates.jenkins.io/update-center.json

可以换成清华源,不过不知道为什么经常也比较缓慢

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

其他源参考,不保证数据可靠性,自行验证

http://mirror.esuni.jp/jenkins/updates/update-center.json https://updates.jenkins-zh.cn/update-center.json https://jenkins-zh.gitee.io/update-center-mirror/tsinghua/current/update-center.json http://mirror.xmission.com/jenkins/updates/update-center.json http://updates.jenkins-ci.org/update-center.json

可供选择的jenkins2 插件镜像列表: Jenkins 所有镜像列表: http://mirrors.jenkins-ci.org/status.html 比如日本的镜像: http://mirror.esuni.jp/jenkins/ http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/ http://ftp.tsukuba.wide.ad.jp/software/jenkins/ 德国的镜像:http://jenkins.mirror.isppower.de/ http://mirror.yandex.ru/mirrors/jenkins/ 官方的镜像:http://mirrors.jenkins-ci.org/ http://archives.jenkins-ci.org/

国内云厂商提供的镜像 参考 https://github.com/lework/jenkins-update-center tencent mirrors.cloud.tencent.com/jenkins huawei mirrors.huaweicloud.com/jenkins tsinghua mirrors.tuna.tsinghua.edu.cn/jenkins ustc mirrors.ustc.edu.cn/jenkins bit http://mirror.bit.edu.cn/jenkins 对应的文件 https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/tencent/update-center.json https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/huawei/update-center.json https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/tsinghua/update-center.json https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/ustc/update-center.json https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/bit/update-center.json

2020年12月更新

jenkins2以上对于证书签名做校验,因此中转的镜像全部失效,方案参考上面github

[ ! -d /var/lib/jenkins/update-center-rootCAs ] && mkdir /var/lib/jenkins/update-center-rootCAs wget https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/rootCA/update-center.crt -O /var/lib/jenkins/update-center-rootCAs/update-center.crt chown jenkins.jenkins -R /var/lib/jenkins/update-center-rootCAs sed -i 's#https://updates.jenkins.io/update-center.json#https://cdn.jsdelivr.net/gh/lework/jenkins-update-center/updates/tsinghua/update-center.json#' /var/lib/jenkins/hudson.model.UpdateCenter.xml rm -f /var/lib/jenkins/updates/default.json systemctl restart jenkins

执行以上代码设置正确的证书并重启jenkins即可



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3