Package hudson.matrix
Class DefaultMatrixExecutionStrategyImpl
java.lang.Object
hudson.model.AbstractDescribableImpl<MatrixExecutionStrategy>
hudson.matrix.MatrixExecutionStrategy
hudson.matrix.DefaultMatrixExecutionStrategyImpl
- All Implemented Interfaces:
ExtensionPoint
,Describable<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/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionDefaultMatrixExecutionStrategyImpl
(boolean runSequentially, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter) DefaultMatrixExecutionStrategyImpl
(Boolean runSequentially, boolean hasTouchStoneCombinationFilter, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
If true,MatrixRun
s are run sequentially, instead of running in parallel.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 Details
-
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 Details
-
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
-
setTouchStoneCombinationFilter
-
getTouchStoneResultCondition
-
setTouchStoneResultCondition
-
getSorter
-
setSorter
-
run
public Result run(MatrixBuild.MatrixBuildExecution execution) throws InterruptedException, IOException - Overrides:
run
in classMatrixExecutionStrategy
- Throws:
InterruptedException
IOException
-