public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes==null) axes = getParent().getAxes(); return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
/** * 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 getRunForConfiguration(config); }
/** * 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 the base {@link MatrixBuild} that this build originates from. * <p> * If this build is a partial build, unexecuted {@link MatrixRun}s are delegated to this build number. */ public MatrixBuild getBaseBuild() { return baseBuild==null ? getPreviousBuild() : getParent().getBuildByNumber(baseBuild); }
/** * Returns all {@link MatrixRun}s for this {@link MatrixBuild}. */ @Exported public List<MatrixRun> getRuns() { List<MatrixRun> r = new ArrayList<MatrixRun>(); for(MatrixConfiguration c : getParent().getItems()) { MatrixRun b = getRunForConfiguration(c); if (b != null) r.add(b); } return r; }
/** * 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()); }
@Override public boolean endBuild() throws InterruptedException, IOException { PrintStream logger = listener.getLogger(); logger.println("End of Matrix Build. Updating JIRA."); Updater updater = new Updater(this.build.getParent().getScm(), labels); return updater.perform(this.build, this.listener, getIssueSelector()); } };
/** * True if this build didn't do a full build and it is depending on the result of the previous build. */ public boolean isPartial() { for(MatrixConfiguration c : getParent().getActiveConfigurations()) { MatrixRun b = c.getNearestOldBuild(getNumber()); if (b != null && b.getNumber()!=getNumber()) return true; } return false; }
public boolean doBuildConfiguration(MatrixBuild b, MatrixConfiguration c) { MatrixSubsetAction a = b.getAction(MatrixSubsetAction.class); if (a==null) return true; // run the filter and restrict the subset to run return c.getCombination().evalScriptExpression(b.getParent().getAxes(), a.getFilter()); }
@Override public boolean doBuildConfiguration(MatrixBuild b, MatrixConfiguration c) { MatrixSubsetAction a = b.getAction(MatrixSubsetAction.class); if (a==null) return true; // run the filter and restrict the subset to run return c.getCombination().evalGroovyExpression(b.getParent().getAxes(),a.getFilter()); } }
/** * @return True if another {@link MatrixBuild} build (passed as a parameter) depends on this build. * @since 1.481 */ public boolean isLinkedBy(MatrixBuild b) { if(null == b) return false; for(MatrixConfiguration c : b.getParent().getActiveConfigurations()) { MatrixRun r = c.getNearestOldBuild(b.getNumber()); if (r != null && r.getNumber()==getNumber()) return true; } return false; }
@Override public MatrixAggregator createAggregator(final MatrixBuild build, final Launcher launcher, final BuildListener listener) { WarningsPublisher publisher = build.getParent().getPublishersList().get(WarningsPublisher.class); if (publisher == null) { return null; } return new WarningsAnnotationsAggregator(build, launcher, listener, publisher, publisher.getDefaultEncoding(), publisher.usePreviousBuildAsReference(), publisher.useOnlyStableBuildsAsReference()); } }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }