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