2021-12-23 02:16:55 -06:00
|
|
|
variables:
|
2022-07-13 03:58:37 -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)'
|
|
|
|
${{ elseif ne(variables['Build.SourceBranch'],'master') }}:
|
|
|
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
|
|
|
${{ else }}:
|
2021-12-23 02:16:55 -06:00
|
|
|
VERSION_CONTROL_OPTIONS: ''
|