2021-04-07 18:05:31 -05:00
|
|
|
# The azure pipeline template for Official build, and upgrade version build
|
|
|
|
|
2021-02-24 23:44:58 -06:00
|
|
|
parameters:
|
|
|
|
- name: 'jobFilters'
|
|
|
|
type: object
|
|
|
|
default: ''
|
|
|
|
- name: 'buildOptions'
|
|
|
|
type: string
|
|
|
|
default: 'SONIC_CONFIG_BUILD_JOBS=1'
|
2021-04-07 18:05:31 -05:00
|
|
|
- name: 'preSteps'
|
|
|
|
type: stepList
|
|
|
|
default: []
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: 'postSteps'
|
|
|
|
type: stepList
|
|
|
|
default: []
|
|
|
|
|
|
|
|
jobs:
|
2021-04-07 18:05:31 -05:00
|
|
|
- template: azure-pipelines-image-template.yml
|
2021-02-24 23:44:58 -06:00
|
|
|
parameters:
|
|
|
|
jobFilters: ${{ parameters.jobFilters }}
|
2021-04-07 18:05:31 -05:00
|
|
|
preSteps: ${{ parameters.preSteps }}
|
|
|
|
postSteps: ${{ parameters.postSteps }}
|
|
|
|
jobVariables:
|
2021-04-08 18:36:53 -05:00
|
|
|
PLATFORM_AZP: $(GROUP_NAME)
|
2021-04-07 18:05:31 -05:00
|
|
|
PLATFORM_ARCH: amd64
|
|
|
|
BUILD_OPTIONS: ${{ parameters.buildOptions }}
|
|
|
|
dbg_image: false
|
|
|
|
swi_image: false
|
|
|
|
raw_image: false
|
|
|
|
sync_rpc_image: false
|
|
|
|
platform_rpc: false
|
2021-02-24 23:44:58 -06:00
|
|
|
jobGroups:
|
|
|
|
- name: vs
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
dbg_image: true
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: barefoot
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
swi_image: true
|
|
|
|
- name: broadcom
|
|
|
|
variables:
|
|
|
|
dbg_image: true
|
|
|
|
swi_image: true
|
|
|
|
raw_image: true
|
|
|
|
sync_rpc_image: true
|
|
|
|
platform_rpc: brcm
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: centec
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
dbg_image: true
|
|
|
|
sync_rpc_image: true
|
|
|
|
platform_rpc: centec
|
|
|
|
- name: centec-arm64
|
|
|
|
pool: sonicbld_8c
|
|
|
|
variables:
|
|
|
|
arch: arm64
|
|
|
|
timeoutInMinutes: 1800
|
|
|
|
- name: generic
|
|
|
|
variables:
|
|
|
|
dbg_image: true
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: innovium
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
swi_image: true
|
|
|
|
- name: marvell-armhf
|
|
|
|
pool: sonicbld_8c
|
|
|
|
variables:
|
|
|
|
arch: armhf
|
|
|
|
timeoutInMinutes: 1800
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: mellanox
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
dbg_image: true
|
|
|
|
sync_rpc_image: true
|
|
|
|
platform_rpc: mlnx
|
2021-02-24 23:44:58 -06:00
|
|
|
- name: nephos
|
2021-04-07 18:05:31 -05:00
|
|
|
variables:
|
|
|
|
dbg_image: true
|
|
|
|
sync_rpc_image: true
|
|
|
|
platform_rpc: nephos
|
|
|
|
buildSteps:
|
|
|
|
- bash: |
|
|
|
|
if [ $(GROUP_NAME) == vs ]; then
|
|
|
|
if [ $(dbg_image) == true ]; 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
|
|
|
|
fi
|
|
|
|
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
|
|
|
|
else
|
|
|
|
if [ $(dbg_image) == true ]; then
|
|
|
|
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin && \
|
|
|
|
mv target/sonic-$(GROUP_NAME).bin target/sonic-$(GROUP_NAME)-dbg.bin
|
|
|
|
fi
|
|
|
|
if [ $(swi_image) == true ]; then
|
|
|
|
make $BUILD_OPTIONS ENABLE_IMAGE_SIGNATURE=y target/sonic-aboot-$(GROUP_NAME).swi
|
|
|
|
fi
|
|
|
|
if [ $(raw_image) == true ]; then
|
|
|
|
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
|
|
|
|
fi
|
|
|
|
if [ $(sync_rpc_image) == true ]; then
|
|
|
|
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz
|
|
|
|
fi
|
|
|
|
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).bin
|
|
|
|
fi
|