From 057727e9aced5613f6eaeddc4fac562dee7e86fc Mon Sep 17 00:00:00 2001 From: Chase King Date: Wed, 5 Mar 2025 10:38:59 -0500 Subject: [PATCH] Fixed quote escaping --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a79fcd0f..c3a86377 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 \