Hi,
I would like to run build in bamboo(on master branch) when some branch was merged into master branch. I need it for uploading new artifacts into Nexus. I know that exists webhooks for these trigger but this is little bit dificult. We have Jira, Bitbucket and Bamboo and everything is linked. Exists better way for this trigger (after merge to master)?
Thank you for help
Radek
Hi Radek,
If I understand correctly you want a build to run only for the master branch when a pull request has been merged.
Do you allow changes to be made to the master branch if they don't come from a pull request?
I ask because you could make a clone of your current build plan that only watches for changes to the master branch and then builds and saves the artifacts whenever the master branch alone is updated.
-James
Do you allow changes to be made to the master branch if they don't come from a pull request?
No, we don't allow changes without pull request. How to set this watching for master branch? I can't see there this option.
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radek,
You would define this in the linked repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radek,
On the build plan itself you will want to make sure you have a repository trigger setup there that uses your linked repository that should do what you want it to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, when is something new in master then this trigger is run? What do you have in tab Branches? I'm little bit confused with "Create plan branch".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have anything listed for branches in this plan. By default the plan will run for the branch you have listed in the linked repository, there is no need to add a plan branch if master is all you plan to build with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radek,
You don't need to delete that, those are the default setting which won't automatically create plan branches (hence the create plan branches 'manually').
You should be able to just merge a pull request into the master beanch and watch the new plan automatically pick up the new change and start building.
-James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use an automation rule in Jira for this use case!
Steps:
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.