pwsh for release (#4638)
Co-authored-by: Aleksandr Levochkin <107044793+aleksandrlevochkin@users.noreply.github.com>
This commit is contained in:
Родитель
62d473c784
Коммит
4dff9a5a90
|
@ -0,0 +1,8 @@
|
|||
git config user.email "azure-pipelines-bot@microsoft.com"
|
||||
git config user.name "azure-pipelines-bot"
|
||||
|
||||
git checkout -f origin/$env:TARGET_BRANCH
|
||||
|
||||
if ($LASTEXITCODE -ne 0){
|
||||
Write-Error "git checkout failed with exit code $LASTEXITCODE" -ErrorAction Stop
|
||||
}
|
|
@ -172,10 +172,10 @@ extends:
|
|||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- task: Bash@3
|
||||
- task: PowerShell@2
|
||||
displayName: Switch to release branch
|
||||
inputs:
|
||||
filePath: .azure-pipelines/scripts/switch-branch.sh
|
||||
filePath: .azure-pipelines/scripts/switch-branch.ps1
|
||||
env:
|
||||
TARGET_BRANCH: $(ReleaseBranch)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче