I have a parameterized job that uses the Perforce plugin and would like to retrieve the build parameters/properties as well as the p4.change property that\'s set by the Perf
System.getenv().each{ println it }
Or more sophisticated:
def myvariables = getBinding().getVariables() for (v in myvariables) { echo "${v} " + myvariables.get(v) }
You will need to disable "Use Groovy Sandbox" for both.