解决jenkin插件无法下载的问题

今天安装jenkin后,打开插件管理页面提示如下错误: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.

解决方式是修改源地址为http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

编辑文件

文件路径:/var/lib/jenkins/hudson.model.UpdateCenter.xml

修改为如下:



  
    default
    http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
  

重启jenkins

service jenkins restart

你可能感兴趣的:(工作杂记)