File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ if ($null -eq $newVersionParsed)
136136 - packageType $packageProperties.SDKType `
137137 - packageNewLibrary $packageProperties.IsNewSDK
138138
139+ if ($LASTEXITCODE -ne 0 ) {
140+ Write-Error " Updating of the Devops Release WorkItem failed."
141+ exit 1
142+ }
143+
139144if ($releaseTrackingOnly )
140145{
141146 Write-Host
Original file line number Diff line number Diff line change @@ -19,11 +19,17 @@ param(
1919Set-StrictMode - Version 3
2020
2121if (! (Get-Command az - ErrorAction SilentlyContinue)) {
22- Write-Host ' You must have the Azure CLI installed: https://aka.ms/azure-cli'
22+ Write-Error ' You must have the Azure CLI installed: https://aka.ms/azure-cli'
2323 exit 1
2424}
2525
26- az extension show - n azure- devops > $null
26+ az account show * > $null
27+ if (! $? ) {
28+ Write-Host ' Running az login...'
29+ az login * > $null
30+ }
31+
32+ az extension show - n azure- devops * > $null
2733if (! $? ){
2834 Write-Host ' Installing azure-devops extension'
2935 az extension add -- name azure- devops
You can’t perform that action at this time.
0 commit comments