Issue Type: Improvement Improvement
Affects Versions: current
Assignee: Gregory Boissinot
Components: shared-objects
Created: 31/Jan/13 9:35 PM
Description:

I am unable to import some classes into Shared Objects Groovy Scripts.

[EnvInject] - [ERROR] - SEVERE ERROR occurs: startup failed:
Script1.groovy: 2: unable to resolve class hudson.scm.SubversionSCM
@ line 2, column 1.
import hudson.scm.SubversionSCM;

Initial investigation:
GroovySharedObjectType.java

GroovyShell groovyShell = new GroovyShell()

Looking at how it was implemented in Environment Inject plugin, the following seems to fix my issue:

GroovyShell shell = new GroovyShell(Hudson.getInstance().getPluginManager().uberClassLoader);

Project: Jenkins
Priority: Major Major
Reporter: Geoff Cummings
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to