mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Allow pluginManager to be queried by superclasses
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user