From 8ab7c7a5a4f76b22ffd01601a4d01924c56ef257 Mon Sep 17 00:00:00 2001 From: Shubhada Date: Thu, 5 Dec 2024 13:31:49 -0800 Subject: [PATCH] Fix TAG assignment logic using conditional variables and coalesce for consistent tagging across PR and master builds. --- .pipelines/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pipelines/ci.yml b/.pipelines/ci.yml index f72a909be8e..5a9a548c761 100644 --- a/.pipelines/ci.yml +++ b/.pipelines/ci.yml @@ -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