hudson.model.AbstractProject.getTransitiveUpstreamProjects()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中hudson.model.AbstractProject.getTransitiveUpstreamProjects()方法的一些代码示例,展示了AbstractProject.getTransitiveUpstreamProjects()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractProject.getTransitiveUpstreamProjects()方法的具体详情如下:
包路径:hudson.model.AbstractProject
类名称:AbstractProject
方法名:getTransitiveUpstreamProjects

AbstractProject.getTransitiveUpstreamProjects介绍

[英]Gets all the upstream projects including transitive upstream projects.
[中]获取所有上游项目,包括可传递的上游项目。

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Works like {@link #getUpstreamBuilds()}  but also includes all the transitive
 * dependencies as well.
 */
public Map<AbstractProject,Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns the project if any of the upstream project is either
 * building or is in the queue.
 * <p>
 * This means eventually there will be an automatic triggering of
 * the given project (provided that all builds went smoothly.)
 */
public AbstractProject getBuildingUpstream() {
  Set<Task> unblockedTasks = Jenkins.getInstance().getQueue().getUnblockedTasks();
  for (AbstractProject tup : getTransitiveUpstreamProjects()) {
    if (tup!=this && (tup.isBuilding() || unblockedTasks.contains(tup)))
      return tup;
  }
  return null;
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Works like {@link #getUpstreamBuilds()}  but also includes all the transitive
 * dependencies as well.
 */
public Map<AbstractProject,Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Works like {@link #getUpstreamBuilds()}  but also includes all the transitive
 * dependencies as well.
 */
public Map<AbstractProject,Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Works like {@link #getUpstreamBuilds()} but also includes all the
 * transitive dependencies as well.
 */
public Map<AbstractProject, Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Works like {@link #getUpstreamBuilds()}  but also includes all the transitive
 * dependencies as well.
 */
public Map<AbstractProject,Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Works like {@link #getUpstreamBuilds()}  but also includes all the transitive
 * dependencies as well.
 */
public Map<AbstractProject,Integer> getTransitiveUpstreamBuilds() {
  return _getUpstreamBuilds(getParent().getTransitiveUpstreamProjects());
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Returns the project if any of the upstream project (or itself) is either
 * building or is in the unblocked queue. <p> This means eventually there
 * will be an automatic triggering of the given project (provided that all
 * builds went smoothly.)
 */
public AbstractProject getBuildingUpstream() {
  Set<Task> unblockedTasks = Hudson.getInstance().getQueue().getUnblockedTasks();
  for (AbstractProject tup : getTransitiveUpstreamProjects()) {
    if (tup!=this && (tup.isBuilding() || unblockedTasks.contains(tup)))
      return tup;
  }
  return null;
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Returns the project if any of the upstream project is either
 * building or is in the queue.
 * <p>
 * This means eventually there will be an automatic triggering of
 * the given project (provided that all builds went smoothly.)
 */
public AbstractProject getBuildingUpstream() {
  Set<Task> unblockedTasks = Jenkins.getInstance().getQueue().getUnblockedTasks();
  for (AbstractProject tup : getTransitiveUpstreamProjects()) {
    if (tup!=this && (tup.isBuilding() || unblockedTasks.contains(tup)))
      return tup;
  }
  return null;
}

相关文章

微信公众号

最新文章

更多

AbstractProject类方法