-
Bug
-
Resolution: Answered
-
Medium
-
None
-
5.7.1, 5.10-OD-04
-
None
-
None
Summary
The 'Remote Trigger' in Bamboo is causing only main plans to be triggered, even though commits are made to branches associated to branch plans within that main plan.
Example:
I have the following test project setup:
Main plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "develop".
Branch plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "master".
For both repositories selected Bitbucket. (See screenshot for what I mean by that. I will test with Git later).
Now when I commit changes to master brach main plan gets triggered instead of Master branch plan. I expect Master branch plan to be triggered.
New commit to develop branch will trigger main branch plan as expected.
It works well if "Pull the repository for changes" selected.
Steps to Reproduce
- Create a repository in BitBucket (and possibly other repositories) with the main and another branch, say test branch.
- Create a plan in Bamboo associated with the main branch and a branch plan within it associated with the 'test' branch
- Add repository to the plan
- Create a 'Remote Trigger' in Bamboo to the repository and a service in Bitbucket, as described here, so BitBucket triggers the build immediately after commit
- Commit to the 'test' branch
Expected Results
- A build in the branch plan is triggered, as this is the one associated with the 'test' branch
Actual Results
- The main branch is triggered
Workaround
- Use repository polling instead
[BAM-15923] Repository commit trigger will always trigger main build
Remote Link | Original: This issue links to "BDEV-9209 (Atlassian JIRA Extranet - Special Projects)" [ 105492 ] | New: This issue links to "BDEV-9209 (Hello Jira)" [ 105492 ] |
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 1436455 ] | New: JAC Bug Workflow v3 [ 3380239 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1417667 ] | New: Bamboo Workflow 2016 v1 - Restricted [ 1436455 ] |
Workflow | Original: Bamboo Workflow 2014 v2 [ 859907 ] | New: Bamboo Workflow 2016 v1 [ 1417667 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Resolved [ 5 ] |
Status | Original: Open [ 1 ] | New: Needs Triage [ 10030 ] |
Comment | [ A comment with security level 'atlassian-staff' was removed. ] |
Description |
Original:
h3. Summary
The 'Remote Trigger' in Bamboo is causing only main plans to be triggered, even though commits are made to branches associated to branch plans within that main plan. Example: I have the following test project setup: Main plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "develop". Branch plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "master". For both repositories selected Bitbucket. (See screenshot for what I mean by that. I will test with Git later). Now when I commit changes to *master* brach main plan gets triggered instead of Master branch plan. I expect Master branch plan to be triggered. New commit to develop branch will trigger main branch plan as expected. It works well if "Pull the repository for changes" selected. h3. Steps to Reproduce # Create a repository in BitBucket (and possibly other repositories) with the main and another branch, say test branch. # Create a plan in Bamboo associated with the main branch and a branch plan within it associated with the 'test' branch # Link the plan with the repository # Create a 'Remote Trigger' in Bamboo to the repository and a service in Bitbucket, as described [here|https://confluence.atlassian.com/display/BAMBOO/Repository+triggers+the+build+when+changes+are+committed], so BitBucket triggers the build immediately after commit # Commit to the 'test' branch h3. Expected Results # A build in the branch plan is triggered, as this is the one associated with the 'test' branch h3. Actual Results # The main branch is triggered h3.Workaround # Use repository polling instead |
New:
h3. Summary
The 'Remote Trigger' in Bamboo is causing only main plans to be triggered, even though commits are made to branches associated to branch plans within that main plan. Example: I have the following test project setup: Main plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "develop". Branch plan with trigger "Repository triggers the build then changes are commited" and selected repository with branch "master". For both repositories selected Bitbucket. (See screenshot for what I mean by that. I will test with Git later). Now when I commit changes to *master* brach main plan gets triggered instead of Master branch plan. I expect Master branch plan to be triggered. New commit to develop branch will trigger main branch plan as expected. It works well if "Pull the repository for changes" selected. h3. Steps to Reproduce # Create a repository in BitBucket (and possibly other repositories) with the main and another branch, say test branch. # Create a plan in Bamboo associated with the main branch and a branch plan within it associated with the 'test' branch # Add repository to the plan # Create a 'Remote Trigger' in Bamboo to the repository and a service in Bitbucket, as described [here|https://confluence.atlassian.com/display/BAMBOO/Repository+triggers+the+build+when+changes+are+committed], so BitBucket triggers the build immediately after commit # Commit to the 'test' branch h3. Expected Results # A build in the branch plan is triggered, as this is the one associated with the 'test' branch h3. Actual Results # The main branch is triggered h3.Workaround # Use repository polling instead |
v.prudnikov Did you select "Advanced trigger options" when configuring service in bitbucket? Does it correctly work if you do?
The difference between this checkbox off and on is the following:
Related bitbucket ticket
I'm looking forward to hearing from you.
Marcin Gardias
Bamboo development team