Fail the build if deploy fails
Fixes: gh-5997
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -121,6 +121,9 @@ try {
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
currentBuild.result = 'FAILED: deploys'
|
||||
throw e
|
||||
} finally {
|
||||
def buildStatus = currentBuild.result
|
||||
def buildNotSuccess = !SUCCESS.equals(buildStatus)
|
||||
|
||||
Reference in New Issue
Block a user