How can I obtain a map of environment vars containing the usual Jenkins environment vars.
I need as a map rather than broken out as individual cats line $Build_url etc
println env.getEnvironment()["JENKINS_HOME"]printlnenv.JENKINS_HOMEI am talking about accessing the environment from a job DSL groovy script.
My script is called test_dsl.groovy
It gives "no such property: environment for class: test_dsl"