Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Bamboo Specs 6.3.1 - requireAllStagesPassing(true) doesn't work Edited

Hi,

I'm trying to set up a dependency between two projects/plans through Bamboo JAVA Specs. I could trigger a child plan but the problem is that it's always being triggered even though "requireAllStagesPassing(true)" is called and the parent job bypassed some stages. Here's a snippet of the code:

package com.workday.bamboo.utilities;

import ...

public class
PlanDependencies {
public static Dependencies branchHotpatch() {
return new Dependencies()
.configuration(
new DependenciesConfiguration()
.requireAllStagesPassing(true)
)
.childPlans(
new PlanIdentifier(
"UICLIENTGITHUBBUILD",
"UCBH"
)
);
}
}
...
public static
Plan createPlan(@NotNull final String headerPrefix,
@NotNull final String description,
@NotNull final Plans plan) {

return new Plan(
Projects.project(plan.bambooProject()),
headerPrefix + ") " + plan.toString(), plan.name())
.description(description)
.dependencies(PlanDependencies.branchHotpatch())
...

Here, a snippet of YAML:

dependenciesProperties:
childPlans:
- key:
key: UCBH
oid: null
projectKey:
key: UICLIENTGITHUBBUILD
dependenciesConfigurationProperties:
blockingStrategy: NONE
enabledForBranches: true
requireAllStagesPassing: true

And here's a screenshot of Bamboo UI after the plan created:

Screen Shot 2018-02-13 at 5.33.41 PM.png

Is there anything that I missed? Please advice.

1 answer

0 votes
rsperafico Atlassian Team Feb 14, 2018

Hello @Dean Nam,

Thank you for reaching out.

I have raised a ticket in our issue tracker reporting the above described and the same can be followed on https://jira.atlassian.com/browse/BAM-19684

Kind regards,

Rafael

Thanks for your quick follow up, @rsperafico.

rsperafico Atlassian Team Feb 15, 2018

Hello @Dean Nam,

You can make use of pluginConfigurations in the meantime:

.dependencies(new Dependencies().childPlans(new PlanIdentifier(projectKey, planKey)))
                .pluginConfigurations(new AllOtherPluginsConfiguration()
                        .configuration(new MapBuilder()
                            .put("custom.dependencies.triggerOnlyAfterAllStages", "true")
                            .build()));

Reference: https://docs.atlassian.com/bamboo-specs-docs/6.3.2/specs-java.html#dependencies

Kind regards,

Rafael 

hi @rsperafico,

 

I followed your workaround solution and it seems working now. Thanks for your help. 

Btw, it seems https://jira.atlassian.com/browse/BAM-19684 is marked as resolved as well. Should I upgrade our Bamboo to the latest version to have the bug fix?

 

Thank you!

Dean

rsperafico Atlassian Team Mar 08, 2018

Hello @Dean Nam,

Yes, you can once Bamboo v6.4.1 becomes available.

Kind regards,

Rafael

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

219 views 4 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