diff --git a/.azure-pipelines/azure-pipelines-UpgrateVersion.yml b/.azure-pipelines/azure-pipelines-UpgrateVersion.yml index b0b84cf3b1..6e7ba0eb09 100644 --- a/.azure-pipelines/azure-pipelines-UpgrateVersion.yml +++ b/.azure-pipelines/azure-pipelines-UpgrateVersion.yml @@ -11,7 +11,11 @@ schedules: displayName: Daily Build branches: include: - - 202012 + - 20???? + exclude: + - 200??? + - 201??? + - 202006 always: true pool: sonicbld diff --git a/.azure-pipelines/azure-pipelines-repd-build-variables.yml b/.azure-pipelines/azure-pipelines-repd-build-variables.yml new file mode 100644 index 0000000000..7e831109e2 --- /dev/null +++ b/.azure-pipelines/azure-pipelines-repd-build-variables.yml @@ -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: '' diff --git a/.azure-pipelines/official-build-cache.yml b/.azure-pipelines/official-build-cache.yml index b3c9c6c876..4019dbba4f 100644 --- a/.azure-pipelines/official-build-cache.yml +++ b/.azure-pipelines/official-build-cache.yml @@ -18,7 +18,9 @@ stages: - stage: Build pool: sonicbld variables: - CACHE_MODE: cache + - name: CACHE_MODE + value: cache + - template: azure-pipelines-repd-build-variables.yml jobs: - template: azure-pipelines-build.yml parameters: diff --git a/.azure-pipelines/official-build-multi-asic.yml b/.azure-pipelines/official-build-multi-asic.yml index d220ecc347..8fe0be32db 100644 --- a/.azure-pipelines/official-build-multi-asic.yml +++ b/.azure-pipelines/official-build-multi-asic.yml @@ -18,9 +18,9 @@ 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' + - template: azure-pipelines-repd-build-variables.yml + - name: CACHE_MODE + value: wcache jobs: - template: azure-pipelines-build.yml parameters: diff --git a/.azure-pipelines/official-build.yml b/.azure-pipelines/official-build.yml index cb845e07ef..af43730915 100644 --- a/.azure-pipelines/official-build.yml +++ b/.azure-pipelines/official-build.yml @@ -25,9 +25,9 @@ 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' + - name: CACHE_MODE + value: wcache + - template: azure-pipelines-repd-build-variables.yml jobs: - template: azure-pipelines-build.yml parameters: diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index f8ae8e7199..5f8c0279b7 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -13,6 +13,8 @@ on: - reopened branches: - '202012' + - '202[1-9][0-9][0-9]' + - '20[3-9][0-9][0-9][0-9]' paths: - 'files/build/versions/**' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9d3d38aabc..0932bee9c0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,9 +35,9 @@ stages: - stage: Build pool: sonicbld variables: - CACHE_MODE: rcache - ${{ if eq(variables['Build.SourceBranchName'], '202012') }}: - VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker' + - template: .azure-pipelines/azure-pipelines-repd-build-variables.yml + - name: CACHE_MODE + value: rcache jobs: - template: .azure-pipelines/azure-pipelines-build.yml parameters: