sonic-buildimage/.azure-pipelines/official-build.yml
Shilong Liu 33106c2b47
[CI] Adjust azp build artifacts and platform to keep same with Jenkins (#7702)
* adjust azp official build platform
* update azp official build
2021-05-27 10:35:06 +08:00

50 lines
1.2 KiB
YAML

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
schedules:
- cron: "0 8 * * *"
displayName: Daily midnight build
branches:
include:
- master
- 202012
always: true
- cron: "0 4 * * *"
displayName: nightly build for release
branches:
include:
- 201911
- 201811
trigger: none
pr: none
stages:
- stage: Build
pool: sonicbld
variables:
CACHE_MODE: wcache
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
jobs:
- template: azure-pipelines-build.yml
parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
jobFilters: none
jobGroups:
- name: vs
- name: barefoot
variables:
swi_image: yes
- name: broadcom
variables:
swi_image: yes
- name: innovium
- name: mellanox
variables:
sync_rpc_image: yes
platform_rpc: mlnx
- name: nephos