Skip to content

Commit

Permalink
[CI] Use the same template in PR-build pipeline and official-build pi…
Browse files Browse the repository at this point in the history
…peline

Signed-off-by: liushilongbuaa <shilongliu@microsoft.com>
  • Loading branch information
liushilongbuaa committed May 10, 2021
1 parent a09277a commit 900b876
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ 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/azure-pipelines-build.yml
parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
jobFilters:
- vs
- broadcom
- mellanox

- stage: Test
variables:
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.csv

jobs:
- job:
Expand Down

0 comments on commit 900b876

Please sign in to comment.