From 745d7322cd3cf3b713ef31ff1f7f598ff5b09dd8 Mon Sep 17 00:00:00 2001 From: Chase King Date: Wed, 5 Mar 2025 10:57:27 -0500 Subject: [PATCH] Attempting to grab source branch name --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c3a86377..7a521784 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -142,7 +142,7 @@ stages: tags: $(imageTag) arguments: '--no-cache --pull' - bash: | - branch_name=$(git name-rev --name-only --refs="refs/remotes/origin/*" HEAD^1 | sed 's/~.*//') # Had to do it this way because Build.SourceBranchName is always 'merge' on PR + branch_name=$(System.PullRequest.SourceBranch) echo "Retrieved branch name: '$branch_name'" jira_card_number="${branch_name##*/}" # Grab everything after last '/' # Create container for jira writeback