1

我的 jenkins 和 jfrog artifactory 都作为 kubernetes 容器运行。我正在尝试将 jenkins 与 artifactory 集成。我也安装了神器插件。在测试连接时出现错误。

docker.bintray.io/jfrog/artifactory-oss(docker-image)

NAME              TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                         AGE
artifactory-oss   NodePort    172.30.155.24   <none>        8086:30965/TCP,8082:30656/TCP   4h

artifactory url: http://<kubernetes-node-ip:30656/ui(this is the url for my artifactory, entered the same in jenkins congigure system section)

当我测试连接时出现此错误

Error occurred while requesting version information: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (org.apache.http.client.entity.LazyDecompressingInputStream); line: 1, column: 2]
4

1 回答 1

2

TL;DR:尝试切换/ui/artifactory.

Artifactory 的 URL 不应以/ui. 请求/ui将返回一个 HTTP 页面。我想这就是它的<来源。

应通过 API url 连接到 Artifactory,即https://[base-url]/artifactory

于 2020-04-30T06:23:19.683 回答