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

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

Monica August 16, 2018

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
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2018

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,...)
Monica August 20, 2018

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

Monica September 4, 2018

Daniel,

Any help on the above query.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events