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

Document the recommended Build set up #89

Closed alanraison closed 5 years ago

alanraison commented 5 years ago

I'm trying to convert my build plans from bamboo-specs to plandsl but I am a little confused about the recommended set up. Should there be a separate PlanDSL build, or can the seed task be embedded in the main "code" build? In either case, when a VCS change triggers a build, will there be a race condition where the build configuration is updated whilst a "code" build is running?

mrueegg commented 5 years ago

@alanraison We actually recommend to have the DSL scripts in a separate build only containing the seed task, therefore having it separate from the actual builds.

Are you referring to race conditions that could happen when both the seed plan and referenced other plans are running concurrently? If yes, we haven't experienced any. When a build plan is triggered, any changes to its plan that occur during the build shouldn't affect it.

alanraison commented 5 years ago

Yes, I mean if you make a code change that also affects the build plan, will the seed project update the build plan before the build plan runs? I suppose I could set up a couple of linked repositories with different include/exclude patterns and make the build plan a child build of the seed project build.

Thanks for your help!