/** * Gets all the downstream projects including transitive downstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this); }
/** * Gets all the upstream projects including transitive upstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this); }
/** * Gets all the downstream projects including transitive downstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this); }
/** * Gets all the upstream projects including transitive upstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this); }
/** * Gets all the upstream projects including transitive upstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this); }
/** * Gets all the upstream projects including transitive upstream projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this); }
/** * Gets all the downstream projects including transitive downstream * projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this); }
/** * Gets all the downstream projects including transitive downstream * projects. * * @since 1.138 */ public final Set<AbstractProject> getTransitiveDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this); }
/** * Gets the other {@link AbstractProject}s that should be built when a build * of this project is completed. */ @Exported public final List<AbstractProject> getDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getDownstream(this); }
@Exported public final List<AbstractProject> getUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getUpstream(this); }
/** * Gets the other {@link AbstractProject}s that should be built * when a build of this project is completed. */ @Exported public final List<AbstractProject> getDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getDownstream(this); }
/** * Gets the other {@link AbstractProject}s that should be built * when a build of this project is completed. */ @Exported public final List<AbstractProject> getDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getDownstream(this); }
/** * Gets the other {@link AbstractProject}s that should be built when a build * of this project is completed. */ @Exported public final List<AbstractProject> getDownstreamProjects() { return Hudson.getInstance().getDependencyGraph().getDownstream(this); }
@Exported public final List<AbstractProject> getUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getUpstream(this); }
@Exported public final List<AbstractProject> getUpstreamProjects() { return Hudson.getInstance().getDependencyGraph().getUpstream(this); }
private boolean inDownstreamProjects(AbstractProject downstreamProject) { DependencyGraph graph = Hudson.getInstance().getDependencyGraph(); Set<AbstractProject> tups = graph.getTransitiveUpstream(downstreamProject); for (AbstractProject tup : tups) { for (AbstractProject<?,?> dp : getParent().getDownstreamProjects()) { if(dp!=getParent() && dp!=downstreamProject && dp==tup) return true; } } return false; }
private boolean inDownstreamProjects(AbstractProject downstreamProject) { DependencyGraph graph = Hudson.getInstance().getDependencyGraph(); Set<AbstractProject> tups = graph.getTransitiveUpstream(downstreamProject); for (AbstractProject tup : tups) { for (AbstractProject<?,?> dp : getParent().getDownstreamProjects()) { if(dp!=getParent() && dp!=downstreamProject && dp==tup) return true; } } return false; }
private boolean inDownstreamProjects(AbstractProject downstreamProject) { DependencyGraph graph = Hudson.getInstance().getDependencyGraph(); Set<AbstractProject> tups = graph.getTransitiveUpstream(downstreamProject); for (AbstractProject tup : tups) { for (AbstractProject<?,?> dp : getParent().getDownstreamProjects()) { if(dp!=getParent() && dp!=downstreamProject && dp==tup) return true; } } return false; }
private boolean inDownstreamProjects(AbstractProject<?,?> downstreamProject) { DependencyGraph graph = Hudson.getInstance().getDependencyGraph(); Set<AbstractProject> tups = graph.getTransitiveUpstream(downstreamProject); for (AbstractProject tup : tups) { List<AbstractProject<?,?>> downstreamProjects = getUpstreamProject().getDownstreamProjects(); for (AbstractProject<?,?> dp : downstreamProjects) { if(dp!=getUpstreamProject() && dp!=downstreamProject && dp==tup) return true; } } return false; } }
@Override public CauseOfBlockage getCauseOfBlockage() { CauseOfBlockage cob = super.getCauseOfBlockage(); if (cob != null) return cob; if (!getParent().isAggregatorStyleBuild()) { DependencyGraph graph = Hudson.getInstance().getDependencyGraph(); for (AbstractProject tup : graph.getTransitiveUpstream(this)) { if(getParent() == tup.getParent() && (tup.isBuilding() || tup.isInQueue())) return new BecauseOfUpstreamModuleBuildInProgress(tup); } } return null; }