mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
talk about stupid bug...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1985 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
fac67c1837
commit
45c8740afe
1 file changed
+2
-1
@@ -182,12 +182,13 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
|
||||
// trigger dependency builds
|
||||
DependencyGraph graph = Hudson.getInstance().getDependencyGraph();
|
||||
for( AbstractProject down : getParent().getDownstreamProjects()) {
|
||||
if(!graph.hasIndirectDependencies(getParent(),down))
|
||||
if(!graph.hasIndirectDependencies(getParent(),down)) {
|
||||
// if there's a longer dependency path to this project,
|
||||
// then scheduling the build now is going to be a waste,
|
||||
// so don't do that.
|
||||
listener.getLogger().println("Triggering a new build of "+down.getName());
|
||||
down.scheduleBuild();
|
||||
}
|
||||
}
|
||||
}
|
||||
//// run all of them even if one of them failed
|
||||
|
||||
Reference in new issue
Block a user