[808]There were errors checking the update sites: SSLHandshakeException: sun.secu解决方案

(1)插件管理页面提示:There were errors checking the update sites:IOException:Unable to tunnel through proxy.Proxy returins “HTTP/1.1 400”

[808]There were errors checking the update sites: SSLHandshakeException: sun.secu解决方案

(2)插件管理页面提示:There were errors checking the update sites: SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

[808]There were errors checking the update sites: SSLHandshakeException: sun.secu解决方案

查到的解决方法是同一个:

解决方案一:
进入插件管理->Advanced,修改Update Site的URL,
默认是通过https://updates.jenkins.io/update-center.json进行更新的。此处,将https改为http,修改完成,submit,然后重启Jenkins,问题解决。

或者:

清华大学开源软件镜像站也提供了Jenkins的update-center,URL为:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

解决方案二:

打开updates/defult.json文件,将http://updates.jenkins-ci.org/download/全局替换成https://mirrors.tuna.tsinghua.edu.cn/jenkins/。

注:第一个问题使用该方法一直未解决,重新下载jenkins,放置在tomcat下,启动tomcat,遇到第二个问题,使用该方法,立即解决了。

[808]There were errors checking the update sites: SSLHandshakeException: sun.secu解决方案

[808]There were errors checking the update sites: SSLHandshakeException: sun.secu解决方案

附录:

(未实践的方式:)或可修改C:\Users\Administrator.jenkins\hudson.model.UpdateCenter.xml,将https修改为http,重启jenkins

参考:https://blog.****.net/LANGZI7758521/article/details/100099384
https://blog.51cto.com/13568014/2350363?source=dra