generated from gCubeCI/Pipeline-Docker-Template
fix clean method
This commit is contained in:
parent
7a361393f1
commit
360a7cf5be
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue