fix clean method

This commit is contained in:
Roberto Cirillo 2022-10-04 10:48:23 +02:00
parent 7a361393f1
commit 360a7cf5be
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -312,8 +312,8 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
def clean(def file){
sh '''
echo "cleaning $file";
if [ -f ${file} ]; then
rm ${file};
if [ -f $file ]; then
rm $file;
else
echo "file not exist"
fi