I'm trying to create a groovy script where I set the release permissions fort he M2 Release Plugin. But I can't figure out how to do that. The build in permissons can be accessed via hudson.model.Item.PROPERTY, for example hudson.model.Item.CANCEL. But hudson.model.Item.Release just returns "No such property".
Any ideas on how to access this property? import hudson.security.* def job = Hudson.instance.items.find{job -> job.name == "MyJob"} def authorizationMatrixProperty = job.getProperty( AuthorizationMatrixProperty.class) authorizationMatrixProperty?.add(hudson.model.Item.CANCEL,"TESTUSER") authorizationMatrixProperty?.add(hudson.model.Item.RELEASE,"TESTUSER") -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5ec977b3-a9bf-44fe-9ec7-529fc584fcb6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.