diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 076d93691..30b60a95a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -369,6 +369,12 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub' diff --git a/proxy/azure-pipelines.yml b/proxy/azure-pipelines.yml index 700da97e5..8be5212d6 100644 --- a/proxy/azure-pipelines.yml +++ b/proxy/azure-pipelines.yml @@ -88,6 +88,12 @@ stages: buildType: 'current' artifactName: 'swagger_client' path: "proxy/pkg/" + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub' diff --git a/web/azure-pipelines.yml b/web/azure-pipelines.yml index 564e1aeed..b91173cad 100644 --- a/web/azure-pipelines.yml +++ b/web/azure-pipelines.yml @@ -69,6 +69,12 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub'