From 0979b0c86d031e5fb4e6baa47db67563cbaf3a0b Mon Sep 17 00:00:00 2001 From: junglebus <22320807+junglebus@users.noreply.github.com> Date: Sat, 14 Mar 2020 17:20:38 +1100 Subject: [PATCH] Pipeline: Get text after list of commits #3 --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"