Currently Jenkinsfile ignores failures in sub-jobs related to docker
images (base image, wheels, etc). If they fail, the overall build
remains successful. This allows docker-related build problems remain
unnoticed.
Make this behavior conditional on a job parameter.
TESTS
==============================================
* A build where there are no docker-related errors (overall: SUCCESS)
* A build where wheels fail and SUPPRESS_DOCKER_IMAGE_BUILD_ERRORS is
true (overall: SUCCESS)
* A build where wheels fail and SUPPRESS_DOCKER_IMAGE_BUILD_ERRORS is
false (overall: FAIL)
Reviewed: https:/ /review. opendev. org/c/starlingx /jenkins- pipelines/ +/897867 /opendev. org/starlingx/ jenkins- pipelines/ commit/ a579327e43ccb83 caf7d9f60af1e01 f45e40c0c8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: r/stx.8.0
commit a579327e43ccb83 caf7d9f60af1e01 f45e40c0c8
Author: Davlet Panech <email address hidden>
Date: Fri Feb 3 10:25:41 2023 -0500
Better error handling for docker image sub-jobs
Currently Jenkinsfile ignores failures in sub-jobs related to docker
images (base image, wheels, etc). If they fail, the overall build
remains successful. This allows docker-related build problems remain
unnoticed.
Make this behavior conditional on a job parameter.
TESTS ======= ======= ======= ======= ======= ======= = DOCKER_ IMAGE_BUILD_ ERRORS is DOCKER_ IMAGE_BUILD_ ERRORS is
===
* A build where there are no docker-related errors (overall: SUCCESS)
* A build where wheels fail and SUPPRESS_
true (overall: SUCCESS)
* A build where wheels fail and SUPPRESS_
false (overall: FAIL)
Story: 2009895
Task: 47280
Closes-Bug: 2038569
Signed-off-by: Davlet Panech <email address hidden> c78c647c4da105d 550fe2facc4 4b00af830e263f7 65e297733f)
Change-Id: I16ac4f63033ecb
(cherry picked from commit 7481a3b257596c3