[steps:org.jenkinsci.plugins.workflow.cps.DSL@545c26e4, MYVAR:myvalue]
If ran on a sandboxed environment we get an error:
No such property: binding for class: groovy.lang.BindingCould this be a similar case as JENKINS-25914? That issue wasw closed on commit 0ee3e93 and related to commit 78563c4.Regards
node {binding['MYVAR'] = "myvalue"echo "${binding.getVariables()} "}If ran on a non-sandboxed environment, the output is nice:[steps:org.jenkinsci.plugins.workflow.cps.DSL@545c26e4, MYVAR:myvalue]