我的jenkins和jfrog制品都作为kubernetes容器运行。我正在尝试将 Jenkins 与人工制品集成。我还安装了人工插件。在测试连接时出现错误。

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]

最佳答案

TL; DR:尝试将/ui切换为/artifactory

Artifactory的URL不应以/ui结尾。对/ui的请求将返回一个HTTP页面。我猜这是<的来源。

与Artifactory的连接应通过API网址https://[base-url]/artifactory进行。

关于jenkins - jenkins服务器不采用人工服务器详细信息,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/61481509/

10-16 02:50