根本原因在于插件下载 url,而不是元数据链接(https://updates.jenkins.io/ 和 https://updates.jenkins-ci.org/)。虽然您需要与这些域进行 HTTPS 通信。
"active-directory": {
"buildDate": "Jun 22, 2017",
"compatibleSinceVersion": "2.0",
"dependencies": [
{
"name": "mailer",
"optional": false,
"version": "1.5"
}
],
"developers": [
{
"developerId": "kohsuke",
"name": "Kohsuke Kawaguchi"
},
{
"developerId": "fbelzunc",
"name": "Felix Belzunce Arcos"
}
],
"excerpt": "Enables authentication through Active Directory",
"gav": "org.jenkins-ci.plugins:active-directory:2.6",
"labels": [
"user"
],
"name": "active-directory",
"previousTimestamp": "2017-06-20T10:22:20.00Z",
"previousVersion": "2.5",
"releaseTimestamp": "2017-06-22T12:54:26.00Z",
"requiredCore": "1.554.1",
"scm": "https://github.com/jenkinsci/active-directory-plugin",
"sha1": "yihOF0cMc3V3ScLklIcq+6zNXlA=",
"title": "Jenkins Active Directory plugin",
"url": "http://updates.jenkins-ci.org/download/plugins/active-directory/2.6/active-directory.hpi",
"version": "2.6",
"wiki": "https://plugins.jenkins.io/active-directory"
},
如您所见,下载链接为http://
"url": "http://updates.jenkins-ci.org/download/plugins/active-directory/2.6/active-directory.hpi",
因此,如果您进行连接测试,您将遇到错误(而在我的情况下,它是 success)。
可能的解决方案是设置some proxy server 以避免直接的HTTP 通信。
它是如何工作的:
- 代理服务器在您的防火墙之外,您使用 HTTPS 对该代理服务器进行身份验证
- 代理服务器仍将使用 HTTP 下载这些插件
如果这有帮助,请告诉我!