Pull Requests in Bitbucket Cloud are not creating new branches in Bamboo

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

Pull Requests in Bitbucket Cloud are not creating new branches in Bamboo.

環境

  • Bamboo integrated with Bitbucket Cloud through Linked Repositories, with authentication occurring through an App Password.
  • In Bamboo, the Build Plan is configured to create new branches "When pull request is created".

診断

The logs in Bamboo indicate that the access is forbidden

2021-12-09 20:29:54,119 WARN [14-PullRequestDetectionBackgroundThread:pool-21-thread-3] [PullRequestDetector] com.sun.jersey.api.client.UniformInterfaceException: GET https://api.bitbucket.org/2.0/repositories/PROJECT/REPOSITORY/pullrequests?state=OPEN returned a response status of 403 Forbidden

原因

The App Password being used to authenticate agains Bitbucket Cloud doesn't have the "Pull Request read" permission set. Because of this, Bamboo is unable to read the pull request information, and therefore can't create branches when pull requests are performed.

ソリューション

Since Bitbucket Cloud App Passwords can't have their permissions edited, you'll need to create a new one, granting the required permissions, and then updating the Linked Repository information in Bamboo to use the newly created password. Please see App passwords for instructions on how to do that.


最終更新日: 2021 年 12 月 10 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.