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-21710Getting 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.