[ci]: set -ex for official build to exit on any build failures

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
Guohan Lu 2021-05-03 12:31:52 -07:00
parent aeb73ad529
commit 853c214951

View File

@ -41,9 +41,11 @@ jobs:
- name: vs
variables:
dbg_image: yes
- name: barefoot
variables:
swi_image: yes
- name: broadcom
variables:
dbg_image: yes
@ -51,39 +53,48 @@ jobs:
raw_image: yes
sync_rpc_image: yes
platform_rpc: brcm
- name: centec
variables:
dbg_image: yes
sync_rpc_image: yes
platform_rpc: centec
- name: centec-arm64
pool: sonicbld_8c
timeoutInMinutes: 2160
variables:
PLATFORM_ARCH: arm64
- name: generic
variables:
dbg_image: yes
- name: innovium
variables:
swi_image: yes
- name: marvell-armhf
pool: sonicbld_8c
timeoutInMinutes: 2160
variables:
PLATFORM_ARCH: armhf
- name: mellanox
variables:
dbg_image: yes
sync_rpc_image: yes
platform_rpc: mlnx
- name: nephos
variables:
dbg_image: yes
sync_rpc_image: yes
platform_rpc: nephos
buildSteps:
- bash: |
set -ex
if [ $(GROUP_NAME) == vs ]; 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