mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
[JENKINS-7535] Rebuilding dependency graph slow on large installations
Submitted by evernat.
This commit is contained in:
1 parent
39f1944b9b
commit
7d46b22599
2 files changed
+23
-7
No files matched your search
@@ -392,8 +392,9 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
|
||||
|
||||
for (MavenModule m : Hudson.getInstance().getAllItems(MavenModule.class)) {
|
||||
if(m.isDisabled()) continue;
|
||||
modules.put(m.asDependency(),m);
|
||||
modules.put(m.asDependency().withUnknownVersion(),m);
|
||||
ModuleDependency moduleDependency = m.asDependency();
|
||||
modules.put(moduleDependency,m);
|
||||
modules.put(moduleDependency.withUnknownVersion(),m);
|
||||
}
|
||||
|
||||
// in case two modules with the same name is defined, modules in the same MavenModuleSet
|
||||
@@ -401,8 +402,9 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
|
||||
|
||||
for (MavenModule m : getParent().getModules()) {
|
||||
if(m.isDisabled()) continue;
|
||||
modules.put(m.asDependency(),m);
|
||||
modules.put(m.asDependency().withUnknownVersion(),m);
|
||||
ModuleDependency moduleDependency = m.asDependency();
|
||||
modules.put(moduleDependency,m);
|
||||
modules.put(moduleDependency.withUnknownVersion(),m);
|
||||
}
|
||||
|
||||
// if the build style is the aggregator build, define dependencies against project,
|
||||
|
||||
Reference in new issue
Block a user