File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ parameters:
55
66steps :
77 - bash : |
8- if [ -n "$(System.PullRequest.SourceBranch) " ]; then
9- export SOURCE_BRANCH="$(System.PullRequest.SourceBranch) "
8+ if [ -n "$system_pull_request_source_branch " ]; then
9+ export SOURCE_BRANCH="$system_pull_request_source_branch "
1010 else
1111 export SOURCE_BRANCH=`echo $(SERVICE_ARTIFACT_NAME) | cut -d'+' -f1 | sed -e "s/$service_name-//"`
1212 fi
1313 echo "##vso[task.setvariable variable=BRANCH_NAME]`echo $SOURCE_BRANCH | sed -r 's/[/|\\@":<>?*]+/-/g'`"
1414 env:
1515 service_name: ${{ parameters.service_name }}
16+ system_pull_request_source_branch: $(System.PullRequest.SourceBranch)
1617 displayName: Set and replace invalid characters in branch name
1718
1819 - bash : ' echo "##vso[build.updatebuildnumber]$service_name-$(BRANCH_NAME)+$(Build.BuildID)"'
You can’t perform that action at this time.
0 commit comments