Class CounterBuildParameterFactory
java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
hudson.plugins.parameterizedtrigger.CounterBuildParameterFactory
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractBuildParameterFactory>
A BuildParameterFactory generating Predefined Parameters for a counter
- Author:
- Chris Johnson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorsConstructorDescriptionCounterBuildParameterFactory
(long from, long to, long step, String paramExpr) CounterBuildParameterFactory
(long from, long to, long step, String paramExpr, CounterBuildParameterFactory.SteppingValidationEnum validationFail) CounterBuildParameterFactory
(String from, String to, String step, String paramExpr) CounterBuildParameterFactory
(String from, String to, String step, String paramExpr, CounterBuildParameterFactory.SteppingValidationEnum validationFail) -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()
getParameters
(AbstractBuild<?, ?> build, TaskListener listener) Let N be the length of the list returned by this method, and each item in this list X1, X2, X3, ...getStep()
getTo()
Methods inherited from class hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
getDescriptor
-
Constructor Details
-
CounterBuildParameterFactory
-
CounterBuildParameterFactory
public CounterBuildParameterFactory(long from, long to, long step, String paramExpr, CounterBuildParameterFactory.SteppingValidationEnum validationFail) -
CounterBuildParameterFactory
-
CounterBuildParameterFactory
@DataBoundConstructor public CounterBuildParameterFactory(String from, String to, String step, String paramExpr, CounterBuildParameterFactory.SteppingValidationEnum validationFail)
-
-
Method Details
-
getParameters
public List<AbstractBuildParameters> getParameters(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, AbstractBuildParameters.DontTriggerExceptionDescription copied from class:AbstractBuildParameterFactory
Let N be the length of the list returned by this method, and each item in this list X1, X2, X3, ... XN. This causes the parameterized trigger to trigger the configured project N times, each with Xi for i=1...N. If there is anotherAbstractBuildParameterFactory
configured and that returns Y1, Y2, ... YM, then the project will be invoked MxN times, with all the possible combinations of Xi and Yj.- Specified by:
getParameters
in classAbstractBuildParameterFactory
- Parameters:
build
- The build which the parameterized trigger is configured and executing.listener
- Connected to the build output.- Returns:
- can be empty but never null.
- Throws:
IOException
InterruptedException
AbstractBuildParameters.DontTriggerException
-
getFrom
-
getTo
-
getStep
-
getParamExpr
-
getvalidationFail
-