https://github.com/jenkinsci/bmc-change-manager-imstm-plugin/blob/929fd09178bb30bce1787fe4844a75fcf6751444/src/main/java/com/bmc/ims/BmcDlpBuilder.java#L445-L447 is not how this API is designed to be used at all. From https://javadoc.jenkins.io/plugin/script-security/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SecureGroovyScript.html
May be kept as the value of a field and passed in a DataBoundConstructor > parameter > I have no idea what you are attempting to do, but it will probably not work, or if it does, not be secure. I would advise not attempting to use in-process Groovy scripting if you can possibly avoid it. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3A5UtxUV%2B%3Dcw2VAjjmjPkQ1Sx5qfDrBpLHtqspvrCv%3DQ%40mail.gmail.com.