我的jenkins和jfrog制品都作为kubernetes容器运行。我正在尝试将詹金斯与人工制品集成。我还安装了人工插件。测试连接时出现错误。
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]
答案 0 :(得分:1)
TL; DR:尝试将/ui
切换为/artifactory
。
人工工厂的URL不应以/ui
结尾。对/ui
的请求将返回HTTP页面。我猜这就是<
的来源。
与Artifactory的连接应通过API网址,即https://[base-url]/artifactory。