2021-12-23 02:16:55 -06:00
|
|
|
variables:
|
2022-07-13 04:30:23 -05:00
|
|
|
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
|
|
|
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([ "$(System.PullRequest.TargetBranch)" != "master" ] && echo deb,py2,py3,web,git,docker)'
|
2022-07-17 23:45:05 -05:00
|
|
|
${{ elseif ne(variables['Build.SourceBranchName'],'master') }}:
|
2021-12-23 02:16:55 -06:00
|
|
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
2022-07-13 04:30:23 -05:00
|
|
|
${{ else }}:
|
2021-12-23 02:16:55 -06:00
|
|
|
VERSION_CONTROL_OPTIONS: ''
|