aboutsummaryrefslogtreecommitdiff
path: root/tcwg-report-stale-rr-jobs.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-report-stale-rr-jobs.yaml')
-rw-r--r--tcwg-report-stale-rr-jobs.yaml31
1 files changed, 22 insertions, 9 deletions
diff --git a/tcwg-report-stale-rr-jobs.yaml b/tcwg-report-stale-rr-jobs.yaml
index 7fcb4c88a0..a19070dd07 100644
--- a/tcwg-report-stale-rr-jobs.yaml
+++ b/tcwg-report-stale-rr-jobs.yaml
@@ -9,12 +9,11 @@
anonymous:
- job-read
- job-extended-read
- linaro:
+ everyone-flat:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
- num-to-keep: 30
- scm:
name: jenkins-scripts-master
@@ -57,6 +56,10 @@
- timeout:
timeout: 300
- timestamps
+ - ssh-agent-credentials:
+ # tcwg-buildslave user id
+ users:
+ - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
builders:
- shell: |
#!/bin/bash
@@ -65,9 +68,20 @@
rm -rf artifacts
mkdir artifacts
- ./jenkins-scripts/tcwg-report-stale-rr-jobs.sh --days "$days" 2>&1 \
- | tee artifacts/stale-jobs.log
- if [ x"$(cat artifacts/stale-jobs.log | wc -l)" != x"0" ]; then
+ bash -x ./jenkins-scripts/tcwg-report-stale-rr-jobs.sh --days "$days" \
+ --output artifacts/stale-jobs.log
+ bash -x ./jenkins-scripts/tcwg-report-stale-rr-jobs.sh \
+ --classify artifacts/stale-jobs.log \
+ --output artifacts/stale-jobs-analysis.log || true
+ n_lines=$(cat artifacts/stale-jobs.log | wc -l)
+ ./jenkins-scripts/tcwg-report-ci-status.sh > artifacts/ci-status.log
+ if [ x"$n_lines" != x"0" ]; then
+ (
+ echo "Jobs with no new results in $days days ($n_lines entries):"
+ cat artifacts/ci-status.log
+ cat artifacts/stale-jobs-analysis.log
+ cat artifacts/stale-jobs.log
+ ) > artifacts/email-body.txt
exit 1
fi
publishers:
@@ -75,11 +89,10 @@
artifacts: 'artifacts/**'
latest-only: false
- email-ext:
- recipients: maxim.kuvyrkov@linaro.org
+ recipients: 'maxim.kuvyrkov@linaro.org, laurent.alfonsi@linaro.org'
content-type: text
body: |
- Jobs with no new results in $days days:
- ${FILE,path="artifacts/stale-jobs.log"}
+ ${FILE,path="artifacts/email-body.txt"}
failure: true
aborted: true
-# checksum: 8c370784a7a676d081e160064c2770f5
+# checksum: a020d23dcdda834e74fb3a69446e7e1e