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 = Jenkins.instance.getAuthorizationStrategy()


I am not sure I understand the reason for this, but my question is - Is there a 
workaround for this error?


Thank you!!

Vicki

-- 
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/a7a4b4ab-a2fc-4e2b-8363-692b0f17ee67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to