moving echo print outside the loop

This commit is contained in:
Roberto Cirillo 2022-10-03 17:17:38 +02:00
parent 1245adac9a
commit 647b4e52ac
1 changed files with 4 additions and 0 deletions

4
Jenkinsfile vendored
View File

@ -109,6 +109,10 @@ pipeline {
def deployFolder="CD-${env.BUILD_NUMBER}";
println ("searching files in folder ${deployFolder}");
def files = findFiles(glob: "CD-${deployFolder}/*.csv")
echo """
Processing: ${files[0].name} ${files[0].path} ${files[0].directory}
${files[0].length} ${files[0].lastModified}
"""
for (def file : files){
echo """
Processing: ${files[0].name} ${files[0].path} ${files[0].directory}