2021-04-07 18:05:31 -05: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
|
|
|
|
- 202012
|
|
|
|
always: true
|
2021-05-13 09:54:11 -05:00
|
|
|
- cron: "0 4 * * *"
|
|
|
|
displayName: nightly build for release
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- 201911
|
|
|
|
- 201811
|
2021-04-07 18:05:31 -05:00
|
|
|
|
2022-06-22 04:33:20 -05:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: buildimage
|
|
|
|
type: github
|
2022-08-02 03:14:38 -05:00
|
|
|
name: sonic-net/sonic-buildimage
|
2022-06-22 04:33:20 -05:00
|
|
|
ref: master
|
2022-08-02 03:14:38 -05:00
|
|
|
endpoint: sonic-net
|
2022-06-22 04:33:20 -05:00
|
|
|
|
2021-04-07 18:05:31 -05:00
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
2022-06-22 04:33:20 -05:00
|
|
|
variables:
|
|
|
|
- template: .azure-pipelines/template-variables.yml@buildimage
|
|
|
|
|
2021-04-07 18:05:31 -05:00
|
|
|
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
|
2021-05-26 21:35:06 -05:00
|
|
|
jobGroups:
|
|
|
|
- name: vs
|
|
|
|
- name: barefoot
|
|
|
|
variables:
|
|
|
|
swi_image: yes
|
|
|
|
- name: broadcom
|
|
|
|
variables:
|
|
|
|
swi_image: yes
|
|
|
|
- name: innovium
|
|
|
|
- name: mellanox
|
|
|
|
variables:
|
2021-06-25 01:31:09 -05:00
|
|
|
docker_syncd_rpc_image: yes
|
|
|
|
syncd_rpc_image: yes
|
2021-05-26 21:35:06 -05:00
|
|
|
platform_rpc: mlnx
|
|
|
|
- name: nephos
|