-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: matrix-auth-plugin
-
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
Â