Fixed quote escaping

This commit is contained in:
Chase King 2025-03-05 10:38:59 -05:00
parent b1cbed58f8
commit 057727e9ac

View file

@ -142,9 +142,9 @@ 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
echo \"Retrieved branch name: '$branch_name'\"
jira_card_number=\"${branch_name##*/}\" # Grab everything after last '/'
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 '/'
# Create container for jira writeback
container_id=$(docker create \
--ipc=host \