[ci] Update reproducible build related pipeline. (#11810)

This commit is contained in:
Liu Shilong 2022-08-29 11:26:15 +08:00 committed by GitHub
parent 4b4e311c14
commit 35945c9015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
variables: variables:
${{ if eq(variables['Build.Reason'],'PullRequest') }}: ${{ if eq(variables['Build.Reason'],'PullRequest') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([ "$(System.PullRequest.TargetBranch)" != "master" ] && echo deb,py2,py3,web,git,docker)' VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(System.PullRequest.TargetBranch)" =~ ^20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker)'
${{ elseif ne(variables['Build.SourceBranchName'],'master') }}: ${{ elseif ne(variables['Build.SourceBranchName'],'master') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker' VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
${{ else }}: ${{ else }}:

View File

@ -38,7 +38,7 @@ stages:
variables: variables:
- name: CACHE_MODE - name: CACHE_MODE
value: wcache value: wcache
- template: azure-pipelines-repd-build-variables.yml - template: azure-pipelines-repd-build-variables.yml@buildimage
jobs: jobs:
- template: azure-pipelines-build.yml - template: azure-pipelines-build.yml
parameters: parameters:

View File

@ -38,10 +38,7 @@ resources:
variables: variables:
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml@buildimage - template: .azure-pipelines/azure-pipelines-repd-build-variables.yml@buildimage
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: - template: .azure-pipelines/template-variables.yml@buildimage
- template: .azure-pipelines/template-variables.yml
- ${{ else }}:
- template: .azure-pipelines/template-variables.yml@buildimage
- name: CACHE_MODE - name: CACHE_MODE
value: rcache value: rcache
- name: ENABLE_FIPS - name: ENABLE_FIPS