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
|
||||
def clean(def DEPLOY_FILE){
|
||||
def clean(def file){
|
||||
sh '''
|
||||
echo "cleanup $DEPLOY_FILE";
|
||||
if [ -f ${DEPLOY_FILE} ]; then
|
||||
rm ${DEPLOY_FILE};
|
||||
echo "cleaning $file";
|
||||
if [ -f ${file} ]; then
|
||||
rm ${file};
|
||||
else
|
||||
echo "deploy file empty"
|
||||
echo "file not exist"
|
||||
fi
|
||||
'''
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue