hudson.plugins.parameterizedtrigger
Class AbstractBuildParameterFactory
java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
- All Implemented Interfaces:
- hudson.model.Describable<AbstractBuildParameterFactory>
- Direct Known Subclasses:
- CounterBuildParameterFactory
public abstract class AbstractBuildParameterFactory
- extends hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
Generates Build Parameters. These will can be used in the TriggerBuilder to trigger the same projects with many different
parameters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBuildParameterFactory
public AbstractBuildParameterFactory()
getParameters
public abstract java.util.List<AbstractBuildParameters> getParameters(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.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 another
AbstractBuildParameterFactory 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:
java.io.IOException
java.lang.InterruptedException
AbstractBuildParameters.DontTriggerException
getDescriptor
public AbstractBuildParameterFactoryDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<AbstractBuildParameterFactory>- Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
Copyright © 2004-2011. All Rights Reserved.