From e45d636b7712e474448d40aaca31bd352e4e52cd Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Thu, 22 Apr 2021 10:18:04 +0800 Subject: [PATCH] fix --- azure-pipelines.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fdc13b70f4..21c8d12324 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,27 +33,18 @@ resources: stages: - stage: Build pool: sonicbld - + variables: + CACHE_MODE: rcache + ${{ if eq(variables['Build.SourceBranchName'], '202012') }}: + VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web' jobs: - - template: .azure-pipelines/build-template.yml + - template: .azure-pipelines/azure-pipelines-build.yml parameters: - platform: broadcom - platform_short: brcm - cache_mode: rcache - sync_rpc_image: true - - - 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 + buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}' + jobFilters: + - vs + - broadcom + - mellanox - stage: Test variables: