hudson.model.AbstractBuild.getUpstreamRelationship()方法的使用及代码示例

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

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

AbstractBuild.getUpstreamRelationship介绍

[英]Gets the dependency relationship from this build (as the sink) and that project (as the source.)
[中]获取此生成(作为接收器)和该项目(作为源)的依赖关系

代码示例

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n>=0)
      r.put(p,n);
  }
  return r;
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
 * actual build object.
 *
 * @return
 *      null if no such upstream build was found, or it was found but the
 *      build record is already lost.
 */
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
  int n = getUpstreamRelationship(that);
  if (n==-1)   return null;
  return that.getBuildByNumber(n);
}

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject, Integer> r = new HashMap<AbstractProject, Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n >= 0) {
      r.put(p, n);
    }
  }
  return r;
}

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n>=0)
      r.put(p,n);
  }
  return r;
}

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n>=0)
      r.put(p,n);
  }
  return r;
}

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n>=0)
      r.put(p,n);
  }
  return r;
}

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

private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
  Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
  for (AbstractProject p : projects) {
    int n = getUpstreamRelationship(p);
    if (n>=0)
      r.put(p,n);
  }
  return r;
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
 * actual build object.
 *
 * @return
 *      null if no such upstream build was found, or it was found but the
 *      build record is already lost.
 */
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
  int n = getUpstreamRelationship(that);
  if (n==-1)   return null;
  return that.getBuildByNumber(n);
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns
 * the actual build object.
 *
 * @return null if no such upstream build was found, or it was found but the
 * build record is already lost.
 */
public AbstractBuild<?, ?> getUpstreamRelationshipBuild(AbstractProject<?, ?> that) {
  int n = getUpstreamRelationship(that);
  if (n == -1) {
    return null;
  }
  return that.getBuildByNumber(n);
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
 * actual build object.
 *
 * @return
 *      null if no such upstream build was found, or it was found but the
 *      build record is already lost.
 */
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
  int n = getUpstreamRelationship(that);
  if (n==-1)   return null;
  return that.getBuildByNumber(n);
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
 * actual build object.
 *
 * @return
 *      null if no such upstream build was found, or it was found but the
 *      build record is already lost.
 */
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
  int n = getUpstreamRelationship(that);
  if (n==-1)   return null;
  return that.getBuildByNumber(n);
}

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

/**
 * Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
 * actual build object.
 *
 * @return
 *      null if no such upstream build was found, or it was found but the
 *      build record is already lost.
 */
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
  int n = getUpstreamRelationship(that);
  if (n==-1)   return null;
  return that.getBuildByNumber(n);
}

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

int n = dlb.getUpstreamRelationship(up);
if(n==-1)   continue;

代码示例来源:origin: jenkinsci/maven-plugin

int n = dlb.getUpstreamRelationship(up);
if(n==-1)   continue;

代码示例来源:origin: org.jvnet.hudson.plugins/ivy

int n = dlb.getUpstreamRelationship(up);
if(n==-1)   continue;

代码示例来源:origin: org.hudsonci.plugins/ivy

int n = dlb.getUpstreamRelationship(up);
if(n==-1)   continue;

代码示例来源:origin: org.jenkins-ci.plugins/ivy

int n = dlb.getUpstreamRelationship(up);
if(n==-1)   continue;

相关文章

微信公众号

最新文章

更多

AbstractBuild类方法