Class 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>.
    • Constructor Detail

      • FindFilesStep

        @DataBoundConstructor
        public FindFilesStep()
    • Method Detail

      • start

        public org.jenkinsci.plugins.workflow.steps.StepExecution start​(org.jenkinsci.plugins.workflow.steps.StepContext context)
                                                                 throws Exception
        Specified by:
        start in class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception
      • getGlob

        public String 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

        @DataBoundSetter
        public void setGlob​(String glob)
        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

        public String 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

        @DataBoundSetter
        public void setExcludes​(String excludes)