Automatically run a Plan when creating a new branch in GitHub

お困りですか?

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

コミュニティに質問

アトラシアン社外秘

この記事は作成中なのでお客様と共有できません。

プラットフォームについて: 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 は除く

要約

Before Bamboo version 9.1.x, the ability to let GitHub users automatically build pull requests from forks of their projects was not possible.
BAM-21710 - Getting issue details... STATUS

環境

This has been tested on Bamboo versions 7.2.x and 8.2.x.

ソリューション

In order for Bamboo to automatically run a Plan when a new branch is created in GitHub, a custom webhook is needed. In order for the plan branch to start automatically, you need to pass a REST API (as the one below) in the webhook inside GitHub to trigger it:

https://<BAMBOO_URL>/rest/triggers/latest/remote/changeDetection?planKey=<PLAN-KEY>

You can configure the custom webhook following this article: How to trigger Bamboo builds with GitHub webhook.

回避策

You can add a trigger to poll the repository, and then the plan runs when a change is made to the branch.

最終更新日 2023 年 5 月 15 日

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

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