소스 검색

Fail the build if deploy fails

Fixes: gh-5997
Rob Winch 6 년 전
부모
커밋
d5d9adf11d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Jenkinsfile

+ 3 - 0
Jenkinsfile

@@ -121,6 +121,9 @@ try {
 			}
 		}
 	}
+} catch(Exception e) {
+	currentBuild.result = 'FAILED: deploys'
+	throw e
 } finally {
 	def buildStatus = currentBuild.result
 	def buildNotSuccess =  !SUCCESS.equals(buildStatus)