[JIRA] (JENKINS-60439) Unable to specify ExecuteDslScripts.additionalParameters from Groovy

3 views
Skip to first unread message

carsten.pfeiffer@gebit.de (JIRA)

unread,
Dec 11, 2019, 6:22:04 AM12/11/19
to jenkinsc...@googlegroups.com
Carsten Pfeiffer created an issue
 
Jenkins / Bug JENKINS-60439
Unable to specify ExecuteDslScripts.additionalParameters from Groovy
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2019-12-11 11:21
Priority: Minor Minor
Reporter: Carsten Pfeiffer

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 ?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages