Package hudson.matrix
Class DefaultMatrixExecutionStrategyImpl
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<MatrixExecutionStrategy>
-
- hudson.matrix.MatrixExecutionStrategy
-
- hudson.matrix.DefaultMatrixExecutionStrategyImpl
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<MatrixExecutionStrategy>
public class DefaultMatrixExecutionStrategyImpl extends MatrixExecutionStrategy
MatrixExecutionStrategy
that captures historical behavior.This class is somewhat complex because historically this wasn't an extension point and so people tried to put various logics that cover different use cases into one place. Going forward, people are encouraged to create subtypes to implement a custom logic that suits their needs.
- Since:
- 1.456
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultMatrixExecutionStrategyImpl.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DefaultMatrixExecutionStrategyImpl()
DefaultMatrixExecutionStrategyImpl(boolean runSequentially, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
DefaultMatrixExecutionStrategyImpl(Boolean runSequentially, boolean hasTouchStoneCombinationFilter, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getHasTouchStoneCombinationFilter()
MatrixConfigurationSorter
getSorter()
String
getTouchStoneCombinationFilter()
Result
getTouchStoneResultCondition()
boolean
isRunSequentially()
If true,MatrixRun
s are run sequentially, instead of running in parallel.Result
run(MatrixBuild.MatrixBuildExecution execution)
void
setRunSequentially(boolean runSequentially)
void
setSorter(MatrixConfigurationSorter sorter)
void
setTouchStoneCombinationFilter(String touchStoneCombinationFilter)
void
setTouchStoneResultCondition(Result touchStoneResultCondition)
-
Methods inherited from class hudson.matrix.MatrixExecutionStrategy
getDescriptor, run
-
-
-
-
Constructor Detail
-
DefaultMatrixExecutionStrategyImpl
@DataBoundConstructor public DefaultMatrixExecutionStrategyImpl(Boolean runSequentially, boolean hasTouchStoneCombinationFilter, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
-
DefaultMatrixExecutionStrategyImpl
public DefaultMatrixExecutionStrategyImpl(boolean runSequentially, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
-
DefaultMatrixExecutionStrategyImpl
public DefaultMatrixExecutionStrategyImpl()
-
-
Method Detail
-
getHasTouchStoneCombinationFilter
public boolean getHasTouchStoneCombinationFilter()
-
isRunSequentially
public boolean isRunSequentially()
If true,MatrixRun
s are run sequentially, instead of running in parallel. TODO: this should be subsumed byResourceController
.
-
setRunSequentially
public void setRunSequentially(boolean runSequentially)
-
getTouchStoneCombinationFilter
public String getTouchStoneCombinationFilter()
-
setTouchStoneCombinationFilter
public void setTouchStoneCombinationFilter(String touchStoneCombinationFilter)
-
getTouchStoneResultCondition
public Result getTouchStoneResultCondition()
-
setTouchStoneResultCondition
public void setTouchStoneResultCondition(Result touchStoneResultCondition)
-
getSorter
public MatrixConfigurationSorter getSorter()
-
setSorter
public void setSorter(MatrixConfigurationSorter sorter)
-
run
public Result run(MatrixBuild.MatrixBuildExecution execution) throws InterruptedException, IOException
- Overrides:
run
in classMatrixExecutionStrategy
- Throws:
InterruptedException
IOException
-
-