Thanks for your help

sure we are also considering CasC, but so far Post Init groovy scripts 
<https://www.jenkins.io/doc/book/managing/groovy-hook-scripts/#post-initialization-script-init-hook>
 
have proven to be a viable solution (but now outdated) to perform some 
configuration as code.

My concern here is this is the first time i am facing such issue, where a 
Java class method cannot be called from init groovy script.
Script is directly manipulating Jenkins java code, not API. So i would 
expect that the well-defined and simple (setter) java method 
setDisableRolePrefixing 
<https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)>
 can 
be called from it...

Regards

-- 
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/6c59421f-a686-40a8-a15e-6089f5d7943cn%40googlegroups.com.

Reply via email to