Skip to content
Browse files

[FIXED JENKINS-23127] Allow loading classes from plugins.

  • Loading branch information
KostyaSha committed May 21, 2014
1 parent 218676d commit 9568986efb1f435ca2c95422c57fcf579c8bf222
@@ -46,7 +46,7 @@ public boolean configure(StaplerRequest req, JSONObject json) throws hudson.mode
final JSONObject strategyObject = optJSONObject.getJSONObject("namingStrategy");
final String className = strategyObject.getString("stapler-class");
try {
Class clazz = Class.forName(className);
Class clazz = Class.forName(className, true, Jenkins.getInstance().getPluginManager().uberClassLoader);
final ProjectNamingStrategy strategy = (ProjectNamingStrategy) req.bindJSON(clazz, strategyObject);
} catch (ClassNotFoundException e) {

0 comments on commit 9568986

Please sign in to comment.
You can’t perform that action at this time.