title: eachFileRecurse instead of traverse
body: <p><strong>Hi all!</strong></p>
  <p>since we update Jenkins to V2.319 some pipelines Broke
  I'm trying to run a job with <em>eachFileRecurse()instead of traverse</em></p>
  <p><strong>I get this error:</strong></p>
  <p>Something went wrong: groovy.lang.MissingMethodException: No signature of method: java.io.File.eachFileRecurse() is applicable for argument types: (java.util.LinkedHashMap, groovy.io.FileType, WorkflowScript$_find_versions_closure1) values: [[nameFilter:app_ver.*.json$, excludeNameFilter:], ...]</p>
  <p>Possible solutions: eachFileRecurse(groovy.io.FileType, groovy.lang.Closure), eachFileRecurse(groovy.lang.Closure)</p>
  <p><strong>This is my code</strong></p>
  <pre><code>def find_versions(dirFile, fileNamefilter, excludeFileNameFiles) {
    list = []
  
      dirFile.traverse(type: FileType.FILES, nameFilter: fileNamefilter, excludeNameFilter: excludeFileNameFiles) {
          //println it.name
          def data= it.eachLine { line -&gt;
            // check if the line contains version 
            if(line.contains('&quot;app_ver&quot;:')){
              version = line.split(':')[1].split('-')[0].substring(1)
              version = version.replace('&quot;','')
              version = version.replace(' ','')
              println it.name+ &quot;  -&gt; use &quot; + version
              if(version.startsWith(&quot;v&quot;)){
                list.add(version)
              }
            }
          }
      }
      return list.unique()
  }
  </code></pre>
  <p>Can anyone help?</p>