generated from gCubeCI/Pipeline-Docker-Template
fix clean method
This commit is contained in:
parent
3f3e10fa2f
commit
7a361393f1
|
@ -309,13 +309,13 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
|
||||||
}
|
}
|
||||||
|
|
||||||
//clean and update the local deploy file
|
//clean and update the local deploy file
|
||||||
def clean(def DEPLOY_FILE){
|
def clean(def file){
|
||||||
sh '''
|
sh '''
|
||||||
echo "cleanup $DEPLOY_FILE";
|
echo "cleaning $file";
|
||||||
if [ -f ${DEPLOY_FILE} ]; then
|
if [ -f ${file} ]; then
|
||||||
rm ${DEPLOY_FILE};
|
rm ${file};
|
||||||
else
|
else
|
||||||
echo "deploy file empty"
|
echo "file not exist"
|
||||||
fi
|
fi
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue