diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9873326ec..fd98dc40f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -388,7 +388,7 @@ stages: $logText = Invoke-WebRequest $logUrl if ($logText -like '*Creating a release for tag:*') { - $logInspect = ($logText -split "Creating a release for tag:")[2] + $logInspect = ($logText -split "Creating a release for tag:")[-1] $successCount = (Select-String "Uploaded file successfully:" -InputObject $logInspect -AllMatches).Matches.Count $failureCount = (Select-String "Duplicate asset found:" -InputObject $logInspect -AllMatches).Matches.Count Write-Output "Success count is: $successCount and failure count is: $failureCount"