jenkins下载插件失败

jenkins 下载插件失败,提示:

java.io.IOException: Downloaded file /root/.jenkins/plugins/powershell.jpi.tmp does not match expected SHA-256, expected 'Qvw4t26HeGBJjh+BdpoubJc1acASVQAkB9FQtA4kxdw=', actual 'FYwl/yh2jivRErMn+VPX5douxVJGy8Tn0K6LFw0eTLc='
	at hudson.model.UpdateCenter.throwVerificationFailure(UpdateCenter.java:2025)
	at hudson.model.UpdateCenter.verifyChecksums(UpdateCenter.java:2060)
	at hudson.model.UpdateCenter$InstallationJob.replace(UpdateCenter.java:2239)
	at hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1343)
	at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1872)
	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2153)
	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1843)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:118)
	at java.lang.Thread.run(Thread.java:748)

1、修改 jenkins 数据目录中的hudson.model.UpdateCenter.xml值为:
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
2、修改updates文件夹中的 default.json文件

替换文件中所有 http://updates.jenkins-ci.org/download 为 https://mirrors.tuna.tsinghua.edu.cn/jenkins
http://www.google.com 修改为
http://www.baidu.com

3、在浏览器中,http:localhost:8080/reload,这样可以重新载入配置。
或者使用http:localhost:8080/restart,重启一下Jenkins ,选择安装推荐插件, 秒速安装成功,简直超速!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yunson_Liu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值