Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以使管道全局库即使在管道之外也可用?
也就是说,当使用groovy 脚本作为值源时,我想将那里的库用于扩展选择参数插件。
有一个选项可以为groovy 脚本定义Groovy Classpath。不确定这是否可行。
感谢您的任何提示
不是这样的。您最好的选择是将共享代码(Java 或 Groovy)打包到自定义插件中,具体取决于script-security并定义标有@Whitelisted注释的方法。
script-security
@Whitelisted