Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfarley committed Nov 22, 2023
1 parent 0f9a557 commit 16e7ba9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tooling/build_autotriage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ identifyFailedBuildsInTimerPipelines() {
IFS=$oldIFS

# Now iterate over platforms to make sure we're launching every platform we should.
triageThesePlatforms=""
triageThesePlatforms=","
for p in "${!temurinPlatforms[@]}"
do
if [[ $shorterListOfBuilds =~ .*\"buildName\"\:\"jdk${arrayOfAllJDKVersions[v]}${arrayOfUs[v]}\-${temurinPlatforms[p]}\-temurin\".* ]]; then
Expand All @@ -182,9 +182,14 @@ identifyFailedBuildsInTimerPipelines() {
fi
fi
# If we get to this stage of the loop, then this is a platform that was both *meant* to be built, and *was* built (or attempted).
triageThesePlatforms+=",jdk${arrayOfAllJDKVersions[v]}${arrayOfUs[v]}-${temurinPlatforms[p]}-temurin,"
triageThesePlatforms+="jdk${arrayOfAllJDKVersions[v]}${arrayOfUs[v]}-${temurinPlatforms[p]}-temurin,"
done


if [[ ${#triageThesePlatforms[@]} -gt 1 ]]; then
errorLog "Cannot find any valid build platforms launched by jdk ${arrayOfAllJDKVersions[v]}${arrayOfUs[v]} pipeline ${latestTimerJenkinsJobID}. Skipping to the next jdk version."
continue
fi
echo "Platforms validated. Identifying build numbers for these platforms: ${triageThesePlatforms:1:-1}"

for b in "${!listOfBuildNames[@]}"
Expand Down Expand Up @@ -217,10 +222,10 @@ argumentParser "$@"

identifyFailedBuildsInTimerPipelines

if [ ${#arrayOfFailedJobs[@]} -gt 0 ]; then
if [[ ${#arrayOfFailedJobs[@]} -gt 0 ]]; then
for failedJob in ${arrayOfFailedJobs[@]}
do
buildFailureTriager failedJob
buildFailureTriager $failedJob
done
elif [[ ${#buildIssues[@]} -gt 0 ]]; then
echo "############ List of issues found ############"
Expand Down

0 comments on commit 16e7ba9

Please sign in to comment.