-
Bug
-
Resolution: Unresolved
-
Minor
-
None
I'm trying to set additionalParameters from Groovy code, similar to JENKINS-44128.
steps { jobDsl { additionalClasspath(somePath) removedJobAction('DELETE') removedViewAction('DELETE') targets(someTargets) additionalParameters([arg1: 'test', arg2: 'test2']) } }
Whatever I do, I cannot specify the map of additionalParameters. I always get:
ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.additionalParameters() is applicable for argument types: (java.util.LinkedHashMap) values: ...
Could it be that maps cannot be passed at all, atm, maybe because they are not handled in https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/structs/DescribableContext.groovy#L72 ?