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)

查找资料,说是中国源的问题。需要换个源就可以,换源的方法:

jenkins->系统管理->管理插件->高级
选择升级站点

把:http://updates.jenkins-ci.org/update-center.json

换成:http://mirror.esuni.jp/jenkins/updates/update-center.json

镜像地址查询:

http://mirrors.jenkins-ci.org/status.html

posted @ 2017-08-31 18:12  HkGov  阅读(6313)  评论(0编辑  收藏  举报