generated from gCubeCI/Pipeline-Docker-Template
FIX ISeMPTY CHECK
This commit is contained in:
parent
51b48579ab
commit
fa0928823d
|
@ -109,7 +109,9 @@ pipeline {
|
||||||
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: "${deployFolder}/*.csv")
|
def files = findFiles(glob: "${deployFolder}/*.csv")
|
||||||
if (!files.isEmpty()){
|
if (files.isEmpty()){
|
||||||
|
println ("Nothing to do");
|
||||||
|
}else{
|
||||||
for (def file : files){
|
for (def file : files){
|
||||||
echo """
|
echo """
|
||||||
Found: ${file.name} with path ${file.path}
|
Found: ${file.name} with path ${file.path}
|
||||||
|
@ -128,8 +130,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cleanup(DEPLOY_FILE,BACKUP_FILE);
|
cleanup(DEPLOY_FILE,BACKUP_FILE);
|
||||||
}else{
|
|
||||||
println ("Nothing to do");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue