[CI] Use the same template in PR-build pipeline and official-build pipeline

Signed-off-by: liushilongbuaa <shilongliu@microsoft.com>
This commit is contained in:
liushilongbuaa 2021-04-20 09:15:00 +08:00 committed by lguohan
parent 2dc7dc336b
commit 6bc660e11b

View File

@ -32,27 +32,18 @@ resources:
stages: stages:
- stage: Build - stage: Build
pool: sonicbld pool: sonicbld
variables:
CACHE_MODE: rcache
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
jobs: jobs:
- template: .azure-pipelines/build-template.yml - template: .azure-pipelines/azure-pipelines-build.yml
parameters: parameters:
platform: broadcom buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
platform_short: brcm jobFilters:
cache_mode: rcache - vs
sync_rpc_image: true - broadcom
- mellanox
- template: .azure-pipelines/build-template.yml
parameters:
platform: mellanox
platform_short: mlnx
cache_mode: rcache
sync_rpc_image: true
- template: .azure-pipelines/build-template.yml
parameters:
platform: vs
platform_short: vs
cache_mode: rcache
- stage: Test - stage: Test
variables: variables: