summaryrefslogtreecommitdiff
path: root/tcwg-report-stale-rr-jobs.sh
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-03-15 14:45:34 +0100
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-03-15 14:45:57 +0100
commit6861582a31009e20bf6c94317bbdbd298ce14383 (patch)
tree103dac93003b7b5efcf8fd3eb7cf264a36982c16 /tcwg-report-stale-rr-jobs.sh
parent3b0978f33c5675b9d881892b69de1cd17d92d60a (diff)
stale-jobs : Looking for not updated results and automatic anaysis are 2 separate calls
Change-Id: Id23faf127ccd88084c8dddc34b3f10ddc1e9f88a
Diffstat (limited to 'tcwg-report-stale-rr-jobs.sh')
-rwxr-xr-xtcwg-report-stale-rr-jobs.sh24
1 files changed, 11 insertions, 13 deletions
diff --git a/tcwg-report-stale-rr-jobs.sh b/tcwg-report-stale-rr-jobs.sh
index 86c6dd60..036fa711 100755
--- a/tcwg-report-stale-rr-jobs.sh
+++ b/tcwg-report-stale-rr-jobs.sh
@@ -14,6 +14,7 @@ refs_prefix="${refs_prefix-refs/heads/linaro-local/ci/}"
refs_url_prefix="${refs_url_prefix-https://git.linaro.org/toolchain/ci}"
repos=("${repos[@]-default}")
verbose="${verbose-false}"
+classify="${classify-false}"
if $verbose; then
set -x
@@ -139,23 +140,20 @@ classify_failures ()
# Output failure diagnostic
echo "$project_diag : $project"
- echo "$project_diag : $project" >> stale-job-analyse.txt
done < stale-jobs.log
}
-if [ "$use_last_build" = "no" ]; then
-
- for repo in "${repos[@]}"; do
- process_git_url "$refs_url_prefix/$repo" &
- done | sort
-
- wait
-
-else
-
- wget -o /dev/null $jenkins_base_url/job/tcwg-report-stale-rr-jobs/lastBuild/artifact/artifacts/stale-jobs.log
+# If classify is specified, classify the failures logged in file --classify stale-jobs.log
+if [ $classify != false ]; then
+ classify_failures $classify
+ exit 0;
fi
-classify_failures
+# Otherwise process the git to find not updated results
+for repo in "${repos[@]}"; do
+ process_git_url "$refs_url_prefix/$repo" &
+done | sort
+
+wait