diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4ffdd7813..076d93691 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,7 +11,7 @@ variables: ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}: branchName: ${{ replace(variables['Build.SourceBranchName'], 'refs/heads/', '') }} ${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}: - branchName: ${{ replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', '') }} + branchName: $(System.PullRequest.SourceBranch) stages: - stage: Lint diff --git a/proxy/azure-pipelines.yml b/proxy/azure-pipelines.yml index 71590480b..700da97e5 100644 --- a/proxy/azure-pipelines.yml +++ b/proxy/azure-pipelines.yml @@ -5,7 +5,7 @@ variables: ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}: branchName: ${{ replace(variables['Build.SourceBranchName'], 'refs/heads/', '') }} ${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}: - branchName: ${{ replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', '') }} + branchName: $(System.PullRequest.SourceBranch) stages: - stage: generate diff --git a/web/azure-pipelines.yml b/web/azure-pipelines.yml index 0771a4dea..564e1aeed 100644 --- a/web/azure-pipelines.yml +++ b/web/azure-pipelines.yml @@ -5,7 +5,7 @@ variables: ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}: branchName: ${{ replace(variables['Build.SourceBranchName'], 'refs/heads/', '') }} ${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}: - branchName: ${{ replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', '') }} + branchName: $(System.PullRequest.SourceBranch) stages: - stage: lint