Lava: Clear the bash cache manually
[lttng-ci.git] / jobs / lttng-baremetal-tests.yaml
CommitLineData
a2a6063c 1- defaults:
95326029
FD
2 name: baremetal_tests
3 description: |
4 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
a2a6063c
FD
5 logrotate:
6 numToKeep: 5
7
95326029
FD
8 triggers:
9 - pollscm:
10 cron: "@hourly"
11
12 project-type: freestyle
13 node: 'master'
14 properties:
15 - throttle:
16 max-total: 2
17 option: 'category'
18 categories:
19 - 'kvm-tests'
a2a6063c
FD
20 project-type: freestyle
21 node: 'master'
95326029
FD
22 wrappers:
23 - workspace-cleanup
24 - timestamps
25 - ansicolor
26 - credentials-binding:
27 - text:
28 credential-id: jenkins_lava_key
29 variable: LAVA_FRDESO_TOKEN
30 - inject:
31 properties-content: |
32 TOOLS_BRANCH={lttngversion}
33 UST_BRANCH={lttngversion}
34 BUILD_DEVICE=kvm
35 publishers:
36 - email:
37 recipients: 'francis.deslauriers@efficios.com'
a2a6063c
FD
38 scm:
39 - git:
40 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
41 branches:
42 - "{lttngversion}"
43 shallow-clone: true
44 skip-tag: true
45 fastpoll: true
46 basedir: src/lttng-tools
47 - git:
48 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
49 branches:
50 - "{lttngversion}"
51 shallow-clone: true
52 skip-tag: true
53 fastpoll: true
54 basedir: src/lttng-modules
55 - git:
56 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
57 branches:
58 - "{kversion}"
59 shallow-clone: true
60 skip-tag: true
61 fastpoll: true
62 basedir: src/linux
63
95326029
FD
64 builders:
65 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
66 - trigger-builds:
67 - project: "build_kernel_PARAM"
68 property-file: 'properties.txt'
69 block: true
70 - inject:
71 properties-file: properties.txt
72 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-tests.sh
73
74- defaults:
75 name: baremetal_benchmarks
76 defaults: lttng-baremetal-tests
77 description: |
78 Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations.
79
80 logrotate:
81 numToKeep: 5
82
a2a6063c
FD
83 triggers:
84 - pollscm:
85 cron: "@hourly"
86
95326029
FD
87 project-type: freestyle
88 node: 'master'
a2a6063c
FD
89
90## Templates
91- job-template:
92 name: baremetal_tests_k{kversion}_l{lttngversion}
93 description: |
94 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
dc9700c9
FD
95 properties:
96 - throttle:
97 max-total: 2
98 option: 'category'
99 categories:
95326029 100 - 'baremetal-tests'
a2a6063c
FD
101 wrappers:
102 - workspace-cleanup
103 - timestamps
104 - ansicolor
105 - credentials-binding:
106 - text:
107 credential-id: jenkins_lava_key
108 variable: LAVA_FRDESO_TOKEN
109 - inject:
110 properties-content: |
95326029
FD
111 BUILD_DEVICE=baremetal
112 scm:
113 - git:
114 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
115 branches:
116 - "{lttngversion}"
117 shallow-clone: true
118 skip-tag: true
119 fastpoll: true
120 basedir: src/lttng-tools
121 - git:
122 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
123 branches:
124 - "{lttngversion}"
125 shallow-clone: true
126 skip-tag: true
127 fastpoll: true
128 basedir: src/lttng-modules
129 - git:
130 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
131 branches:
132 - "{kversion}"
133 shallow-clone: true
134 skip-tag: true
135 fastpoll: true
136 basedir: src/linux
a2a6063c 137
95326029
FD
138 publishers:
139 - email:
140 recipients: 'francis.deslauriers@efficios.com'
a2a6063c
FD
141 builders:
142 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
143 - trigger-builds:
144 - project: "build_kernel_PARAM"
145 property-file: 'properties.txt'
146 block: true
147 - inject:
148 properties-file: properties.txt
95326029 149 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-benchmarks.sh
a2a6063c
FD
150
151- job-template:
152 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
153 description: |
154 Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations.
155 defaults: lttng-baremetal-tests
156 logrotate:
157 numToKeep: 5
158
95326029
FD
159- job-template:
160 name: baremetal_tests_k{kversion}_l{lttngversion}_canary
161 defaults: baremetal_tests
162- job-template:
163 name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary
164 defaults: baremetal_benchmarks
165- job-template:
166 name: baremetal_tests_k{kversion}_l{lttngversion}
167 defaults: baremetal_tests
168- job-template:
169 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
170 defaults: baremetal_benchmarks
171- job-template:
172 name: baremetal_tests_kmainline_l{lttngversion}
173 defaults: baremetal_tests
174 triggers:
175 - pollscm:
176 cron: "@daily"
a2a6063c
FD
177 scm:
178 - git:
179 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
180 branches:
181 - "{lttngversion}"
182 shallow-clone: true
183 skip-tag: true
184 fastpoll: true
185 basedir: src/lttng-tools
186 - git:
187 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
188 branches:
189 - "{lttngversion}"
190 shallow-clone: true
191 skip-tag: true
192 fastpoll: true
193 basedir: src/lttng-modules
194 - git:
195 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
95326029 196 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
a2a6063c 197 branches:
95326029
FD
198 - "master"
199 fastpoll: true
200 basedir: src/linux
201
202- job-template:
203 name: baremetal_benchmarks_kmainline_l{lttngversion}
204 defaults: baremetal_benchmarks
205 triggers:
206 - pollscm:
207 cron: "@daily"
208 scm:
209 - git:
210 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
211 branches:
212 - "{lttngversion}"
a2a6063c
FD
213 shallow-clone: true
214 skip-tag: true
215 fastpoll: true
95326029
FD
216 basedir: src/lttng-tools
217 - git:
218 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
219 branches:
220 - "{lttngversion}"
221 shallow-clone: true
222 skip-tag: true
223 fastpoll: true
224 basedir: src/lttng-modules
225 - git:
226 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
227 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
228 branches:
229 - "master"
230 fastpoll: true
a2a6063c
FD
231 basedir: src/linux
232 wrappers:
233 - workspace-cleanup
234 - timestamps
235 - ansicolor
236 - credentials-binding:
237 - text:
238 credential-id: jenkins_lava_key
239 variable: LAVA_FRDESO_TOKEN
dc9700c9
FD
240 - inject:
241 properties-content: |
242 BUILD_DEVICE=baremetal
a2a6063c
FD
243 builders:
244 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
245 - trigger-builds:
246 - project: "build_kernel_PARAM"
247 property-file: 'properties.txt'
248 block: true
249 - inject:
250 properties-file: properties.txt
251 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-benchmarks.sh
252
253- job:
254 name: build_kernel_PARAM
255 description: |
256 Builds a Linux Kernel and LTTng Modules if necessary
257 defaults: global
258 concurrent: true
259
260 logrotate:
261 numToKeep: 2
262 node: 'x86-64'
263
264 wrappers:
265 - workspace-cleanup
266 - timestamps
267 - ansicolor
268 - credentials-binding:
269 - file:
270 credential-id: lava_jenkins_storage_frdeso
271 variable: identity_file
272 builders:
273 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh
274 - inject:
275 properties-file: properties.txt
276 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh
277 - conditional-step:
278 condition-kind: not
279 condition-operand:
280 condition-kind: file-exists
281 condition-filename: kernel-built.txt
282 condition-basedir: workspace
283 steps:
284 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh
285 - conditional-step:
286 condition-kind: not
287 condition-operand:
288 condition-kind: file-exists
289 condition-filename: modules-built.txt
290 condition-basedir: workspace
291 steps:
292 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh
293
294 parameters:
295 - string:
296 name: 'LTTNG_MODULES_COMMIT_ID'
297 description: 'The lttng-modules commmit to build.'
298 - string:
299 name: 'KERNEL_COMMIT_ID'
300 description: 'The kernel commit to build.'
301 - string:
302 name: 'KGITREPO'
303 description: 'The kernel git repo to fetch from'
304 - string:
305 name: 'STORAGE_KERNEL_FOLDER'
306 description: 'Path to store the Kernel image'
307 - string:
308 name: 'STORAGE_KERNEL_IMAGE'
309 description: 'Path to store the Kernel IMAGE'
310 - string:
311 name: 'STORAGE_LINUX_MODULES'
312 description: 'Path to store the Kernel Modules'
313 - string:
314 name: 'STORAGE_LTTNG_MODULES'
315 description: 'Path to store the LTTng Modules'
dc9700c9
FD
316 - string:
317 name: 'BUILD_DEVICE'
318 description: 'The target device. (kvm or baremetal)'
a2a6063c
FD
319
320## Project
321- project:
322 name: lttng-kernel-tests
323 kversion:
324 - linux-4.4.y
325 - linux-4.8.y
326 - v4.8.1
327 lttngversion:
328 - master
329 - stable-2.8
330 - stable-2.9
331 jobs:
332 - 'baremetal_tests_k{kversion}_l{lttngversion}'
333 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
334
335- project:
336 name: lttng-kernel-tests-oldkernel
337 kversion:
338 - linux-3.18.y
339 - linux-4.4.y
340 lttngversion:
341 - stable-2.7
342 jobs:
343 - 'baremetal_tests_k{kversion}_l{lttngversion}':
344 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}':
95326029
FD
345
346- project:
347 name: lttng-kernel-tests-canary
348 kversion:
349 - v4.4.9
350 lttngversion:
351 - v2.8.1
352 jobs:
353 - 'baremetal_tests_k{kversion}_l{lttngversion}_canary'
354 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary'
355
356- project:
357 name: lttng-kernel-tests-mainline
358 lttngversion:
359 - v2.8.1
360 jobs:
361 - 'baremetal_tests_kmainline_l{lttngversion}'
362 - 'baremetal_benchmarks_kmainline_l{lttngversion}'
This page took 0.035557 seconds and 4 git commands to generate.