-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
I have DSL script like this:
functions.groovy
... static void setJobAuthorization(def job) { job.with { properties { authorizationMatrix { inheritanceStrategy { nonInheriting() } entries { group { name('authenticated') permissions([ 'Job/Read' ]) } } } } } } ...
jobs.groovy
...
jobname = pipelineJob("build-pipeline")
setJobAuthorization(jobname)
and got the following error:
ERROR: (functions.groovy, line 51) No signature of method: java.util.LinkedHashMap.call() is applicable for argument types: (java.util.ArrayList) values: [[Job/Read]] Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), max(groovy.lang.Closure), take(int) Finished: FAILURE
Before version 3.2 everything worked fine
Please help