From 132c58db22dad6d80b59a97428d9bd15e2533e46 Mon Sep 17 00:00:00 2001 From: Chase King Date: Wed, 5 Mar 2025 10:00:10 -0500 Subject: [PATCH] Changed the way we 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 48984cac..7b210278 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -159,7 +159,7 @@ stages: # (($num_failures -eq 0)) && jira_message='Playwright tests passed!' || jira_message=\"$num_failures Playwright tests failed.\" # TODO: Update to include test status message later echo \"Contents of ortoni-report:\" && ls ./ortoni-report && - branch_name=$(git rev-parse --abbrev-ref HEAD) # Had to do it this way because Build.SourceBranchName is always 'merge' on PR + 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 echo \"Retrieved branch name: '$branch_name'\" jira_card_number=\"${branch_name##*/}\" # Grab everything after last '/' echo \"Writing report to Jira card '$jira_card_number'...\" &&