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

Plan variables are not accessible to the Plan DSL seed task #99

Closed krbcmt closed 4 years ago

krbcmt commented 4 years ago

Is it possible to set variables in the Seed task Plan that can get accessed by System.getenv("bamboo_some_var)"? As far as I can tell, the only environment variables available to the Seed task are JVM system properties. Is this improvement possible or am I missing the right way to access those variables?

mrueegg commented 4 years ago

Hi,

You can access Bamboo build variables within your DSL scripts (see https://github.com/mibexsoftware/bamboo-plan-dsl-plugin/wiki/Advanced-topics#accessing-bamboos-env-variables). Does that help you or are you looking for something else?

Best regards, Michael

krbcmt commented 4 years ago

That is exactly what I was looking for. I guess I'm one of those persons. Thank you for the response and sorry for the trouble.