1

概括

jx 安装在 GKE(Google Kubernetes 引擎)中并配置了 bitbucket 云存储库。

尝试使用 jx 促进构建时返回

Promoting app sample-spring version 0.0.11 to namespace jx-staging

error: finding existing PRs using filter  on repo baskar030/environment-XXX-staging: listing open pull requests on baskar030/environment-XXX-staging: Status: 404 Not Found, Body: {"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/"}}

script returned exit code 1

jx版

的输出jx version是:

COPY OUTPUT HERE
NAME               VERSION
jx                 2.0.398
jenkins x platform 2.0.744
Kubernetes cluster v1.12.8-gke.10
kubectl            v1.12.8-dispatcher
helm client        Client: v2.13.1+g618447c
git                git version 2.17.2 (Apple Git-113)
Operating System   Mac OS X 10.13.6 build 17G65

詹金斯型

- 经典詹金斯

Kubernetes 集群

GKE 集群版本 1.12.8-gke.10

操作系统/环境

Ubuntu

4

1 回答 1

0

此错误与此问题有关:Bitbucket Cloud API deprecations

只要Jenkins X 使用的 bitbucket 云 API(参见 jx\pkg\gits\bitbucket_cloud.go)尚未修复,您就会遇到此错误。

于 2019-07-05T15:00:54.660 回答