繁体   English   中英

无法从 Jenkins 下载插件

[英]Unable to Download plugins from Jenkins

我已经在 mac os 上安装了 Jenkins 2.263.1 和 Java 版本 1.8.0_77。 当我尝试从 GUI 或 jenkins CLI 下载插件时出现错误

Caused: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.reflect.GeneratedConstructorAccessor66.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1280)

原因:java.io.IOException:无法加载https://updates.jenkins.io/download/plugins/git-client/3.5.1/git-client.hpi到 /var/root/.jenkins/plugins/git-client .jpi.tmp at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1287) Caused: java.io.IOException: Failed to download from https://updates.jenkins.io/download/plugins/git-client/3.5 .1/git-client.hpi

我知道它与证书有关,但我该如何解决? 我在哪里可以找到 jenkins 更新站点的证书,我可以将其添加到 JAVA 密钥库? 还有这个问题的解决方法,因为它只是在我的本地

谢谢

如果您在下载 jenkins 插件时遇到验证证书问题,请检查 linux 环境中的时间设置。 检查时间 ---> 日期 cmd 更新时间 ---> 日期 s "date month year hr:mm:ss"

尝试重新启动您的 jenkins 并下载插件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM