解決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

修改爲如下:

<?xml version='1.1' encoding='UTF-8'?>
<sites>
  <site>
    <id>default</id>
    <url>http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json</url>
  </site>
</sites>

重啓jenkins

service jenkins restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章