Jenkins“无法找到所请求目标的有效证书路径”导入Git存储库时出错 [英] Jenkins "unable to find valid certification path to requested target" error while importing Git repository

查看:1988
本文介绍了Jenkins“无法找到所请求目标的有效证书路径”导入Git存储库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Git repo 我的笔记本电脑上的href =https://wiki.jenkins.io/display/JENKINS/Git+Plugin =nofollow noreferrer> Jenkins Git Plugin 。 Git repo驻留在具有自签名证书的公司可信服务器上。在指定URL时我总是收到错误:

I'm trying to build a Git repo from Jenkins using the Jenkins Git Plugin on my laptop. The Git repo resides on company trusted server which has self-signed certificates. While specifying the URL I'm always getting an error:

Failed to connect to repository : sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

我理解由于自签名证书而导致此错误,但服务器属于我的公司并且是由权限签署的。

I understand this error surfaces due to self-signed certificates but the server belongs to my company and is signed by authority.

我还尝试使用自签名从另一台笔记本电脑导入相同的回购并继续收到相同的错误。

I also tried to import the same repo from another laptop using self-signed and keep getting the same error.

任何帮助将不胜感激

推荐答案

转到 - >管理Jenkins - >配置全局安全 - >插件管理器
并选中使用浏览器进行元数据下载。

Go To ->Manage Jenkins -> Configure Global Security -> Plugin Manager and check the box for Use browser for metadata download.

它将解决问题。

这篇关于Jenkins“无法找到所请求目标的有效证书路径”导入Git存储库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆