| apologies for the slight necro-post, but I haven't come across a better place to say something about this not working for me with the very latest Jenkins and matrix-auth plugins. even something as simple as the example Daniel Spilker gave above (except using authorizationMatrix since that was the symbol chosen) fails for me with the following error:
ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.Folder authorizationMatrix ConfigureJobDsl$_run_closure2$_closure5$_closure6)
here's some specific code that's giving me that error:
folder('project') {
properties {
authorizationMatrix {
inheritanceStrategy {
inheriting()
}
permissions(['hudson.model.Item.Build:jsleeper'])
}
}
}
|