爲什麼我按照使用artifactory plugin with docker的說明獲得/v1/_ping: Bad Gateway
錯誤?Artifactory插件代理結果在/ v1/_ping:錯誤的網關
- 詹金斯2.60.3與Artifactory的插件2.12.2
Enable Build-Info proxy for Docker images
端口9999個- 詹金斯
/var/lib/jenkins/secrets/jfrog/certs/jfrog.proxy.crt
加入到$ JAVA_HOME/JRE/LIB /安全/上詹金斯主機和從機的cacerts - jfrog nginx的自簽證書添加到$ JAVA_HOME/JRE/lib/security中/詹金斯上的主從
- 訪問詹金斯的cacerts:9999主機之間的開放
/etc/systemd/system/docker.service.d/http-proxy.conf
包含了與沒有差別的測試[服務] 環境= 「HTTP_PROXY = http://jenkins:9999/」
[服務] 環境下面= 「HTTPS_PROXY = https://jenkins:9999/」
本地搬運工測試(
docker login 127.0.0.1:9999
)導致
Error response from daemon: Login: Bad Request to URI: /v1/users/ (Code: 400; Headers: map[Content-Length:[30] Content-Type:[text/html; chars...
- 詹金斯測試結果在
com.github.dockerjava.api.exception.BadRequestException: Bad Request to URI: /images/artifactory:<port>/hello-world:latest/json
誤差在詹金斯登錄
SEVERE: (DISCONNECTED) [id: ..., L:0.0.0.0/0.0.0.0:... ! R:artifactory/...:5000]:
Caught an exception on ProxyToServerConnection
io.netty.handler.codec.DecoderException:
javax.net.ssl.SSLHandshakeException: General SSLEngine problem
...
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
我的虛擬回購,其遠程和本地工作的時候,不使用jenkins代理,但根據插件文檔,我需要jenkins代理來獲取我需要的CI/CD升級的構建信息。