提交 45c8740a 编写于 作者: K kohsuke

talk about stupid bug...


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1985 71c3de6d-444a-0410-be80-ed276b4c234a
上级 fac67c18
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册