Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfarley committed Jul 29, 2024
1 parent 418dbff commit 94678ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tooling/build_autotriage/build_autotriage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,23 @@ wasPipelineStartedByUser() {
failedJob="https://ci.adoptium.net/job/build-scripts/job/jobs/job/${jenkinsJDK}/job/${sampleBuildName}/${sampleBuildNum}/consoleText"

wget -q -O - "${failedJob}" > ./jobOutput.txt

echo "DEBUG1: Ready to scan"
# Limit the scan to the first 20 lines. If the line we're looking for exists, it'll be at the very top. Time saving.
counter=0

while IFS= read -r jobOutputLine; do
counter=$((counter+1))
if [[ "$jobOutputLine" =~ Started.by.user ]]; then
echo "DEBUG2: Found started line"
return 1
fi
if [[ ${counter} -gt 20 ]]; then
return 0
fi
done < ./jobOutput.txt

echo "DEBUG3: timer pipeline founden"

return 0
}

Expand Down

0 comments on commit 94678ec

Please sign in to comment.