2021-12-23 02:16:55 -06:00
|
|
|
variables:
|
2022-07-13 04:30:23 -05:00
|
|
|
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
|
2022-08-28 22:26:15 -05:00
|
|
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(System.PullRequest.TargetBranch)" =~ ^20[2-9][0-9]{3}$ ]] && 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: ''
|