[CI] Fix Azure pipeline set -e not work. (#9282)

In azure pipeline template 'set -e' not works as expected.
This commit is contained in:
Shilong Liu 2021-11-18 13:01:41 +08:00 committed by Ying Xie
parent 7fb8dae264
commit ba72136999

View File

@ -87,13 +87,14 @@ jobs:
- bash: | - bash: |
if [ $(GROUP_NAME) == vs ]; then if [ $(GROUP_NAME) == vs ]; then
if [ $(dbg_image) == yes ]; then if [ $(dbg_image) == yes ]; then
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz && mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
fi fi
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz
else else
if [ $(dbg_image) == yes ]; then if [ $(dbg_image) == yes ]; then
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin && \ make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin
mv target/sonic-$(GROUP_NAME).bin target/sonic-$(GROUP_NAME)-dbg.bin mv target/sonic-$(GROUP_NAME).bin target/sonic-$(GROUP_NAME)-dbg.bin
fi fi
if [ $(swi_image) == yes ]; then if [ $(swi_image) == yes ]; then
make $BUILD_OPTIONS ENABLE_IMAGE_SIGNATURE=y target/sonic-aboot-$(GROUP_NAME).swi make $BUILD_OPTIONS ENABLE_IMAGE_SIGNATURE=y target/sonic-aboot-$(GROUP_NAME).swi