zoukankan      html  css  js  c++  java
  • jenkins 下载插件失败 有效的处理办法(亲测)

    jenkins 下载插件失败,提示:

    java.io.IOException: Downloaded file /app/jenkins_home/plugins/jacoco.jpi.tmp does not match expected SHA-1, expected 'CtK02wHdFOxTutqhUQzmue6uvpg=', actual 'YGO05utKyaaFzpGCgCE95GS0WsU='

    	at hudson.model.UpdateCenter.verifyChecksums(UpdateCenter.java:1783)
    	at hudson.model.UpdateCenter.access$1100(UpdateCenter.java:147)
    	at hudson.model.UpdateCenter$InstallationJob.replace(UpdateCenter.java:1934)
    	at hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1178)
    	at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1653)
    	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1848)
    	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1624)
    	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:110)
    	at java.lang.Thread.run(Thread.java:745)

    1、修改 jenkins 数据目录中的hudson.model.UpdateCenter.xml值为:

    sed -i  's/https://updates.jenkins.io/update-center.json/https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json/g' /root/.jenkins/hudson.model.UpdateCenter.xml

    2、修改updates文件夹中的 default.json文件

    sed -i  's/http://updates.jenkins-ci.org/download/https://mirrors.tuna.tsinghua.edu.cn/jenkins/g' /root/.jenkins/updates/default.json

    sed -i  's/http://www.google.com/http://www.baidu.com/g' /root/.jenkins/updates/default.json

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

  • 相关阅读:
    为什么要使用href=”javascript:void(0);”
    切图要点
    css属性学习
    CentOS7使用yum安装RabbitMQ
    Linux下,root权限才能启动1024以下端口的程序
    Gitlab备份和恢复操作记录
    rpm批量卸载所有带有Java的文件
    如何使用微软官方工具制作win10启动盘
    重装系统时,将MBR分区转为GPT 分区
    walle 2.0 上线部署
  • 原文地址:https://www.cnblogs.com/dreammer/p/13670222.html
Copyright © 2011-2022 走看看