hudson.plugins.parameterizedtrigger
Class FileBuildParameterFactory

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

public class FileBuildParameterFactory
extends AbstractBuildParameterFactory

Author:
shoughton

Nested Class Summary
static class FileBuildParameterFactory.DescriptorImpl
           
 
Constructor Summary
FileBuildParameterFactory(String filePattern)
           
 
Method Summary
 String getFilePattern()
           
 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 hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBuildParameterFactory

@DataBoundConstructor
public FileBuildParameterFactory(String filePattern)
Method Detail

getFilePattern

public String getFilePattern()

getParameters

public List<AbstractBuildParameters> getParameters(hudson.model.AbstractBuild<?,?> build,
                                                   hudson.model.TaskListener listener)
                                            throws IOException,
                                                   InterruptedException,
                                                   AbstractBuildParameters.DontTriggerException
Description 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 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.

Specified by:
getParameters in class AbstractBuildParameterFactory
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


Copyright © 2004-2012. All Rights Reserved.