[ci] Update reproducible build related pipeline. (#11810)
This commit is contained in:
parent
4b4e311c14
commit
35945c9015
@ -1,6 +1,6 @@
|
||||
variables:
|
||||
${{ 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') }}:
|
||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
||||
${{ else }}:
|
||||
|
@ -38,7 +38,7 @@ stages:
|
||||
variables:
|
||||
- name: CACHE_MODE
|
||||
value: wcache
|
||||
- template: azure-pipelines-repd-build-variables.yml
|
||||
- template: azure-pipelines-repd-build-variables.yml@buildimage
|
||||
jobs:
|
||||
- template: azure-pipelines-build.yml
|
||||
parameters:
|
||||
|
@ -38,10 +38,7 @@ resources:
|
||||
|
||||
variables:
|
||||
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml@buildimage
|
||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- template: .azure-pipelines/template-variables.yml
|
||||
- ${{ else }}:
|
||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
||||
- name: CACHE_MODE
|
||||
value: rcache
|
||||
- name: ENABLE_FIPS
|
||||
|
Loading…
Reference in New Issue
Block a user