Class FileBuildParameterFactory
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AbstractBuildParameterFactory>
-
- hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
-
- hudson.plugins.parameterizedtrigger.FileBuildParameterFactory
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractBuildParameterFactory>
public class FileBuildParameterFactory extends AbstractBuildParameterFactory
For each matching property file, invoke a build.- Author:
- shoughton, Chris Johnson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileBuildParameterFactory.DescriptorImpl
static class
FileBuildParameterFactory.NoFilesFoundEnum
Enum containing the action that could occur when there are no files found in the workspace-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FileBuildParameterFactory(String filePattern)
FileBuildParameterFactory(String filePattern, FileBuildParameterFactory.NoFilesFoundEnum noFilesFoundAction)
FileBuildParameterFactory(String filePattern, String encoding, FileBuildParameterFactory.NoFilesFoundEnum noFilesFoundAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncoding()
String
getFilePattern()
FileBuildParameterFactory.NoFilesFoundEnum
getNoFilesFoundAction()
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, ...-
Methods inherited from class hudson.plugins.parameterizedtrigger.AbstractBuildParameterFactory
getDescriptor
-
-
-
-
Constructor Detail
-
FileBuildParameterFactory
@DataBoundConstructor public FileBuildParameterFactory(String filePattern, String encoding, FileBuildParameterFactory.NoFilesFoundEnum noFilesFoundAction)
-
FileBuildParameterFactory
public FileBuildParameterFactory(String filePattern, FileBuildParameterFactory.NoFilesFoundEnum noFilesFoundAction)
-
FileBuildParameterFactory
public FileBuildParameterFactory(String filePattern)
-
-
Method Detail
-
getFilePattern
public String getFilePattern()
-
getEncoding
public String getEncoding()
-
getNoFilesFoundAction
public FileBuildParameterFactory.NoFilesFoundEnum getNoFilesFoundAction()
-
getParameters
public List<AbstractBuildParameters> getParameters(AbstractBuild<?,?> build, 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 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
-
-