We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e6b63b + 585aac5 commit f270115Copy full SHA for f270115
.pipelines/azure-pipelines-repd-build-variables.yml
@@ -1,7 +1,7 @@
1
variables:
2
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
3
- VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(System.PullRequest.TargetBranch)" =~ ^refs/heads/internal-20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker)'
+ VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ $(System.PullRequest.TargetBranch) =~ ^refs/heads/internal-20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker || echo none)'
4
${{ elseif ne(variables['Build.SourceBranchName'],'internal') }}:
5
- VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(Build.SourceBranchName)" =~ ^internal-20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker)'
+ VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ $(Build.SourceBranchName) =~ ^internal-20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker || echo none)'
6
${{ else }}:
7
VERSION_CONTROL_OPTIONS: ''
0 commit comments