本文整理了Java中hudson.model.Hudson.getDependencyGraph()
方法的一些代码示例,展示了Hudson.getDependencyGraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.getDependencyGraph()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:getDependencyGraph
暂无
代码示例来源:origin: hudson/hudson-2.x
/**
* Gets all the downstream projects including transitive downstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveDownstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Gets all the upstream projects including transitive upstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Gets all the downstream projects including transitive downstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveDownstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Gets all the upstream projects including transitive upstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Gets all the upstream projects including transitive upstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Gets all the upstream projects including transitive upstream projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveUpstream(this);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Gets all the downstream projects including transitive downstream
* projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveDownstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Gets all the downstream projects including transitive downstream
* projects.
*
* @since 1.138
*/
public final Set<AbstractProject> getTransitiveDownstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getTransitiveDownstream(this);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* 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);
}
代码示例来源:origin: hudson/hudson-2.x
@Exported
public final List<AbstractProject> getUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getUpstream(this);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* 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);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* 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);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* 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);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
@Exported
public final List<AbstractProject> getUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getUpstream(this);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Exported
public final List<AbstractProject> getUpstreamProjects() {
return Hudson.getInstance().getDependencyGraph().getUpstream(this);
}
代码示例来源:origin: org.jenkins-ci.plugins/ivy
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;
}
代码示例来源:origin: org.hudsonci.plugins/ivy
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;
}
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
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;
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
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;
}
}
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
@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;
}
内容来源于网络,如有侵权,请联系作者删除!