Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

573 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you