A recent Jenkins build failed because the custom build script for the
cadvisor image falsely reported success, which prevented the master
build script from retrying the build of this project.
Solution: exit with non-zero if "docker build" fails
TESTS
======================
- Build image normally
- Force build.sh to return non-zero and make sure the retry logic kicks
in
Reviewed: https:/ /review. opendev. org/c/starlingx /app-power- metrics/ +/894225 /opendev. org/starlingx/ app-power- metrics/ commit/ 17ae181d29f3a20 aa3cf4de984cc14 e5d56dcea8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 17ae181d29f3a20 aa3cf4de984cc14 e5d56dcea8
Author: Davlet Panech <email address hidden>
Date: Thu Sep 7 16:09:43 2023 -0400
cadvisor docker image: don't ignore build errors
A recent Jenkins build failed because the custom build script for the
cadvisor image falsely reported success, which prevented the master
build script from retrying the build of this project.
Solution: exit with non-zero if "docker build" fails
TESTS ======= ======= =====
===
- Build image normally
- Force build.sh to return non-zero and make sure the retry logic kicks
in
Closes-Bug: 2034733 1c8cec5cfde23fe a1c454538f2
Change-Id: I12adbf41a8e64e
Signed-off-by: Davlet Panech <email address hidden>