Allow pluginManager to be queried by superclasses

This commit is contained in:
Stephen Connolly committed 2011-10-20 10:27:28 +01:00
1 parent c2057762bd
commit bed2a27cf1
1 file changed
+9 -1
@@ -479,7 +479,15 @@ public class JenkinsRule implements TestRule, RootAction {
File home = tempFolder.newFolder("jenkins-home-" + testDescription.getDisplayName());
for (JenkinsRecipe.Runner r : recipes)
r.decorateHome(this,home);
return new Hudson(home, webServer, useLocalPluginManager ? null : pluginManager);
return new Hudson(home, webServer, getPluginManager());
}
public PluginManager getPluginManager() {
if (hudson == null) {
return useLocalPluginManager ? null : pluginManager;
} else {
return hudson.getPluginManager();
}
}
/**