提交 78ffa3e9 编写于 作者: J Jesse Glick

Noting yet another weird problem with BuildTrigger’s reliance on...

Noting yet another weird problem with BuildTrigger’s reliance on DependencyGraph for its own execution.
Since this is now (1.522) updated asynchronously, the value may not actually be correct, potentially causing erratic behavior especially in tests.
上级 1805b90a
......@@ -192,6 +192,7 @@ public class BuildTrigger extends Recorder implements DependencyDeclarer {
public static boolean execute(AbstractBuild build, BuildListener listener) {
PrintStream logger = listener.getLogger();
// Check all downstream Project of the project, not just those defined by BuildTrigger
// TODO this may not yet be up to date if rebuildDependencyGraphAsync has been used; need a method to wait for the last call made before now to finish
final DependencyGraph graph = Jenkins.getInstance().getDependencyGraph();
List<Dependency> downstreamProjects = new ArrayList<Dependency>(
graph.getDownstreamDependencies(build.getProject()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册