FIX ISeMPTY CHECK

This commit is contained in:
Roberto Cirillo 2022-10-04 10:06:59 +02:00
parent 51b48579ab
commit fa0928823d
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -109,7 +109,9 @@ pipeline {
def deployFolder="CD-${env.BUILD_NUMBER}";
println ("searching files in folder ${deployFolder}");
def files = findFiles(glob: "${deployFolder}/*.csv")
if (!files.isEmpty()){
if (files.isEmpty()){
println ("Nothing to do");
}else{
for (def file : files){
echo """
Found: ${file.name} with path ${file.path}
@ -128,8 +130,7 @@ pipeline {
}
}
cleanup(DEPLOY_FILE,BACKUP_FILE);
}else{
println ("Nothing to do");
}
}