5417aab4ec
* [ci] Update azp template variable for reproducible build. (#11419) * [ci] Disable reproducible build in master branch official build (#11452) * [ci] Update reproducible build related pipeline. (#11810) * [ci] Fix bug involved by PR 11810 which affect official build pipeline (#11891) Why I did it Fix the official build not triggered correctly issue, caused by the azp template path not existing. How I did it Change the azp template path.
8 lines
438 B
YAML
8 lines
438 B
YAML
variables:
|
|
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
|
|
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 }}:
|
|
VERSION_CONTROL_OPTIONS: ''
|