Skip to content

Commit

Permalink
Merged PR 7162986: Fix the build quotation marks issue
Browse files Browse the repository at this point in the history
Fix the build quotation marks issue

Fix the set -e issue, failure issue
```
$ OPTIONS="TEST=$([[ a == b ]] && echo a)"
$ echo $?
1
```
  • Loading branch information
xumia committed Nov 18, 2022
2 parents 6e6b63b + 585aac5 commit f270115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pipelines/azure-pipelines-repd-build-variables.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
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)'
${{ elseif ne(variables['Build.SourceBranchName'],'internal') }}:
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)'
${{ else }}:
VERSION_CONTROL_OPTIONS: ''

0 comments on commit f270115

Please sign in to comment.