mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
Fixups to PluginManager - getActiveInstance
This commit is contained in:
1 parent
b5fa04f048
commit
f9e1fe1421
1 file changed
+2
-2
@@ -437,7 +437,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
protected @Nonnull Set<String> loadPluginsFromWar(@Nonnull String fromPath, @CheckForNull FilenameFilter filter) {
|
||||
Set<String> names = new HashSet();
|
||||
|
||||
ServletContext context = Jenkins.getInstance().servletContext;
|
||||
ServletContext context = Jenkins.getActiveInstance().servletContext;
|
||||
Set<String> plugins = Util.fixNull((Set<String>) context.getResourcePaths(fromPath));
|
||||
Set<URL> copiedPlugins = new HashSet<>();
|
||||
Set<URL> dependencies = new HashSet<>();
|
||||
@@ -499,7 +499,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
String dependencySpec = manifest.getMainAttributes().getValue("Plugin-Dependencies");
|
||||
if (dependencySpec != null) {
|
||||
String[] dependencyTokens = dependencySpec.split(",");
|
||||
ServletContext context = Jenkins.getInstance().servletContext;
|
||||
ServletContext context = Jenkins.getActiveInstance().servletContext;
|
||||
|
||||
for (String dependencyToken : dependencyTokens) {
|
||||
if (dependencyToken.endsWith(";resolution:=optional")) {
|
||||
|
||||
Reference in new issue
Block a user