blob: 23caa90dbbccb3061a39ec8f823e0dc14411f868 (
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
|
- job:
name: tcwg-check-ci-jobs-vs-yaml
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
everyone-flat:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 30
parameters:
- string:
name: job_subset
default: "tcwg"
description: 'Check only the jobs that are containing this pattern'
disabled: false
node: tcwg-coordinator
display-name: 'TCWG Check CI Jobs synchro versus configs.git'
concurrent: false
triggers:
- timed: '@daily'
wrappers:
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
- workspace-cleanup
builders:
- shell: |
#!/bin/bash
set -euf -o pipefail
rm -rf artifacts
mkdir -p artifacts
rm -rf configs jenkins-scripts
git clone --depth 1 --single-branch \
https://git.linaro.org/ci/job/configs.git
git clone --depth 1 --single-branch \
https://git.linaro.org/toolchain/jenkins-scripts.git
# We have jenkins-job only in ubuntu:focal image.
./jenkins-scripts/docker-run.sh --distro focal -- \
./configs/tcwg-check-ci-jobs-vs-yaml/tcwg-check-ci-jobs-vs-yaml.sh \
--job_subset "$job_subset" \
--config_dir "." \
--result_dir "./artifacts" |& tee artifacts/check_ci_sync_summary.txt
publishers:
- email-ext:
recipients: 'maxim.kuvyrkov@linaro.org, laurent.alfonsi@linaro.org'
content-type: text
body: |
${FILE,path="artifacts/check_ci_sync_summary.txt"}
failure: true
aborted: true
- archive:
artifacts: 'artifacts/**'
latest-only: false
|