mibexsoftware / bamboo-plan-dsl-plugin

Configuration as code with a Groovy-based DSL or YAML for Atlassian Bamboo.
https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.plandsl/
Other
40 stars 16 forks source link

Race condition when setting variables in the branch plans #67

Open sohrab- opened 6 years ago

sohrab- commented 6 years ago

I created a bunch of branch plans that rely on overriding a variable from the main plan. All those branch plans are created as "enabled" so as soon as the plugin creates the branch plan, it kicks of the first build.

I noticed all them failed their first build because the variable was not overridden and defaulted to parent value.

I checked afterwards and the variable is set in the branch configuration and a new build does pick it up (but a re-build doesn't). So it makes me think that there is a race condition where the branch plans are marked ready before they are actually fully configured.

mrueegg commented 6 years ago

Please excuse my late response! Could you please provide me an example DSL so I can try to reproduce this?