@Override public GroovyShellDecorator forTrusted() { return new GroovyShellDecorator() { @Override public void configureShell(CpsFlowExecution context, GroovyShell shell) { try { shell.getClassLoader().addURL(new File(repo.workspace,"src").toURI().toURL()); shell.getClassLoader().addURL(new File(repo.workspace, UserDefinedGlobalVariable.PREFIX).toURI().toURL()); } catch (MalformedURLException e) { throw new AssertionError(e); } } }; } }