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值為:
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 ,選擇安裝推薦插件, 秒速安裝成功,簡直超速!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/222734.html
標籤:python
