Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-23127] Allow loading classes from plugins.
  • Loading branch information
KostyaSha committed May 21, 2014
1 parent 218676d commit 9568986
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
j.setProjectNamingStrategy(strategy);
} catch (ClassNotFoundException e) {
Expand Down

0 comments on commit 9568986

Please sign in to comment.