2021-03-12 02:44:09 -06:00
|
|
|
# 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
|
2021-03-12 02:45:21 -06:00
|
|
|
- 202012
|
2021-03-12 02:44:09 -06:00
|
|
|
always: true
|
|
|
|
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: Build
|
2021-04-21 21:11:11 -05:00
|
|
|
pool: sonicbld
|
|
|
|
variables:
|
|
|
|
CACHE_MODE: wcache
|
|
|
|
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
|
2021-08-04 11:59:02 -05:00
|
|
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
2021-03-12 02:44:09 -06:00
|
|
|
jobs:
|
2021-04-21 21:11:11 -05:00
|
|
|
- template: azure-pipelines-build.yml
|
2021-03-12 02:44:09 -06:00
|
|
|
parameters:
|
2021-04-21 21:11:11 -05:00
|
|
|
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
|
|
|
|
jobFilters: none
|