hudson.plugins.parameterizedtrigger
Class AbstractBuildParameterFactory

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
      extended by hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
All Implemented Interfaces:
hudson.model.Describable<AbstractBuildParameterFactory>
Direct Known Subclasses:
CounterBuildParameterFactory, FileBuildParameterFactory

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.


Constructor Summary
AbstractBuildParameterFactory()
           
 
Method Summary
 AbstractBuildParameterFactoryDescriptor getDescriptor()
           
abstract  List<AbstractBuildParameters> getParameters(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
          Let N be the length of the list returned by this method, and each item in this list X1, X2, X3, ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBuildParameterFactory

public AbstractBuildParameterFactory()
Method Detail

getParameters

public abstract List<AbstractBuildParameters> getParameters(hudson.model.AbstractBuild<?,?> build,
                                                            hudson.model.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 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:
IOException
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-2012. All Rights Reserved.