The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I am trying to use Bamboo Build Plan Triggers functionality for multiple repositories.
Below is the setup I have.
Below bitbucket activity is done on the 3rd repository which is configured as above
I expected as per above setup, a plan branch build should trigger but it isn't happening.
What's happening is any activity defined above, done on 1st repository works.
So the 'trigger' functionality only works for first repository.
My Goal:
To add multiple repositories (which is done) and configure triggers on all repositories to trigger the same build plan when some activity (such as commit on a branch) is done on the repositories..
Please assist
Atlassian Bamboo version 6.6.3 build 60607 - 25 Sep 18
Atlassian Bitbucket v5.7.0
Thanks,
Himanshu
Bamboo plans will only create plan branches for the main repository. This is expected.
It is indeed a complex subject. If Bamboo created the branch as you expect, what would be the branch of other repositories in this build? Difficult to decide...
The current Bamboo design only has plan branches for the first repository and all other repositories will be set to use their default branch for builds. The branches can be manually adjusted for each plan branch.
There is a feature request to help to adjust this automatically:
The triggers should work for all of them, but from your description, I assume that you have plan branches defined like:
| Repository | Plan branch | Repository Branch |
| Main Repo | "Default" | master |
| Repo 2 | | master |
| Repo 3 | | master |
| Repository | Plan branch | Repository Branch |
| Main Repo | "Develop" | develop |
| Repo 2 | | master |
| Repo 3 | | master |
This is to say that if you commit in Repo 2 or 3, it will only trigger a build if the commit is happening in master (or whatever repository branch configured in the plan branches available).
Does that make any sense?
I'll wait for your comments.
Hi @Daniel Santos ,
Thank you for the response and also sharing the feature request ticket.
The branches can be manually adjusted for each plan branch.
It will be tedious work instead I would create individual bamboo builds for respective repositories. Manual doesn't fit in the equation of automatic builds ;)
But like you said and explicated in the mentioned JIRA ticket, trigger behavior is only limited to Plan's main repository
This is to say that if you commit in Repo 2 or 3, it will only trigger a build if the commit is happening in master (or whatever repository branch configured in the plan branches available).
We don't commit on master branches so below will be our final configuration
Plan --> Branches --> Create plan branch --> When pull request is created
But I understood your point and hope to see this functionality implemented.
I am still confused on the trigger configuration? There are 4 different repositories and it only works for 1st repository in the list.
Then is there a reason show other repositories and allowing them to check it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The build should be triggered by changes in the second repository (third and so on), assuming the commit happened in the same branch configured for a given plan branch.
In this screenshot, we have the Plan branch called bugfix-bugtest.
Commits in Repository (second repo) will only trigger bugfix-bugtest if they happen for the branch configured for that repository in bugfix-bugtest plan branch.
Does that make it clear why commits on the other repos are not triggering the build? am I missing something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah. Now I understood it. Explanation with an example had clear the doubts.
Thanks for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.