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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
- job:
name: tcwg-buildfarm
project-type: matrix
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 100
parameters:
- string:
name: override
default: ''
description: 'Versions of components to build; e.g. binutils=binutils-gdb.git/linaro_binutils-2_25-branch gcc=gcc.git~linaro/gcc-5-branch glibc=glibc.git~release/2.21/master'
- string:
name: host_x86_64_languages
default: 'default'
description: 'Languages to build for x86_64-hosted toolchains, e.g., "c,c++" or "all" or "default"'
- string:
name: host_aarchXX_languages
default: 'c,c++'
description: 'Languages to build for AArchXX-hosted toolchains, e.g., "c,c++" or "all" or "default"'
- string:
name: runtests
default: 'aarch64-linux-gnu armv8l-linux-gnueabihf arm-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf arm-eabi aarch64-none-elf aarch64_be-none-elf tcwg-x86_64-build'
description: 'Run toolchain tests for these targets -- must be a subset of target_list'
- string:
name: send_results_to
default: ''
description: 'Email address to send test results to'
- bool:
name: try_bootstrap
default: 'true'
description: 'Attempt to bootstrap GCC for compatible host and target combinations'
- string:
name: host_x86_64_excludecheck
default: 'gdb'
description: 'Do not run "make check" on these components on x86_64'
- string:
name: host_aarchXX_excludecheck
default: 'gcc'
description: 'Do not run "make check" on these components on AArchXX'
- string:
name: extraconfig
default: ''
description: 'Extra configuration files, syntax tool=path'
- bool:
name: rebuild
default: true
description: 'Rebuild the toolchain even if results are already on logserver'
- string:
name: log_name
default: '${JOB_NAME}-${BUILD_NUMBER}/@@host@@.$target'
description: 'Logname directory on logserver'
- bool:
name: dont_fail
default: false
description: 'Do not fail the build'
- string:
name: log_server
default: dev-01.tcwglab:/home/tcwg-buildslave/logs
description: 'Log_Server'
- string:
name: target_list
default: 'aarch64-linux-gnu aarch64-linux-gnu_ilp32 armv8l-linux-gnueabihf arm-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf arm-eabi aarch64-none-elf aarch64_be-none-elf tcwg-x86_64-build'
description: 'List of targets -- aarch64-linux-gnu aarch64-linux-gnu_ilp32 armv8l-linux-gnueabihf arm-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf arm-eabi aarch64-none-elf aarch64_be-none-elf tcwg-x86_64-build tcwg-x86_32-build tcwg-tk1_32-build tcwg-apm_64-build tcwg-apm_32-build tcwg-sq_32-build tcwg-sq_64-build -- the tcwg-* targets should be a subset of slave axis'
- string:
name: abe_branch
default: tested
description: 'ABE revision to test'
- string:
name: scripts_branch
default: tested
description: 'Scripts branch to use'
- string:
name: build_container_tag
default: 'lts_1'
description: 'Distro to use on the builder with non-default container type: bionic, focal.'
- string:
name: test_container_tag
default: 'lts_1'
description: 'Distro to use in the test container: bionic, focal.'
- string:
name: displaytag
default: 'manual'
description: 'Tag to display in the Jenkins console, so that the build name is more helpful'
- bool:
name: binaries
default: false
description: 'Create binary tarballs'
- bool:
name: dryrun
default: false
description: 'Dry-run, do nothing, just print steps'
disabled: false
node: tcwg-coordinator
concurrent: true
display-name: 'TCWG AAA BuildFarm'
child-workspace: ../tcwg-buildfarm__$EXECUTOR_NUMBER
scm:
- git:
url: https://git.linaro.org/toolchain/abe.git
refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
branches:
- $abe_branch
skip-tag: true
shallow-clone: true
wipe-workspace: true
- git:
url: https://git.linaro.org/toolchain/jenkins-scripts.git
refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
branches:
- $scripts_branch
basedir: jenkins-scripts
skip-tag: true
shallow-clone: true
wipe-workspace: true
axes:
- axis:
type: slave
name: label
values:
- tcwg-x86_64-build
- tcwg-tk1_32-build
- tcwg-apm_64-build
- tcwg-apm_32-build
- tcwg-sq_32-build
- tcwg-sq_64-build
- axis:
type: dynamic
name: target
values:
- target_list
execution-strategy:
combination-filter: |
(label=="tcwg-x86_64-build" && ! (target==~/tcwg-.*/)) || (target==label)
sequential: false
wrappers:
- timeout:
timeout: 800
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
- credentials-binding:
- text:
credential-id: TCWG_SES_USER
variable: TCWG_SES_USER
- credentials-binding:
- text:
credential-id: TCWG_SES_PASSWORD
variable: TCWG_SES_PASSWORD
- build-name:
name: '#${BUILD_NUMBER}-${displaytag}'
builders:
- shell: |
#!/bin/bash
set -ex
./jenkins-scripts/docker-run.sh \
--label $label \
--node $NODE_NAME \
--distro $build_container_tag \
$(case "$target" in qemu-*) echo "--qemu $target" ;; esac) \
--dryrun "$dryrun" \
-- ./jenkins-scripts/tcwg-buildfarm.sh \
--label "$label" \
--target "$target" \
--BUILD_NUMBER "$BUILD_NUMBER" \
--JOB_NAME "$JOB_NAME" \
--NODE_NAME "$NODE_NAME" \
--TCWG_SES_USER "$TCWG_SES_USER" \
--TCWG_SES_PASSWORD "$TCWG_SES_PASSWORD" \
--WORKSPACE "$WORKSPACE" \
--override "$override" \
--host_x86_64_languages "$host_x86_64_languages" \
--host_aarchXX_languages "$host_aarchXX_languages" \
--runtests "$runtests" \
--send_results_to "$send_results_to" \
--try_bootstrap "$try_bootstrap" \
--host_x86_64_excludecheck "$host_x86_64_excludecheck" \
--host_aarchXX_excludecheck "$host_aarchXX_excludecheck" \
--extraconfig "$extraconfig" \
--rebuild "$rebuild" \
--log_name "$log_name" \
--dont_fail "$dont_fail" \
--log_server "$log_server" \
--abe_branch "$abe_branch" \
--test_container_tag "$test_container_tag" \
--binaries "$binaries" \
--dryrun "$dryrun"
# There seems to be a bug in glibc tests, leading a huge
# cert.out file in crypt/. Remove it to avoid disk full
# issues.
./jenkins-scripts/docker-run.sh \
--label $label \
--node $NODE_NAME \
--distro $build_container_tag \
$(case "$target" in qemu-*) echo "--qemu $target" ;; esac) \
--dryrun "$dryrun" \
-- find $WORKSPACE/_build/builds -name cert.out -ls -delete
publishers:
- archive:
artifacts: 'artifacts/*'
latest-only: false
- workspace-cleanup:
clean-if:
- success: true
- unstable: false
- failure: false
- aborted: false
- not-built: false
|