From 6bc660e11bc97ede7e9247e0c0e794b05e43a6e1 Mon Sep 17 00:00:00 2001 From: liushilongbuaa Date: Tue, 20 Apr 2021 09:15:00 +0800 Subject: [PATCH] [CI] Use the same template in PR-build pipeline and official-build pipeline Signed-off-by: liushilongbuaa --- azure-pipelines.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5d36ff5be8..c0b4cdc312 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,27 +32,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: