Skip to content

Commit

Permalink
[ci] Enable reproducible build in PR checks. (sonic-net#11411)
Browse files Browse the repository at this point in the history
* [ci] Enable reproducible build in PR checks.
  • Loading branch information
liushilongbuaa authored and skbarista committed Aug 17, 2022
1 parent b23bac9 commit 6bec1aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .azure-pipelines/azure-pipelines-repd-build-variables.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
variables:
${{ if and(ge(variables['Build.SourceBranchName'], '202012'), le(variables['Build.SourceBranchName'], '299999')) }}:
VERSION_CONTROL_OPTIONS: ''
${{ if or(lt(variables['Build.SourceBranchName'], '202012'), gt(variables['Build.SourceBranchName'], '299999')) }}:
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([ "$(System.PullRequest.TargetBranch)" != "master" ] && echo deb,py2,py3,web,git,docker)'
${{ elseif ne(variables['Build.SourceBranch'],'master') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
${{ else }}:
VERSION_CONTROL_OPTIONS: ''

0 comments on commit 6bec1aa

Please sign in to comment.