[Build]: Support reproducible build for release branches (#9426)
[Build]: Support reproducible build for release branches #9426
This commit is contained in:
parent
48a648c943
commit
faab7d5991
@ -11,7 +11,11 @@ schedules:
|
|||||||
displayName: Daily Build
|
displayName: Daily Build
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- 202012
|
- 20????
|
||||||
|
exclude:
|
||||||
|
- 200???
|
||||||
|
- 201???
|
||||||
|
- 202006
|
||||||
always: true
|
always: true
|
||||||
|
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
variables:
|
||||||
|
${{ if and(ge(variables['Build.SourceBranchName'], '202012'), le(variables['Build.SourceBranchName'], '299999')) }}:
|
||||||
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
||||||
|
${{ if or(lt(variables['Build.SourceBranchName'], '202012'), gt(variables['Build.SourceBranchName'], '299999')) }}:
|
||||||
|
VERSION_CONTROL_OPTIONS: ''
|
@ -18,7 +18,9 @@ stages:
|
|||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
variables:
|
variables:
|
||||||
CACHE_MODE: cache
|
- name: CACHE_MODE
|
||||||
|
value: cache
|
||||||
|
- template: azure-pipelines-repd-build-variables.yml
|
||||||
jobs:
|
jobs:
|
||||||
- template: azure-pipelines-build.yml
|
- template: azure-pipelines-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -18,9 +18,9 @@ stages:
|
|||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
variables:
|
variables:
|
||||||
CACHE_MODE: wcache
|
- template: azure-pipelines-repd-build-variables.yml
|
||||||
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
|
- name: CACHE_MODE
|
||||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
|
value: wcache
|
||||||
jobs:
|
jobs:
|
||||||
- template: azure-pipelines-build.yml
|
- template: azure-pipelines-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -25,9 +25,9 @@ stages:
|
|||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
variables:
|
variables:
|
||||||
CACHE_MODE: wcache
|
- name: CACHE_MODE
|
||||||
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
|
value: wcache
|
||||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
|
- template: azure-pipelines-repd-build-variables.yml
|
||||||
jobs:
|
jobs:
|
||||||
- template: azure-pipelines-build.yml
|
- template: azure-pipelines-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
2
.github/workflows/label.yml
vendored
2
.github/workflows/label.yml
vendored
@ -13,6 +13,8 @@ on:
|
|||||||
- reopened
|
- reopened
|
||||||
branches:
|
branches:
|
||||||
- '202012'
|
- '202012'
|
||||||
|
- '202[1-9][0-9][0-9]'
|
||||||
|
- '20[3-9][0-9][0-9][0-9]'
|
||||||
paths:
|
paths:
|
||||||
- 'files/build/versions/**'
|
- 'files/build/versions/**'
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ stages:
|
|||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
variables:
|
variables:
|
||||||
CACHE_MODE: rcache
|
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
|
||||||
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
|
- name: CACHE_MODE
|
||||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
value: rcache
|
||||||
jobs:
|
jobs:
|
||||||
- template: .azure-pipelines/azure-pipelines-build.yml
|
- template: .azure-pipelines/azure-pipelines-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
Loading…
Reference in New Issue
Block a user