2
0
Эх сурвалжийг харах

Fail the build if deploy fails

Fixes: gh-5997
Rob Winch 6 жил өмнө
parent
commit
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)