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 62d473c commit 4dff9a5Copy full SHA for 4dff9a5
.azure-pipelines/scripts/switch-branch.ps1
@@ -0,0 +1,8 @@
1
+git config user.email "[email protected]"
2
+git config user.name "azure-pipelines-bot"
3
+
4
+git checkout -f origin/$env:TARGET_BRANCH
5
6
+if ($LASTEXITCODE -ne 0){
7
+ Write-Error "git checkout failed with exit code $LASTEXITCODE" -ErrorAction Stop
8
+}
.vsts.release.yml
@@ -172,10 +172,10 @@ extends:
172
- checkout: self
173
clean: true
174
175
- - task: Bash@3
+ - task: PowerShell@2
176
displayName: Switch to release branch
177
inputs:
178
- filePath: .azure-pipelines/scripts/switch-branch.sh
+ filePath: .azure-pipelines/scripts/switch-branch.ps1
179
env:
180
TARGET_BRANCH: $(ReleaseBranch)
181
0 commit comments