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