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>
monroegm-disable-blank-issue-2
brianherrera 4 years ago
parent d44cc844d1
commit eaddd4eee7
No known key found for this signature in database
GPG Key ID: FC67BB5F533BAE04

@ -525,6 +525,8 @@ def CreateSingleNode(Map pipelineConfig, def platform, def build_job, Map envVar
catch (Exception e) {
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}")
} else {
throw e
}
}
}

Loading…
Cancel
Save