diff --git a/Jenkinsfile b/Jenkinsfile index a9c17ec..6b92ca2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 ''' }