Throw exception for build stage
This is required so Jenkins will properly mark the build failed on valid script errors. Signed-off-by: brianherrera <briher@amazon.com>
This commit is contained in:
Vendored
+2
@@ -525,6 +525,8 @@ def CreateSingleNode(Map pipelineConfig, def platform, def build_job, Map envVar
|
|||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
if (envVars['NONBLOCKING_STEP']?.toBoolean()) {
|
if (envVars['NONBLOCKING_STEP']?.toBoolean()) {
|
||||||
unstable(message: "Build step ${build_step} failed but it's a non-blocking step in build job ${build_job.key}")
|
unstable(message: "Build step ${build_step} failed but it's a non-blocking step in build job ${build_job.key}")
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user