Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
Description
Issue Summary
For a Bitbucket Server pull request event, Bamboo should build on each pull request merge. This should be limited to the Bitbucket Server development and production branches.
This might Extend the Bitbucket Server repository trigger to build regardless of the timers in a special case that meets the following criteria:
- Bitbucket is hosting a repository and has a Application Link to Bamboo.
- The event is a Bitbucket pull request event type.
- The branch is defined on Bitbucket for the repository as Production or Development branching model.
This special event should bypass all of the triggers and wait periods to be put in the build queue.
Steps to Reproduce
- Install Bamboo. Create one linked repository and one build plan.
- Add two more Local Agents for a total of three or more.
- For the build, use the default Source Code Checkout.
- Add one script task with the following script:
#!/bin/bash sleep 60
- Run build as a test to make sure it runs. Confirm in Bitbucket that the commit shows a build.
- Run the following command in a clone of the git repository listed in step one in the default branch:
for (( i=1 ; i <=3 ; i++)) do \ echo "$i" >> text ; \ git add . ; \ git commit -m "This is commit $i" ; \ git push ; sleep 5 ; \ done
Expected Results
All three pull requests should have builds.
Actual Results
First and last pull request have builds.