blob: 7fcb4c88a0f1a843f07b676ec34d807bfecfcb05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Auto generated by ./tcwg/generate-yamlfiles.sh from tcwg-report-stale-rr-jobs.yaml.in and tcwg-report-stale-rr-jobs/tcwg-report-stale-rr-jobs.def. Do not edit.
#BEGIN: tcwg/default.yaml.inc
# -*- mode: Yaml -*-
- property:
name: default-properties
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 30
- scm:
name: jenkins-scripts-master
scm:
- git:
url: https://git.linaro.org/toolchain/jenkins-scripts.git
refspec: +refs/heads/master:refs/remotes/origin/master
branches:
- master
basedir: jenkins-scripts
skip-tag: true
reference-repo: /home/tcwg-buildslave/snapshots-ref/jenkins-scripts.git
wipe-workspace: false
clean:
before: true
prune: true
#END: tcwg/default.yaml.inc
- job:
name: tcwg-report-stale-rr-jobs
project-type: freestyle
defaults: global
properties:
- default-properties
parameters:
- string:
name: days
default: 8
description: 'List jobs with no successful run in DAYS'
disabled: false
node: tcwg-coordinator
concurrent: false
display-name: 'TCWG CCC Report Stale RR Jobs'
scm:
- jenkins-scripts-master
triggers:
- timed: '@daily'
wrappers:
- timeout:
timeout: 300
- timestamps
builders:
- shell: |
#!/bin/bash
set -euf -o pipefail
set -x
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
exit 1
fi
publishers:
- archive:
artifacts: 'artifacts/**'
latest-only: false
- email-ext:
recipients: maxim.kuvyrkov@linaro.org
content-type: text
body: |
Jobs with no new results in $days days:
${FILE,path="artifacts/stale-jobs.log"}
failure: true
aborted: true
# checksum: 8c370784a7a676d081e160064c2770f5
|