提交 0c54ef47 编写于 作者: K Kohsuke Kawaguchi

This is the right phase to fill in all the descriptors

上级 216073a5
......@@ -252,9 +252,12 @@ public class ExtensionList<T> extends AbstractList<T> {
if (extensions==null)
return; // not yet loaded. when we load it, we'll load everything visible by then, so no work needed
List<ExtensionComponent<T>> l = Lists.newArrayList(extensions);
l.addAll(load(delta));
extensions = sort(l);
Collection<ExtensionComponent<T>> found = load(delta);
if (!found.isEmpty()) {
List<ExtensionComponent<T>> l = Lists.newArrayList(extensions);
l.addAll(found);
extensions = sort(l);
}
}
}
......
......@@ -344,6 +344,8 @@ public abstract class PluginManager extends AbstractModelObject {
p.resolvePluginDependencies();
strategy.load(p);
Jenkins.getInstance().refreshExtensions();
p.getPlugin().postInitialize();
} catch (Exception e) {
failedPlugins.add(new FailedPlugin(p.getShortName(), e));
......@@ -361,7 +363,6 @@ public abstract class PluginManager extends AbstractModelObject {
}
}.discoverTasks(r));
new InitReactorRunner().run(r);
Jenkins.getInstance().refreshExtensions();
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册