Try setting the env-inject plugin and use env.X / env.Y from your pipeline.
https://jenkinsci.github.io/job-dsl-plugin/#path/pipelineJob-environmentVariables
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/1e6038cc-9cee-4026-bcf8-0e7fad2480b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Fiouz