簡體   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