blob: 0901e872aa66d4dfce476b2d2793a4b91ea8a96e (
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
96
97
98
99
100
101
102
103
|
- job:
name: tcwg-llvm-testsuite-diana
project-type: matrix
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 10
num-to-keep: 10
parameters:
- string:
name: toolchain
default: ''
description: 'URL of the toolchain to use. This needs to be a tarball with a /bin directory inside with either GCC or LLVM from make install'
- string:
name: nt_flags
default: ''
description: 'Flags to pass to the LNT nt producer (e.g. --threads=8 --cflag -O0)'
- string:
name: build_container_tag
default: 'xenial'
description: 'Type of image to use in the container: trusty, xenial.'
- string:
name: target_list
default: 'tcwg-tk1_32-build tcwg-apm_64-build'
description: 'List of targets -- tcwg-x86_64-cam tcwg-tk1_32-build tcwg-apm_64-build -- should be a subset of slave axis'
- string:
name: scripts_branch
default: 'refs/remotes/origin/llvmprod'
description: 'Branch to pull jenkins-script from'
disabled: false
node: tcwg-coordinator
retry-count: 3
concurrent: true
display-name: 'TCWG LLVM Test-Suite Experiments'
scm:
- git:
url: http://git.linaro.org/toolchain/jenkins-scripts.git
refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
name: origin
branches:
- ${scripts_branch}
skip-tag: true
shallow-clone: true
wipe-workspace: true
axes:
- axis:
type: slave
name: label
values:
- tcwg-x86_64-cam
- tcwg-tk1_32-build
- tcwg-apm_64-build
- axis:
type: dynamic
name: target
values:
- target_list
execution-strategy:
combination-filter: |
label==target
sequential: false
wrappers:
- timeout:
timeout: 300
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
set -exu
. jenkins-helpers.sh
if [ "${toolchain:+set}" != "set" ]; then
echo "Test-suite needs a toolchain to test"
exit 1
fi
# Start build container
${WORKSPACE}/start-container-docker.sh --label ${label} --node ${NODE_NAME} --distro ${build_container_tag} --prefix build_ > build-container.sh
# Define build_CONTAINER_RSH and build_container_cleanup
. ./build-container.sh
trap "build_container_cleanup" EXIT
# Setup job parameters and run
build_container_exec ${WORKSPACE}/tcwg-llvm-testsuite.sh \
--workspace=${WORKSPACE} \
--toolchain=${toolchain} \
${nt_flags:+--nt-flags="$nt_flags"}
|