Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfarley committed Nov 21, 2023
1 parent fbef7d2 commit 28ce093
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tooling/build_autotriage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 28ce093

Please sign in to comment.