Changed the way we get source branch name
This commit is contained in:
parent
2bd2ffcabb
commit
ef921f2d5d
1 changed files with 2 additions and 2 deletions
|
|
@ -158,8 +158,8 @@ stages:
|
||||||
# (($num_failures -eq 0)) && jira_message='Playwright tests passed!' || jira_message=\"$num_failures Playwright tests failed.\"
|
# (($num_failures -eq 0)) && jira_message='Playwright tests passed!' || jira_message=\"$num_failures Playwright tests failed.\"
|
||||||
# TODO: Update to include test status message later
|
# TODO: Update to include test status message later
|
||||||
echo \"Contents of ortoni-report:\" && ls ./ortoni-report &&
|
echo \"Contents of ortoni-report:\" && ls ./ortoni-report &&
|
||||||
branch_name="$(System.PullRequest.SourceBranch)"
|
branch_name=$(git rev-parse --abbrev-ref HEAD) # Had to do it this way because Build.SourceBranchName is always "merge" on PR
|
||||||
jira_card_number="${branch_name##*/}"
|
jira_card_number="${branch_name##*/}" # Grab everything after last "/""
|
||||||
echo \"Writing report to Jira card '$jira_card_number'...\" &&
|
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)\" ")
|
./devops/scripts/jira_writeback.sh add_comment \"$jira_card_number\" /app/ortoni-report/ortoni-report.html \"AUTOMATED TEST RUN: $(date)\" ")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue