Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,812
Community Members
 
Community Events
168
Community Groups

Feature branch based build plan in bamboo triggers integration build plan as well

We have branch based build plans in bamboo. Our requirement is to run only feature branch build plan when it is committed , but for us even Integration build plan is also getting triggered along with feature build. How this can be resolved?

 

1 answer

0 votes

Hi Monica,

I would start investigating the trigger configuration in the integration build plan. If the repository is the same, you have a trigger configured to build your plan on new changes and you have that plan branch, the integration build plan will run the build.

Things to check:

  •  What is the Trigger configured?
  •  Are you using the Automatic branch management to create the branches in your integration build plan?
    If yes, the plan branches of that feature will be created and possibly triggered (depending on your trigger configuration)
  •  In case you have that feature branch as a plan branch in your integration build plan, should it really be there?
    Maybe your automatic branch configuration should be set with a regular expression to avoid creating plan branches that should not be there?
  • What are the conditions to trigger the integration build plan? (no new changes, scheduled trigger, remote trigger,...)

Hi Daniel,

Below is the trigger configuration. Integration branch is the default branch configured to manage bamboo java-specs.

Trigger.jpg

PFB, snippet of automatic branch management from planspec:

 

return new Plan(project(), "file-interface-handler-feature-build",

                           "FILEHANDLERBUILD").triggers(new BitbucketServerTrigger()).linkedRepositories("file-interface-handler")

   .description("File Interface Handler Feature Build")

   .planBranchManagement(new PlanBranchManagement()

     .createForVcsBranchMatching("^feature/.*").delete(new BranchCleanup()

       .whenRemovedFromRepositoryAfterDays(5).whenInactiveInRepositoryAfterDays(7))

       .notificationForCommitters())

 

 

Thanks

Daniel,

Any help on the above query.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

310 views 0 7
Read article

Atlassian Community Events