package org.jenkinsci.plugins.p4.matrix; import hudson.Extension; import hudson.matrix.DefaultMatrixExecutionStrategyImpl; import hudson.matrix.MatrixExecutionStrategyDescriptor; import org.jenkinsci.Symbol; import org.kohsuke.stapler.DataBoundConstructor; import java.util.logging.Logger; public class MatrixOptions extends DefaultMatrixExecutionStrategyImpl { protected static final Logger LOGGER = Logger.getLogger(MatrixOptions.class .getName()); private final boolean buildParent; public boolean isBuildParent() { return buildParent; } @DataBoundConstructor public MatrixOptions(boolean buildParent, boolean buildAxes, boolean runSequentially) { super(runSequentially, false, null, null, null); this.buildParent = buildParent; } @Extension @Symbol("matrix") public static final class DescriptorImpl extends MatrixExecutionStrategyDescriptor { @Override public String getDisplayName() { return "Perforce: Matrix options"; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 22684 | Paul Allen | Added @Symbol to Extension classes for Pipeline Syntax. | ||
#2 | 11269 | Paul Allen |
Poll parent if Matrix 'Build Parent' is set. If the 'Build Parent' option under Configuration Matrix' --> 'Execution Strategy' --> 'Perforce: Matrix options' is set then polling will only check the parent and not the children for changes. |
||
#1 | 10906 | Paul Allen |
Matrix Polling and Parent control - Polling for Matrix builds calculates changes based on children. - Parent build disabled when using "Matrix options for Perforce" in the Matrix Configuration (can be enabled by checking the “Build parent” box). - Parent Build now substitutes ${var} with ‘*’ for the workspace view. e.g. //depot/${os}/… //ws/${os}/… becomes… //depot/*/… //ws/*/… instead of… //depot/os/… //ws/os/… |