hudson.model.Run.getNextBuild()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(86)

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

Run.getNextBuild介绍

暂无

代码示例

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b!=null && b.getNumber()<r.end; b=b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

r.delete();
r = r.getNextBuild();
  r.deleteArtifacts();
r = r.getNextBuild();

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

while (r!=null && r.isKeepLog()) {
  kept.add(r.getNumber());
  r = r.getNextBuild();

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

if(since==null)
  return new Summary(false, Messages.Run_Summary_BrokenForALongTime());
RunT failedBuild = since.getNextBuild();
return new Summary(false, Messages.Run_Summary_BrokenSince(failedBuild.getDisplayName()));

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

public RunT superGetNextBuild() {
  return super.getNextBuild();
}

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Returns the same page in the next build.
 */
public String getNextBuildUrl() {
  return getUrl(run.getNextBuild());
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b!=null && b.getNumber()<r.end; b=b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b!=null && b.getNumber()<r.end; b=b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b != null && b.getNumber() < r.end; b = b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b!=null && b.getNumber()<r.end; b=b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

/**
 * Obtains all the {@link Run}s whose build numbers matches the given
 * {@link RangeSet}.
 */
public synchronized List<RunT> getBuilds(RangeSet rs) {
  List<RunT> builds = new LinkedList<RunT>();
  for (Range r : rs.getRanges()) {
    for (RunT b = getNearestBuild(r.start); b != null && b.getNumber() < r.end; b = b.getNextBuild()) {
      builds.add(b);
    }
  }
  return builds;
}

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

public Run getFirstFail(Run r) {
  Run lastGood = r.getPreviousNotFailedBuild();
  Run firstFail;
  if (lastGood == null) {
    firstFail = r.getParent().getFirstBuild();
  } else {
    firstFail = lastGood.getNextBuild();
  }
  return firstFail;
}

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

@Override
public RunT getNextBuild() {
  initPython();
  if (pexec.isImplemented(38)) {
    return (RunT) pexec.execPython("get_next_build");
  } else {
    return super.getNextBuild();
  }
}

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

/**
 * Populates the data set build with results from any successive and at max 9
 * previous builds.
 *
 * @param dataSetBuilder the data set
 * @param statusMap      key as build and value as the execution status (result) of
 *                       test method execution
 */
private void populateDataSetBuilder(
    DataSetBuilder<String, ChartUtil.NumberOnlyBuildLabel> dataSetBuilder,
    Map<ChartUtil.NumberOnlyBuildLabel, String> statusMap) {
  int count = 0;
  for (Run<?, ?> build = getRun(); build != null; build = build.getNextBuild()) {
    addData(dataSetBuilder, statusMap, build);
  }
  for (Run<?, ?> build = getRun();
     build != null && count++ < 10;
     //getting running builds as well (will deal accordingly)
     build = build.getPreviousBuild()) {
    addData(dataSetBuilder, statusMap, build);
  }
}

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

if(since==null)
  return new Summary(false, Messages.Run_Summary_BrokenForALongTime());
RunT failedBuild = since.getNextBuild();
return new Summary(false, Messages.Run_Summary_BrokenSince(failedBuild.getDisplayName()));

相关文章

微信公众号

最新文章

更多

Run类方法