2021-02-05 17:38:25 -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-04-07 18:05:31 -05:00
|
|
|
- 202012
|
2021-02-05 17:38:25 -06:00
|
|
|
always: true
|
2021-05-13 09:54:11 -05:00
|
|
|
- cron: "0 4 * * *"
|
|
|
|
displayName: nightly build for release
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- 201911
|
|
|
|
- 201811
|
2021-02-05 17:38:25 -06:00
|
|
|
|
2022-04-01 18:48:44 -05:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: buildimage
|
|
|
|
type: github
|
2022-08-02 03:24:14 -05:00
|
|
|
name: sonic-net/sonic-buildimage
|
2022-04-01 18:48:44 -05:00
|
|
|
ref: master
|
2022-08-02 03:24:14 -05:00
|
|
|
endpoint: sonic-net
|
2022-04-01 18:48:44 -05:00
|
|
|
|
2021-02-06 13:28:03 -06:00
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
2022-04-01 18:48:44 -05:00
|
|
|
variables:
|
|
|
|
- template: .azure-pipelines/template-variables.yml@buildimage
|
|
|
|
|
2021-02-05 17:38:25 -06:00
|
|
|
stages:
|
|
|
|
- stage: Build
|
2021-04-07 18:05:31 -05:00
|
|
|
pool: sonicbld
|
|
|
|
variables:
|
2021-12-23 02:16:55 -06:00
|
|
|
- name: CACHE_MODE
|
|
|
|
value: wcache
|
|
|
|
- template: azure-pipelines-repd-build-variables.yml
|
2021-02-05 17:38:25 -06:00
|
|
|
jobs:
|
2021-04-07 18:05:31 -05:00
|
|
|
- template: azure-pipelines-build.yml
|
2021-02-09 03:24:43 -06:00
|
|
|
parameters:
|
2021-04-07 18:05:31 -05:00
|
|
|
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
|
|
|
|
jobFilters: none
|
2022-07-31 22:31:02 -05:00
|
|
|
${{ if contains(variables['Build.DefinitionName'], 'cross') }}:
|
|
|
|
qemuOrCrossBuild: true
|