使用 Cloud Build 和 Source Repositories 连接到 BitBucket 时出现问题

Problems connecting to BitBucket with Cloud Build and Source Repositories

我是 GCP 项目所有者,正在尝试将 BitBucket 存储库连接为 Cloud Source Repos 中的镜像。还有一个基于 BitBucket 存储库的 Cloud Build 触发器。

Cloud Source Repositories 中,授予对我的帐户的访问权限后,在配置镜像时,没有出现来自 BitBucket 的存储库,并显示以下内容:

The Bitbucket account [username] doesn't have access to any Bitbucket repositories. You will need to grant this account permission to repositories in Bitbucket before you can connect them.

Cloud Build 触发器中,在授予权限对话框之后,Select 存储库 未列出任何 BitBucket 存储库,并且 继续 按钮变灰。

如果您的 Bitbucket 帐户对您要镜像的存储库只有读或写访问权限,则会出现此错误消息。检查您是否拥有 Bitbucket 的管理员访问权限,然后重试。另外,请确保您在尝试建立连接时登录的是正确的 Bitbucket 帐户。