Class FindFilesStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.utility.steps.fs.FindFilesStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class FindFilesStep
extends org.jenkinsci.plugins.workflow.steps.Step
List files in/under current working directory.
- Author:
- Robert Sandell <rsandell@cloudbees.com>.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPattern of files to excludes in the list.getGlob()
Pattern of files to include in the list.void
setExcludes
(String excludes) void
Pattern of files to include in the list.org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
FindFilesStep
@DataBoundConstructor public FindFilesStep()
-
-
Method Details
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getGlob
Pattern of files to include in the list. When omitting this only direct descendants of cwd will be listed otherwise all descendants can potentially be listed.- Returns:
- the search pattern
-
setGlob
Pattern of files to include in the list. When omitting this only direct descendants of cwd will be listed otherwise all descendants can potentially be listed.- Parameters:
glob
- the search pattern
-
getExcludes
Pattern of files to excludes in the list. This is useful for large directory structure (i.e npm-modules)- Returns:
- the excludes pattern
-
setExcludes
-