fix findfiles method

This commit is contained in:
Roberto Cirillo 2022-10-04 09:46:54 +02:00
parent 647b4e52ac
commit 5e9c7a1e9f
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -108,7 +108,7 @@ pipeline {
// def files = findFiles(glob: 'target/surefire-reports/*.csv') // def files = findFiles(glob: 'target/surefire-reports/*.csv')
def deployFolder="CD-${env.BUILD_NUMBER}"; def deployFolder="CD-${env.BUILD_NUMBER}";
println ("searching files in folder ${deployFolder}"); println ("searching files in folder ${deployFolder}");
def files = findFiles(glob: "CD-${deployFolder}/*.csv") def files = findFiles(glob: "${deployFolder}/*.csv")
echo """ echo """
Processing: ${files[0].name} ${files[0].path} ${files[0].directory} Processing: ${files[0].name} ${files[0].path} ${files[0].directory}
${files[0].length} ${files[0].lastModified} ${files[0].length} ${files[0].lastModified}