Fixed quote escaping
This commit is contained in:
parent
b1cbed58f8
commit
057727e9ac
1 changed files with 3 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue