1
0
mirror of synced 2026-07-19 17:45:11 +00:00

Fail the build if deploy fails

Fixes: gh-5997
This commit is contained in:
Rob Winch
2018-10-18 16:03:00 -05:00
parent e1b095df32
commit d5d9adf11d
Vendored
+3
View File
@@ -121,6 +121,9 @@ try {
}
}
}
} catch(Exception e) {
currentBuild.result = 'FAILED: deploys'
throw e
} finally {
def buildStatus = currentBuild.result
def buildNotSuccess = !SUCCESS.equals(buildStatus)