blob: 3425f5773a712918a276520eac5bf7228cec286c (
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
86
87
88
89
90
91
92
93
94
95
|
- job:
name: tcwg-trigger-binutils
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 30
parameters:
- string:
name: ref_build
default: 'previous'
description: 'Reference build for comparison, e.g., "lastSuccess" or "previous" or job number or empty string to skip comparison'
disabled: false
node: tcwg-coordinator
retry-count: 3
concurrent: false
display-name: 'TCWG Trigger Binutils'
scm:
- git:
url: https://git-us.linaro.org/toolchain/binutils-gdb.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
branches:
- refs/heads/master
skip-tag: true
shallow-clone: true
wipe-workspace: false
triggers:
- pollscm: 'H/5 * * * *'
wrappers:
- timeout:
timeout: 600
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
builders:
- shell: |
#!/bin/bash
set -ex
shopt -s extglob
cat << EOF > binutils_parameters
log_name=${JOB_NAME}-${BUILD_NUMBER}/\$builder_type.\$target.\$bfd
dont_fail=true
target_list=aarch64-linux-gnu aarch64_be-linux-gnu aarch64-none-elf aarch64_be-none-elf arm-linux-gnueabi arm-linux-gnueabihf armv8l-linux-gnueabihf arm-netbsdelf arm-none-eabi arm-none-nacl arm-none-symbianelf arm-pe arm-vxworks arm-wince-pe armeb-linux-gnueabihf arm-uclinuxfdpiceabi tcwg-x86_64-cam tcwg-x86_32-build tcwg-apm_64-build tcwg-apm_32-build
EOF
if [ x"$ref_build" != x ] ; then
case "$ref_build" in
lastSuccess) ref_build_num=$(wget -q --no-check-certificate -O - "${JOB_URL}lastSuccessfulBuild/buildNumber") ;;
previous) ref_build_num=$(wget -q --no-check-certificate -O - "${JOB_URL}lastCompletedBuild/buildNumber") ;;
[1-9]*([0-9])) ref_build_num="$ref_build" ;;
*) echo "ERROR: Cannot handle ref_build: $ref_build"; exit 1 ;;
esac
# Scrambled indentation because of here-doc
cat << EOF > compare_results_parameters
ref_logs=${JOB_NAME}-${ref_build_num}
new_logs=${JOB_NAME}-${BUILD_NUMBER}
pass_thresh=0.66
show_results=false
EOF
else
rm -f compare_results_parameters
fi
- trigger-builds:
- project: tcwg-binutils
property-file: binutils_parameters
block: true
- conditional-step:
condition-kind: file-exists
condition-filename: compare_results_parameters
steps:
- trigger-builds:
- project: tcwg-compare-results
property-file: compare_results_parameters
block: true
publishers:
- workspace-cleanup:
include:
- "*_parameters"
- email:
recipients: 'christophe.lyon@linaro.org'
|