jenkins下载插件失败

短命女 2023-01-06 11:42 361阅读 0赞

jenkins 下载插件失败,提示:

  1. java.io.IOException: Downloaded file /root/.jenkins/plugins/powershell.jpi.tmp does not match expected SHA-256, expected 'Qvw4t26HeGBJjh+BdpoubJc1acASVQAkB9FQtA4kxdw=', actual 'FYwl/yh2jivRErMn+VPX5douxVJGy8Tn0K6LFw0eTLc='
  2. at hudson.model.UpdateCenter.throwVerificationFailure(UpdateCenter.java:2025)
  3. at hudson.model.UpdateCenter.verifyChecksums(UpdateCenter.java:2060)
  4. at hudson.model.UpdateCenter$InstallationJob.replace(UpdateCenter.java:2239)
  5. at hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1343)
  6. at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1872)
  7. at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2153)
  8. at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1843)
  9. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  10. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  11. at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:118)
  12. 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 ,选择安装推荐插件, 秒速安装成功,简直超速!!

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4NDMyNzMy_size_16_color_FFFFFF_t_70

发表评论

表情:
评论列表 (有 0 条评论,361人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Jenkins修改下载地址

    Jenkins本身不提供很多功能,我们可以通过使用插件来满足我们的使用。例如从Gitlab拉取代码,使用Maven构建项目等功能需要依靠插件完成。jenkins默认采用官网的插