diff --git a/Jenkinsfile b/Jenkinsfile index ad5fca4d3c28825f1b65cbc3a247ccb0fa7e1459..539a37af4fcf1fb83911ed0b7ac865600b8de73b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,7 +43,13 @@ def pre_test(){ git checkout develop git pull git fetch - git branch -D ${CHANGE_BRANCH} + ''' + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh ''' + git branch -D ${CHANGE_BRANCH} + ''' + } + git checkout ${CHANGE_BRANCH} git pull git merge develop