Skip to content

Commit

Permalink
Fix TAG assignment logic using conditional variables and coalesce for…
Browse files Browse the repository at this point in the history
… consistent tagging across PR and master builds.
  • Loading branch information
shubhadapaithankar committed Dec 5, 2024
1 parent 5f24d03 commit 8ab7c7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ variables:
- name: VERSION
value: $(TAG)
- name: PR_TAG
value: $[ coalesce(contains(variables, 'System.PullRequest.PullRequestId') && variables['System.PullRequest.PullRequestId'] != '',
format('pr-{0}-{1}', variables['System.PullRequest.PullRequestId'], variables['System.PullRequest.SourceCommitId']), '') ]
value: $[ coalesce(format('pr-{0}-{1}', variables['System.PullRequest.PullRequestId'], variables['System.PullRequest.SourceCommitId']), '') ]
- name: MASTER_TAG
value: $[ coalesce(format('master-{0}', variables['Build.SourceVersion']), '') ]
- name: TAG
Expand Down

0 comments on commit 8ab7c7a

Please sign in to comment.