private MatrixRun getRunForConfiguration(MatrixConfiguration c) { for (MatrixBuild b=this; b!=null; b=b.getBaseBuild()) { MatrixRun r = c.getBuildByNumber(b.getNumber()); if (r!=null) return r; } return null; }
/** * Returns all {@link MatrixRun}s for this {@link MatrixBuild}. */ public List<MatrixRun> getRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for (MatrixConfiguration c : getParent().getItems()) { MatrixRun b = c.getBuildByNumber(getNumber()); if (b != null) { r.add(b); } } return r; }
/** * Returns all {@link MatrixRun}s for this {@link MatrixBuild}. */ public List<MatrixRun> getRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for (MatrixConfiguration c : getParent().getItems()) { MatrixRun b = c.getBuildByNumber(getNumber()); if (b != null) { r.add(b); } } return r; }
/** * Returns all {@link MatrixRun}s for exactly this {@link MatrixBuild}. * <p> * Unlike {@link #getRuns()}, this method excludes those runs * that didn't run and got inherited. * @since 1.413 */ public List<MatrixRun> getExactRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for(MatrixConfiguration c : getParent().getItems()) { MatrixRun b = c.getBuildByNumber(getNumber()); if (b != null) r.add(b); } return r; }
/** * Returns all {@link MatrixRun}s for this {@link MatrixBuild}. */ public List<MatrixRun> getRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for (MatrixConfiguration c : getParent().getItems()) { MatrixRun b = c.getBuildByNumber(getNumber()); if (b != null) { r.add(b); } } return r; }
/** * Returns all {@link MatrixRun}s for this {@link MatrixBuild}. */ public List<MatrixRun> getRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for (MatrixConfiguration c : getParent().getItems()) { MatrixRun b = c.getBuildByNumber(getNumber()); if (b != null) { r.add(b); } } return r; }
@Override public AbstractBuild<?,?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild)owner; return b.getProject().getItem(Combination.fromString(child.name)).getBuildByNumber(child.build); }
/** * Gets the {@link MatrixRun} in this build that corresponds to the given * combination. */ public MatrixRun getRun(Combination c) { MatrixConfiguration config = getParent().getItem(c); if (config == null) { return null; } return config.getBuildByNumber(getNumber()); }
/** * Like {@link #getRun(Combination)}, but do not approximate the result by earlier execution * of the given combination (which is done for partial rebuild of the matrix.) */ public MatrixRun getExactRun(Combination c) { MatrixConfiguration config = getParent().getItem(c); if(config==null) return null; return config.getBuildByNumber(getNumber()); }
/** * Gets the {@link MatrixRun} in this build that corresponds * to the given combination. */ public MatrixRun getRun(Combination c) { MatrixConfiguration config = getParent().getItem(c); if (config == null) { return null; } return config.getBuildByNumber(getNumber()); }
/** * Gets the {@link MatrixRun} in this build that corresponds * to the given combination. */ public MatrixRun getRun(Combination c) { MatrixConfiguration config = getParent().getItem(c); if (config == null) { return null; } return config.getBuildByNumber(getNumber()); }
/** * Gets the {@link MatrixRun} in this build that corresponds * to the given combination. */ public MatrixRun getRun(Combination c) { MatrixConfiguration config = getParent().getItem(c); if (config == null) { return null; } return config.getBuildByNumber(getNumber()); }
MatrixRun b = c.getBuildByNumber(getNumber());
MatrixRun b = c.getBuildByNumber(getNumber());
MatrixRun b = c.getBuildByNumber(getNumber());
MatrixRun b = c.getBuildByNumber(getNumber());
MatrixRun b = c.getBuildByNumber(exec.getBuild().getNumber());
MatrixRun b = c.getBuildByNumber(n); if(b!=null && b.isBuilding()) {// executor can spend some time in post production state, so only cancel in-progress builds. Executor exe = b.getExecutor();
logger.println(Messages.MatrixBuild_Cancelled(c.getDisplayName())); MatrixRun b = c.getBuildByNumber(n); if (b != null) { Executor exe = b.getExecutor();
logger.println(Messages.MatrixBuild_Cancelled(c.getDisplayName())); MatrixRun b = c.getBuildByNumber(n); if (b != null) { Executor exe = b.getExecutor();