diff --git a/tooling/build_autotriage.sh b/tooling/build_autotriage.sh index b50938c84e..febb0b449e 100644 --- a/tooling/build_autotriage.sh +++ b/tooling/build_autotriage.sh @@ -118,13 +118,14 @@ identifyFailedBuildsInTimerPipelines() { for jsonEntry in $listOfPipelineBuilds do echo "perLine: $jsonEntry" - if [[ jsonEntry =~ ^\"buildName\"\:\"[0-9a-zA-Z\-]+\"$ ]]; then + if [[ jsonEntry =~ .*\"buildName\"\:\"[0-9a-zA-Z\-]+\".* ]]; then listOfBuildNames+=("${jsonEntry:13:-1}") shorterListOfBuilds+="${jsonEntry}," - elif [[ jsonEntry =~ ^\"buildNum\"\:[0-9]+$ ]]; then + elif [[ jsonEntry =~ .*\"buildNum\"\:[0-9]+.* ]]; then listOfBuildNums+=("${jsonEntry:11}") - elif [[ jsonEntry =~ ^\"buildResult\"\:\"[A-Z]+\"$ ]]; then + elif [[ jsonEntry =~ .*\"buildResult\"\:\"[A-Z]+\".* ]]; then listOfBuildResults+=("${jsonEntry:15:-1}") + continue fi done