-
Bug
-
Resolution: Fixed
-
Low
-
None
-
5.9.1
-
None
Problem:
Plan branches are added for disabled plans
Steps to Reproduce:
- Configure Bamboo to use a linked repository to Stash
- In Stash, pull requests to require 1 approver and 1 successful build
- Create a build plan in which the option "Automatically manage branches" is checked
- Clone this build plan
- Disable the cloned build plan.
- Make a commit on a new branch
Both build plans get branch plans created for them, even the disabled on. The build on the disabled plan fails. Stash then sees both a passing build in the original plan and a failed build in the disabled cloned plan. Now Stash will not let the merge go process as it sees the failed build in the disabled plan as not meeting the requirement to allow the pull request to be merged as Stash seems to require a passing build in all plans where the branch build might occur.
Expected Behavior:
The desired behavior is that if the overall plan is disabled, it should not allow automatic branch plans to obtain the branch unless manually added.
Workaround:
Disable all the individual branch plans or delete the disabled plan.
Form Name |
---|
What version of Bamboo was this fixed in? I just hit this problem in v7.0.6 today. Most developers and admins would expect disabling a plan to disable automatic branch creation too. It's annoying because our Bitbucket policy prevents merging code with failed builds, and BitBucket won't disregard the build result for a queued build that was manually cancelled. Now I have to wait 1h for a silly duplicated build to pass in an automatically created branch in a disabled plan!