Merge "Fix the bug introduced by adding proxy for image build scripts"

This commit is contained in:
Zuul 2020-08-26 20:12:55 +00:00 committed by Gerrit Code Review
commit 4ce7faa4bc

View File

@ -304,7 +304,7 @@ function post_build {
PROXY_ARGS+=(--env no_proxy=$NO_PROXY)
fi
docker run "${PROXY_ARGS[@]}" --entrypoint /bin/bash --name ${USER}_update_img ${build_image_name} -c "${CUSTOMIZATION}"
docker run ${PROXY_ARGS[@]} --entrypoint /bin/bash --name ${USER}_update_img ${build_image_name} -c "${CUSTOMIZATION}"
if [ $? -ne 0 ]; then
echo "Failed to add customization for ${LABEL}... Aborting"
RESULTS_FAILED+=(${LABEL})