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

2017-04-21 Thread Victoria Kozel
Victor, thank you so much for your help! I already had Script Security Plugin installed, and all the methods I tried to execute unsuccessfully were conveniently added in the Method Authorization queue! All i needed to do is just approved them. Worked like a charm. Thank you!! On Thursday, Apri

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

2017-04-21 Thread Victor Martinez
It seems the https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Plugin has been installed and enabled, therefore you need to whitelist those methods. Or even using the https://wiki.jenkins-ci.org/display/JENKINS/Permissive+Script+Security+Plugin plugin in case you would like to grant

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 = Jenkin