We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a8c45 commit 5f8a897Copy full SHA for 5f8a897
eng/pipelines/templates/steps/vmr-prepare.yml
@@ -10,14 +10,9 @@ steps:
10
displayName: Clone dotnet/dotnet
11
path: vmr
12
clean: true
13
- fetchTags: true
14
- fetchDepth: 0
15
16
- - powershell: |
17
- $branchName = "${{ parameters.vmrBranch }}" -replace "refs/heads/", ""
18
- if (-not (git checkout --track origin/$branchName)) {
19
- throw "Failed to checkout branch $branchName"
20
- }
21
- echo "##vso[task.setvariable variable=vmrBranch]$branchName"
+ - script: |
+ git checkout --track origin/${{ parameters.vmrBranch }}
+ echo "##vso[task.setvariable variable=vmrBranch]${{ parameters.vmrBranch }}"
22
displayName: Check out ${{ parameters.vmrBranch }}
23
workingDirectory: $(Agent.BuildDirectory)/vmr
0 commit comments