-
Bug
-
Resolution: Fixed
-
Major
Running the same groovy script on the web interface or on SSH's groovysh should have the same result. It doesn't, because SSH's classloader doesn't recognize the plugins (and possibly other classes)
i.e.
import hudson.scm.SubversionSCM
println(SubversionSCM.class)
won't work on SSH
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GroovyshCommand.java
http://jenkins-ci.org/commit/jenkins/ce0a36ffbd3a4d506303c825cc737d1c925ab6b5
Log:
[FIXED JENKINS-14982]
Groovy should use uberClassLoader for resolving stuff.