Class AbstractBuildParameterFactory
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
-
- hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractBuildParameterFactory>
- Direct Known Subclasses:
BinaryFileParameterFactory
,CounterBuildParameterFactory
,FileBuildParameterFactory
public abstract class AbstractBuildParameterFactory extends AbstractDescribableImpl<AbstractBuildParameterFactory> implements ExtensionPoint
Generates Build Parameters. These will can be used in the TriggerBuilder to trigger the same projects with many different parameters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AbstractBuildParameterFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractBuildParameterFactoryDescriptor
getDescriptor()
abstract List<AbstractBuildParameters>
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, ...
-
-
-
Method Detail
-
getParameters
public abstract List<AbstractBuildParameters> getParameters(AbstractBuild<?,?> build, TaskListener listener) throws IOException, InterruptedException, AbstractBuildParameters.DontTriggerException
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.- 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
-
getDescriptor
public AbstractBuildParameterFactoryDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<AbstractBuildParameterFactory>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<AbstractBuildParameterFactory>
-
-