Jenkins pipeline groovy can't use eachFileRecurse method, so it can only help with shell. /path and *.txt are replaceable parameters.
files=sh(returnStdout: true, script: 'find /path -name "*.txt"')
Jenkins pipeline groovy can't use eachFileRecurse method, so it can only help with shell. /path and *.txt are replaceable parameters.
files=sh(returnStdout: true, script: 'find /path -name "*.txt"')