Skip to content

Commit f5bef56

Browse files
[CI] Fix Azure pipeline set -e not work. (#9282)
In azure pipeline template 'set -e' not works as expected.
1 parent c0f0694 commit f5bef56

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.azure-pipelines/azure-pipelines-build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,14 @@ jobs:
101101
set -ex
102102
if [ $(GROUP_NAME) == vs ]; then
103103
if [ $(dbg_image) == yes ]; then
104-
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz && mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
104+
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz
105+
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
105106
fi
106107
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
107108
else
108109
if [ $(dbg_image) == yes ]; then
109-
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin && \
110-
mv target/sonic-$(GROUP_NAME).bin target/sonic-$(GROUP_NAME)-dbg.bin
110+
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin
111+
mv target/sonic-$(GROUP_NAME).bin target/sonic-$(GROUP_NAME)-dbg.bin
111112
fi
112113
if [ $(swi_image) == yes ]; then
113114
make $BUILD_OPTIONS ENABLE_IMAGE_SIGNATURE=y target/sonic-aboot-$(GROUP_NAME).swi

0 commit comments

Comments
 (0)