Skip to content

Commit

Permalink
Merge pull request #6784 from chainer-ci/bp-6781-v10-fix-prep-script
Browse files Browse the repository at this point in the history
[backport] CI: Fix prep script to show build failure details
  • Loading branch information
kmaehashi committed Jun 14, 2022
2 parents 3719ba9 + 3ce07ce commit 3b12f17
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .pfnci/linux/main-flexci-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ env

gcloud auth configure-docker

for DF in "$(dirname ${0})"/tests/*.Dockerfile; do
echo "$(basename "${DF}")" | cut -d . -f 1
done | xargs -i -n 1 -P 4 bash -c 'echo "flexci-prep: $2 start"; DOCKER_IMAGE_CACHE=0 "$1" "$2" build push rmi > /dev/null 2>&1 && echo "flexci-prep: $2 succeeded" || echo "flexci-prep: $2 failed"' -- "$(dirname ${0})/run.sh" "{}"
for DF in $(find "$(dirname ${0})/tests" -name "*.Dockerfile" -type f); do
echo "$(basename "${DF}" .Dockerfile)"
done | xargs -i -n 1 -P 4 bash -c '
echo "flexci-prep: $2 start";
DOCKER_IMAGE_CACHE=0 "$1" "$2" build push rmi > "log_$2.out" 2>&1 && (
echo "flexci-prep: $2 succeeded"
) || (
echo "flexci-prep: $2 *** FAILED ***" && cat "log_$2.out" && echo "flexci-prep: terminating further builds" && exit 255
)
' -- "$(dirname ${0})/run.sh" "{}"

0 comments on commit 3b12f17

Please sign in to comment.