Re: Scripts not permitted to use staticMethod in Extensible Choice System Groovy

2017-04-21 Thread Victor Martinez
Please use the right mailing list and don't cross post your questions! - https://jenkins.io/content/mailing-lists/ In the above url you can find further details about how to ask and where exactly. Cheers On Friday, 21 April 2017 01:02:17 UTC+1, Victoria Kozel wrote: > > Hello, > > I am

Scripts not permitted to use staticMethod in Extensible Choice System Groovy

2017-04-20 Thread Victoria Kozel
Hello, I am writing a simple groovy script to display role-based choices in the Extensible Choice. I get org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod jenkins.model.Jenkins getInstance when calling def authStrategy =