You need to build the key=value string here. Here is an example: https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/step/AbstractStepContext.groovy#L353