From 2bd2ffcabbdc9fd347be04b74a1f24c3918838bd Mon Sep 17 00:00:00 2001 From: Chase King Date: Tue, 4 Mar 2025 16:38:01 -0500 Subject: [PATCH] Extract Jira Card Number from SourceBranchName --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3a647033..904fb5dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,9 +157,11 @@ stages: # echo \"Number of test failures: '$num_failures'\" # (($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 && - echo \"Writing report to Jira card '$(System.PullRequest.SourceBranchName)'...\" && - ./devops/scripts/jira_writeback.sh add_comment \"$(System.PullRequest.SourceBranchName)\" /app/ortoni-report/ortoni-report.html \"AUTOMATED TEST RUN: $(date)\" ") + echo \"Contents of ortoni-report:\" && ls ./ortoni-report && + branch_name="$(System.PullRequest.SourceBranch)" + jira_card_number="${branch_name##*/}" + echo \"Writing report to Jira card '$jira_card_number'...\" && + ./devops/scripts/jira_writeback.sh add_comment \"$jira_card_number\" /app/ortoni-report/ortoni-report.html \"AUTOMATED TEST RUN: $(date)\" ") # Start container and stream logs echo "Starting merge"