I have a Project on Bamboo, let's call it A. Within A, I have 2 Build plans:
Both build plans have the same repository and with master branch being the default branch.
Master Build Plan plan branch option is set to Manually so it never creates other branch plans and the trigger is set to repository change.
PR Build Plan plan branch option is set to 'When pull request is created', so it only create branches related to PRs.
If on PR Build Plan, I disable the repository trigger, if I update my PR, it doesn't trigger a new build. If I enable it, it triggers when PR is updated but after merging the PR into master branch, PR Build Plan runs on the master branch, that is the default branch of the repository, which is not desirable.
Is there a way to keep the PR Build Plan triggering when the PR is updated without running for master branch when master gets updated?
Try disabling the "master" of your PR Build Plan from Plan Configuration >> Actions >> Disable Plan.
Branch / Pull Request detection and triggering still works even if the master plan configuration is disabled, but master won't trigger. :)
Hope this helps.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events