/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
@Override public final boolean isDisabled() { // Matrix configurations cannot be disabled independently from the master return getParent().isDisabled(); }
/** * Inherit the value from the parent. */ @Override public SCMCheckoutStrategy getScmCheckoutStrategy() { return getParent().getScmCheckoutStrategy(); }
/** * Inherit the value from the parent. */ @Override public int getScmCheckoutRetryCount() { return getParent().getScmCheckoutRetryCount(); }
/** * @since 2.1.0 */ @Override public ACL getACL() { return getParent().getACL(); } /**
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * Inherit the value from the parent. */ @Override public int getScmCheckoutRetryCount() { return getParent().getScmCheckoutRetryCount(); }
/** * @since 2.1.0 */ @Override public ACL getACL() { return getParent().getACL(); }
/** * @since 2.1.0 */ @Override public DescribableList<BuildWrapper, Descriptor<BuildWrapper>> getBuildWrappersList() { return getParent().getBuildWrappersList(); }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
@Override public void delete() throws IOException, InterruptedException{ //do not delete active configuration if(getParent().getActiveConfigurations().contains(this)) return; super.delete(); }
/** * Gets the {@link MatrixBuild} that has the same build number. * * @return * null if no such build exists, which happens when the module build * is manually triggered. */ public MatrixBuild getParentBuild() { return getParent().getParent().getBuildByNumber(getNumber()); }
@Override public LogRotator getLogRotator() { LogRotator lr = getParent().getLogRotator(); return new LinkedLogRotator(lr != null ? lr.getArtifactDaysToKeep() : -1, lr != null ? lr.getArtifactNumToKeep() : -1); }
@Override public LogRotator getLogRotator() { LogRotator lr = getParent().getLogRotator(); return new LinkedLogRotator(lr != null ? lr.getArtifactDaysToKeep() : -1, lr != null ? lr.getArtifactNumToKeep() : -1); }
@Override public BuildDiscarder getBuildDiscarder() { // TODO: LinkedLogRotator doesn't work very well in the face of pluggable BuildDiscarder but I don't know what to do BuildDiscarder bd = getParent().getBuildDiscarder(); if (bd instanceof LogRotator) { LogRotator lr = (LogRotator) bd; return new LinkedLogRotator(lr.getArtifactDaysToKeep(),lr.getArtifactNumToKeep()); } return new LinkedLogRotator(); }
@Override protected MatrixRun newBuild() throws IOException { // for every MatrixRun there should be a parent MatrixBuild MatrixBuild lb = getParent().getLastBuild(); MatrixRun lastBuild = new MatrixRun(this, lb.getTimestamp()); lastBuild.number = lb.getNumber(); builds.put(lastBuild); return lastBuild; }
@Override protected MatrixRun newBuild() throws IOException { // for every MatrixRun there should be a parent MatrixBuild MatrixBuild lb = getParent().getLastBuild(); MatrixRun lastBuild = new MatrixRun(this, lb.getTimestamp()); lastBuild.number = lb.getNumber(); builds.put(lastBuild); return lastBuild; }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }