Skip to content

Commit

Permalink
Merge pull request #1 from mc1arke/JENKINS-22679
Browse files Browse the repository at this point in the history
[FIXED JENKINS-22879] Fix Groovy classloading issue.
  • Loading branch information
jglick committed May 6, 2014
2 parents 51ac5ab + 6b58a34 commit a40e83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/matrix/FilterScript.java
Expand Up @@ -100,7 +100,7 @@ public static FilterScript parse(String expression, FilterScript defaultScript)
if (Util.fixEmptyAndTrim(expression)==null)
return defaultScript;

GroovyShell shell = new GroovyShell();
GroovyShell shell = new GroovyShell(FilterScript.class.getClassLoader());

return new FilterScript(shell.parse("use("+BooleanCategory.class.getName().replace('$','.')+") {"+expression+"}"));
}
Expand Down

0 comments on commit a40e83f

Please sign in to comment.