[ci] Update reproducible build related pipeline. (#11810)
This commit is contained in:
parent
4b4e311c14
commit
35945c9015
@ -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 }}:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user