Commit | Line | Data |
---|---|---|
598af463 | 1 | --- |
3da11679 MJ |
2 | ## Defaults |
3 | - defaults: | |
4 | name: lttng-modules | |
5 | description: | | |
6 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
7 | 2.0 tracer toolset. | |
8 | ||
9 | <p>Job is managed by Jenkins Job Builder.</p> | |
10 | ||
11 | project-type: freestyle | |
12 | ||
13 | wrappers: | |
14 | - workspace-cleanup | |
15 | - timestamps | |
16 | - ansicolor | |
17 | ||
18 | scm: | |
19 | - git: | |
20 | url: https://github.com/{github_user}/{github_name}.git | |
21 | browser: githubweb | |
22 | browser-url: https://github.com/{github_user}/{github_name} | |
23 | branches: | |
24 | - "refs/heads/{mversion}" | |
25 | shallow-clone: true | |
26 | fastpoll: true | |
27 | basedir: src/lttng-modules | |
28 | wipe-workspace: false | |
29 | skip-tag: true | |
30 | ||
31 | triggers: | |
32 | - pollscm: | |
33 | cron: "@hourly" | |
34 | ||
35 | properties: | |
36 | - build-discarder: | |
37 | num-to-keep: 10 | |
38 | artifact-num-to-keep: 2 | |
39 | - github: | |
40 | url: https://github.com/{github_user}/{github_name} | |
41 | ||
42 | publishers: | |
43 | - workspace-cleanup | |
44 | - ircbot: <tng-modules_publisher_ircbot_defaults | |
45 | strategy: statechange-only | |
2abd3a64 MJ |
46 | message-type: summary |
47 | matrix-notifier: only-parent | |
3da11679 MJ |
48 | - email-ext: |
49 | recipients: '{obj:email_to}' | |
50 | reply-to: ci-notification@lists.lttng.org | |
51 | always: false | |
52 | unstable: false | |
53 | first-failure: true | |
54 | first-unstable: true | |
55 | not-built: false | |
56 | aborted: false | |
57 | regression: false | |
58 | failure: false | |
59 | second-failure: false | |
60 | improvement: false | |
61 | still-failing: false | |
62 | success: false | |
63 | fixed: false | |
64 | fixed-unhealthy: true | |
65 | still-unstable: false | |
66 | pre-build: false | |
67 | matrix-trigger: only-parent | |
68 | send-to: | |
69 | - recipients | |
70 | ||
71 | ||
3a01c580 | 72 | ## Anchors |
3da11679 | 73 | - _lttng-modules_build_parameters_defaults: <tng-modules_build_parameters_defaults |
3a01c580 MJ |
74 | name: 'lttng-modules_build_parameters_defaults' |
75 | parameters: | |
3a01c580 MJ |
76 | - string: |
77 | name: 'maxConcurrentBuild' | |
78 | default: '20' | |
79 | description: 'The maximum number of concurrent child build to run.' | |
80 | - string: | |
81 | name: 'kverfloor' | |
82 | default: '{kverfloor}' | |
83 | description: 'The lowest kernel version to build.' | |
84 | - string: | |
85 | name: 'kverceil' | |
86 | default: '{kverceil}' | |
87 | description: 'The highest kernel version to build. (excluded)' | |
88 | - string: | |
89 | name: 'kverfilter' | |
90 | default: '{kverfilter}' | |
91 | description: 'Kernel versions list filtering strategy.' | |
28b10e79 MJ |
92 | - string: |
93 | name: 'kverrc' | |
94 | default: 'true' | |
95 | description: 'Add latest RC to kernel versions list.' | |
3a01c580 MJ |
96 | - string: |
97 | name: 'kgitrepo' | |
98 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' | |
99 | description: 'The linux kernel git repository url.' | |
100 | - string: | |
101 | name: 'kbuildjob' | |
5a196804 | 102 | default: 'lttng-modules_PARAM_{parambuildtype}' |
3a01c580 MJ |
103 | description: 'The parametrized job to use for child builds.' |
104 | ||
3da11679 MJ |
105 | - _lttng-modules_build_parameters_review: <tng-modules_build_parameters_review |
106 | name: 'lttng-modules_build_parameters_review' | |
28b10e79 MJ |
107 | parameters: |
108 | - string: | |
109 | name: 'maxConcurrentBuild' | |
110 | default: '10' | |
111 | description: 'The maximum number of concurrent child build to run.' | |
112 | - string: | |
113 | name: 'kverfloor' | |
114 | default: '{kverfloor}' | |
115 | description: 'The lowest kernel version to build.' | |
116 | - string: | |
117 | name: 'kverceil' | |
118 | default: '{kverceil}' | |
119 | description: 'The highest kernel version to build. (excluded)' | |
120 | - string: | |
121 | name: 'kverfilter' | |
122 | default: '{kverfilter}' | |
123 | description: 'Kernel versions list filtering strategy.' | |
124 | - string: | |
125 | name: 'kverrc' | |
126 | default: 'false' | |
127 | description: 'Add latest RC to kernel versions list.' | |
128 | - string: | |
129 | name: 'kgitrepo' | |
130 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' | |
131 | description: 'The linux kernel git repository url.' | |
132 | - string: | |
133 | name: 'kbuildjob' | |
134 | default: 'lttng-modules_PARAM_build' | |
135 | description: 'The parametrized job to use for child builds.' | |
136 | ||
3da11679 | 137 | - _lttng-modules_build_parameters_ubuntu: <tng-modules_build_parameters_ubuntu |
3a01c580 MJ |
138 | name: 'lttng-modules_build_parameters_ubuntu' |
139 | parameters: | |
3a01c580 MJ |
140 | - string: |
141 | name: 'maxConcurrentBuild' | |
142 | default: '20' | |
143 | description: 'The maximum number of concurrent child build to run.' | |
144 | - string: | |
145 | name: 'kverfloor' | |
146 | default: '{kverfloor}' | |
147 | description: 'The lowest kernel version to build.' | |
148 | - string: | |
149 | name: 'kverceil' | |
150 | default: '{kverceil}' | |
151 | description: 'The highest kernel version to build. (excluded)' | |
152 | - string: | |
153 | name: 'kverfilter' | |
154 | default: '{kverfilter}' | |
155 | description: 'Kernel versions list filtering strategy.' | |
28b10e79 MJ |
156 | - string: |
157 | name: 'kverrc' | |
158 | default: 'false' | |
159 | description: 'Add latest RC to kernel versions list.' | |
3a01c580 MJ |
160 | - string: |
161 | name: 'kgitrepo' | |
162 | default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' | |
163 | description: 'The linux kernel git repository url.' | |
164 | - string: | |
165 | name: 'kbuildjob' | |
5a196804 | 166 | default: 'lttng-modules_PARAM_{parambuildtype}' |
3a01c580 MJ |
167 | description: 'The parametrized job to use for child builds.' |
168 | - string: | |
169 | name: 'uversion' | |
170 | default: '{uversion}' | |
171 | description: 'The lowest kernel version to build.' | |
172 | ||
3da11679 | 173 | - _lttng-modules_build_parameters_rt: <tng-modules_build_parameters_rt |
3a01c580 MJ |
174 | name: 'lttng-modules_build_parameters_rt' |
175 | parameters: | |
3a01c580 MJ |
176 | - string: |
177 | name: 'maxConcurrentBuild' | |
178 | default: '20' | |
179 | description: 'The maximum number of concurrent child build to run.' | |
180 | - string: | |
181 | name: 'kverfloor' | |
0b65c5bd | 182 | default: '{kverfloor}' |
3a01c580 | 183 | description: 'The lowest kernel version to build.' |
af3990ed MJ |
184 | - string: |
185 | name: 'kverceil' | |
186 | default: '{kverceil}' | |
187 | description: 'The highest kernel version to build. (excluded)' | |
188 | - string: | |
189 | name: 'kverfilter' | |
190 | default: '{kverfilter}' | |
191 | description: 'Kernel versions list filtering strategy.' | |
28b10e79 MJ |
192 | - string: |
193 | name: 'kverrc' | |
194 | default: 'false' | |
195 | description: 'Add latest RC to kernel versions list.' | |
3a01c580 MJ |
196 | - string: |
197 | name: 'kgitrepo' | |
c9c7c76b | 198 | default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-stable-rt.git' |
3a01c580 MJ |
199 | description: 'The linux kernel git repository url.' |
200 | - string: | |
201 | name: 'kbuildjob' | |
5a196804 | 202 | default: 'lttng-modules_PARAM_build' |
3a01c580 MJ |
203 | description: 'The parametrized job to use for child builds.' |
204 | ||
3da11679 | 205 | - _lttng-modules_build_builders_defaults: <tng-modules_build_builders_defaults |
3a01c580 MJ |
206 | name: 'lttng-modules_build_builders_defaults' |
207 | builders: | |
208 | - system-groovy: | |
209 | command: | |
210 | !include-raw-escape: scripts/lttng-modules/master.groovy | |
211 | ||
3da11679 | 212 | - _lttng-modules_build_rt_builders_defaults: <tng-modules_build_rt_builders_defaults |
3a01c580 MJ |
213 | name: 'lttng-modules_build_rt_builders_defaults' |
214 | builders: | |
215 | - system-groovy: | |
216 | command: | |
217 | !include-raw-escape: scripts/lttng-modules/master-rt.groovy | |
218 | ||
219 | ||
598af463 | 220 | ## Templates |
9e5c099a MJ |
221 | - job-template: |
222 | name: lttng-modules_ALL_trigger-vanilla | |
223 | defaults: lttng-modules | |
224 | description: | | |
225 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
226 | 2.0 tracer toolset. | |
227 | ||
228 | This job will trigger the build jobs when a new tag is added to the vanilla | |
229 | and stable kernel trees. | |
230 | ||
231 | <p>Job is managed by Jenkins Job Builder.</p> | |
232 | ||
233 | node: 'master' | |
234 | ||
235 | wrappers: | |
236 | - timestamps | |
237 | - ansicolor | |
238 | ||
239 | scm: [] | |
240 | ||
48745db5 MJ |
241 | triggers: |
242 | - timed: "@hourly" | |
243 | ||
9e5c099a MJ |
244 | builders: |
245 | - system-groovy: | |
246 | command: | |
247 | !include-raw-escape: scripts/lttng-modules/trigger-vanilla.groovy | |
248 | ||
249 | publishers: [] | |
250 | ||
598af463 | 251 | - job-template: |
3a01c580 | 252 | name: lttng-modules_{mversion}_{buildtype}-vanilla |
598af463 | 253 | defaults: lttng-modules |
3a01c580 MJ |
254 | description: | |
255 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
256 | 2.0 tracer toolset. | |
598af463 | 257 | |
3a01c580 MJ |
258 | This job will build the {mversion} branch against stable vanilla |
259 | kernel tags. | |
598af463 | 260 | |
3a01c580 | 261 | <p>Job is managed by Jenkins Job Builder.</p> |
598af463 | 262 | |
3a01c580 MJ |
263 | node: 'master' |
264 | ||
265 | <<: *lttng-modules_build_parameters_defaults | |
266 | <<: *lttng-modules_build_builders_defaults | |
598af463 | 267 | |
e0e247de MJ |
268 | - job-template: |
269 | name: dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla | |
270 | defaults: lttng-modules | |
271 | description: | | |
272 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
273 | 2.0 tracer toolset. | |
274 | ||
275 | This job will build the {mversion} branch against stable vanilla | |
276 | kernel tags. | |
277 | ||
278 | <p>Job is managed by Jenkins Job Builder.</p> | |
279 | ||
280 | node: 'master' | |
281 | ||
282 | parameters: | |
283 | - string: | |
284 | name: 'maxConcurrentBuild' | |
285 | default: '20' | |
286 | description: 'The maximum number of concurrent child build to run.' | |
287 | - string: | |
288 | name: 'kverfloor' | |
289 | default: '{kverfloor}' | |
290 | description: 'The lowest kernel version to build.' | |
291 | - string: | |
292 | name: 'kverceil' | |
293 | default: '{kverceil}' | |
294 | description: 'The highest kernel version to build. (excluded)' | |
295 | - string: | |
296 | name: 'kverfilter' | |
297 | default: '{kverfilter}' | |
298 | description: 'Kernel versions list filtering strategy.' | |
299 | - string: | |
300 | name: 'kverrc' | |
301 | default: 'true' | |
302 | description: 'Add latest RC to kernel versions list.' | |
303 | - string: | |
304 | name: 'kgitrepo' | |
305 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' | |
306 | description: 'The linux kernel git repository url.' | |
307 | - string: | |
308 | name: 'kbuildjob' | |
309 | default: 'dev_mjeanson_lttng-modules_PARAM_{parambuildtype}' | |
310 | description: 'The parametrized job to use for child builds.' | |
311 | ||
312 | <<: *lttng-modules_build_builders_defaults | |
313 | ||
28b10e79 | 314 | - job-template: |
3da11679 | 315 | name: dev_review_lttng-modules_{mversion}_build |
28b10e79 MJ |
316 | defaults: lttng-modules |
317 | concurrent: true | |
318 | ||
319 | node: 'master' | |
320 | ||
321 | scm: | |
322 | - git: | |
323 | url: https://review.lttng.org/lttng-modules | |
324 | refspec: 'refs/changes/*:refs/changes/*' | |
325 | branches: | |
326 | - '$GERRIT_REFSPEC' | |
327 | basedir: src/lttng-modules | |
328 | skip-tag: true | |
329 | ||
330 | triggers: | |
331 | - gerrit: | |
332 | trigger-on: | |
333 | - comment-added-event: | |
334 | approval-category: 'CI-Build' | |
335 | approval-value: 1 | |
336 | projects: | |
337 | - project-compare-type: 'PLAIN' | |
338 | project-pattern: 'lttng-modules' | |
339 | branches: | |
3da11679 MJ |
340 | - branch-compare-type: 'PLAIN' |
341 | branch-pattern: '{mversion}' | |
28b10e79 MJ |
342 | |
343 | properties: | |
344 | - build-discarder: | |
5aacfb5b MJ |
345 | days-to-keep: 1 |
346 | - throttle: | |
347 | option: 'category' | |
348 | categories: | |
349 | - 'gerrit-build' | |
28b10e79 | 350 | |
3da11679 | 351 | <<: *lttng-modules_build_parameters_review |
28b10e79 MJ |
352 | <<: *lttng-modules_build_builders_defaults |
353 | ||
354 | publishers: | |
355 | - workspace-cleanup | |
356 | ||
f3d8604b | 357 | - job-template: |
3a01c580 | 358 | name: lttng-modules_{mversion}_fullbuild-vanilla |
f3d8604b | 359 | defaults: lttng-modules |
2c1d386a MJ |
360 | description: | |
361 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
362 | 2.0 tracer toolset. | |
363 | ||
364 | This job will build the {mversion} branch against all stable vanilla | |
365 | kernel tags. | |
366 | ||
367 | <p>Job is managed by Jenkins Job Builder.</p> | |
f3d8604b MJ |
368 | |
369 | node: 'master' | |
370 | ||
3a01c580 MJ |
371 | <<: *lttng-modules_build_parameters_defaults |
372 | <<: *lttng-modules_build_builders_defaults | |
f3d8604b | 373 | |
3a01c580 MJ |
374 | triggers: |
375 | - pollscm: | |
376 | cron: "@midnight" | |
f3d8604b MJ |
377 | |
378 | - job-template: | |
3a01c580 | 379 | name: lttng-modules_{mversion}_{buildtype}-{uversion} |
f3d8604b | 380 | defaults: lttng-modules |
2c1d386a MJ |
381 | description: | |
382 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
383 | 2.0 tracer toolset. | |
384 | ||
3a01c580 | 385 | This job will build the {mversion} branch against Ubuntu {uversion} |
2c1d386a MJ |
386 | released kernels, including the LTS backport kernels. |
387 | ||
388 | <p>Job is managed by Jenkins Job Builder.</p> | |
f3d8604b MJ |
389 | |
390 | node: 'master' | |
391 | ||
3a01c580 MJ |
392 | <<: *lttng-modules_build_parameters_ubuntu |
393 | <<: *lttng-modules_build_builders_defaults | |
f3d8604b | 394 | |
3a01c580 MJ |
395 | - job-template: |
396 | name: lttng-modules_{mversion}_fullbuild-{uversion} | |
397 | defaults: lttng-modules | |
398 | description: | | |
399 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
400 | 2.0 tracer toolset. | |
f3d8604b | 401 | |
3a01c580 MJ |
402 | This job will build the {mversion} branch against Ubuntu {uversion} |
403 | released kernels, including the LTS backport kernels. | |
404 | ||
405 | <p>Job is managed by Jenkins Job Builder.</p> | |
406 | ||
407 | node: 'master' | |
408 | ||
409 | <<: *lttng-modules_build_parameters_ubuntu | |
410 | <<: *lttng-modules_build_builders_defaults | |
411 | ||
412 | triggers: | |
413 | - pollscm: | |
414 | cron: "@midnight" | |
f3d8604b | 415 | |
2c1d386a MJ |
416 | - job-template: |
417 | name: lttng-modules_{mversion}_build-rt | |
418 | defaults: lttng-modules | |
419 | description: | | |
420 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
421 | 2.0 tracer toolset. | |
422 | ||
423 | This job will build the {mversion} branch against all Linutronix RT | |
424 | kernels. | |
425 | ||
426 | <p>Job is managed by Jenkins Job Builder.</p> | |
427 | ||
428 | node: 'master' | |
429 | ||
3a01c580 MJ |
430 | <<: *lttng-modules_build_parameters_rt |
431 | <<: *lttng-modules_build_rt_builders_defaults | |
2c1d386a | 432 | |
f3d8604b | 433 | - job-template: |
5a196804 | 434 | name: lttng-modules_PARAM_build |
f3d8604b MJ |
435 | defaults: lttng-modules |
436 | description: | | |
437 | This is a parametrized job used by 'master' jobs to build any combinations | |
438 | of lttng-modules and linux kernel versions. | |
439 | ||
440 | <p>Job is managed by Jenkins Job Builder.</p> | |
441 | ||
442 | project-type: matrix | |
443 | node: 'master' # Applies only to matrix flyweight task | |
444 | axes: | |
445 | - axis: | |
446 | type: slave | |
447eaf93 KS |
447 | name: platforms |
448 | values: '{obj:platforms}' | |
f3d8604b | 449 | |
a2f4e8b8 MJ |
450 | properties: |
451 | - build-discarder: | |
452 | days-to-keep: 2 | |
453 | ||
f3d8604b MJ |
454 | parameters: |
455 | - string: | |
456 | name: 'mversion' | |
457 | default: 'master' | |
458 | description: 'The lttng-modules branch to build.' | |
5a196804 MJ |
459 | - string: |
460 | name: 'mgitrepo' | |
e59ac62f | 461 | default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' |
5a196804 | 462 | description: 'The lttng-modules git repository url.' |
f3d8604b | 463 | - string: |
a1ae361e | 464 | name: 'ktag' |
f3d8604b MJ |
465 | default: '' |
466 | description: 'The linux kernel git tag to build against.' | |
467 | - string: | |
468 | name: 'kgitrepo' | |
c4b8d4b3 | 469 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
f3d8604b MJ |
470 | description: 'The linux kernel git repository url.' |
471 | ||
472 | concurrent: true | |
f3d8604b | 473 | |
5a196804 | 474 | scm: [] |
f3d8604b | 475 | |
3da11679 | 476 | triggers: [] |
2c1d386a | 477 | |
f3d8604b | 478 | builders: |
f3d8604b MJ |
479 | - shell: |
480 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
481 | ||
055a236f JR |
482 | publishers: |
483 | - workspace-cleanup | |
484 | ||
e0e247de MJ |
485 | - job-template: |
486 | name: dev_mjeanson_lttng-modules_PARAM_build | |
487 | defaults: lttng-modules | |
488 | description: | | |
489 | This is a parametrized job used by 'master' jobs to build any combinations | |
490 | of lttng-modules and linux kernel versions. | |
491 | ||
492 | <p>Job is managed by Jenkins Job Builder.</p> | |
493 | ||
494 | project-type: matrix | |
495 | node: 'master' # Applies only to matrix flyweight task | |
496 | axes: | |
497 | - axis: | |
498 | type: slave | |
447eaf93 KS |
499 | name: platforms |
500 | values: '{obj:platforms}' | |
e0e247de MJ |
501 | |
502 | properties: | |
503 | - build-discarder: | |
504 | days-to-keep: 2 | |
505 | ||
506 | parameters: | |
507 | - string: | |
508 | name: 'mversion' | |
509 | default: 'master' | |
510 | description: 'The lttng-modules branch to build.' | |
511 | - string: | |
512 | name: 'mgitrepo' | |
513 | default: 'https://github.com/{github_user}/lttng-modules.git' | |
514 | description: 'The lttng-modules git repository url.' | |
515 | - string: | |
516 | name: 'ktag' | |
517 | default: '' | |
518 | description: 'The linux kernel git tag to build against.' | |
519 | - string: | |
520 | name: 'kgitrepo' | |
521 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' | |
522 | description: 'The linux kernel git repository url.' | |
523 | ||
524 | concurrent: true | |
525 | ||
526 | scm: [] | |
527 | ||
3da11679 | 528 | triggers: [] |
e0e247de MJ |
529 | |
530 | builders: | |
531 | - shell: | |
532 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
533 | ||
534 | publishers: | |
535 | - workspace-cleanup | |
536 | ||
5a196804 | 537 | |
447eaf93 KS |
538 | - job-template: |
539 | name: dev_mjeanson_lttng-modules_PARAM_crossbuild | |
540 | defaults: lttng-modules | |
541 | description: | | |
542 | This is a parametrized job used by 'master' jobs to build any combinations | |
543 | of lttng-modules and linux kernel versions. | |
544 | ||
545 | <p>Job is managed by Jenkins Job Builder.</p> | |
546 | ||
547 | project-type: matrix | |
548 | node: 'master' # Applies only to matrix flyweight task | |
549 | axes: | |
550 | - axis: | |
551 | type: user-defined | |
552 | name: cross_arch | |
553 | values: '{obj:cross_arch}' | |
554 | - axis: | |
555 | type: slave | |
556 | name: platforms | |
557 | values: '{obj:platforms}' | |
558 | ||
559 | properties: | |
560 | - build-discarder: | |
561 | days-to-keep: 2 | |
562 | ||
563 | parameters: | |
564 | - string: | |
565 | name: 'mversion' | |
566 | default: 'master' | |
567 | description: 'The lttng-modules branch to build.' | |
568 | - string: | |
569 | name: 'mgitrepo' | |
570 | default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' | |
571 | description: 'The lttng-modules git repository url.' | |
572 | - string: | |
573 | name: 'ktag' | |
574 | default: '' | |
575 | description: 'The linux kernel git tag to build against.' | |
576 | - string: | |
577 | name: 'kgitrepo' | |
578 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' | |
579 | description: 'The linux kernel git repository url.' | |
580 | ||
581 | concurrent: true | |
582 | ||
583 | scm: [] | |
584 | ||
585 | triggers: [] | |
586 | ||
587 | builders: | |
588 | - shell: | |
589 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
590 | ||
591 | publishers: | |
592 | - workspace-cleanup | |
593 | ||
e9b44189 | 594 | - job-template: |
5a196804 | 595 | name: lttng-modules_PARAM_crossbuild |
e9b44189 MJ |
596 | defaults: lttng-modules |
597 | description: | | |
598 | This is a parametrized job used by 'master' jobs to build any combinations | |
599 | of lttng-modules and linux kernel versions. | |
600 | ||
601 | <p>Job is managed by Jenkins Job Builder.</p> | |
602 | ||
603 | project-type: matrix | |
604 | node: 'master' # Applies only to matrix flyweight task | |
605 | axes: | |
606 | - axis: | |
607 | type: user-defined | |
608 | name: cross_arch | |
609 | values: '{obj:cross_arch}' | |
610 | ||
611 | properties: | |
612 | - build-discarder: | |
613 | days-to-keep: 2 | |
614 | ||
615 | parameters: | |
616 | - string: | |
617 | name: 'mversion' | |
618 | default: 'master' | |
619 | description: 'The lttng-modules branch to build.' | |
5a196804 MJ |
620 | - string: |
621 | name: 'mgitrepo' | |
e59ac62f | 622 | default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' |
5a196804 | 623 | description: 'The lttng-modules git repository url.' |
e9b44189 | 624 | - string: |
a1ae361e | 625 | name: 'ktag' |
e9b44189 MJ |
626 | default: '' |
627 | description: 'The linux kernel git tag to build against.' | |
628 | - string: | |
629 | name: 'kgitrepo' | |
c4b8d4b3 | 630 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
e9b44189 MJ |
631 | description: 'The linux kernel git repository url.' |
632 | ||
633 | concurrent: true | |
634 | ||
5a196804 | 635 | scm: [] |
e9b44189 | 636 | |
3da11679 | 637 | triggers: [] |
e9b44189 MJ |
638 | |
639 | builders: | |
e9b44189 MJ |
640 | - shell: |
641 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
5a196804 | 642 | |
055a236f JR |
643 | publishers: |
644 | - workspace-cleanup | |
e9b44189 | 645 | |
4f3fef7d | 646 | - job-template: |
f899b1be | 647 | name: lttng-modules_{mversion}_coverity |
4f3fef7d | 648 | defaults: lttng-modules |
16844a6d | 649 | node: 'amd64' |
4f3fef7d MJ |
650 | |
651 | triggers: | |
652 | - pollscm: | |
653 | cron: "@daily" | |
654 | ||
655 | wrappers: | |
656 | - workspace-cleanup | |
657 | - timestamps | |
658 | - ansicolor: | |
659 | colormap: xterm | |
660 | - credentials-binding: | |
661 | - username-password-separated: | |
662 | credential-id: lttng-modules_coverity_token | |
663 | username: COVERITY_SCAN_PROJECT_NAME | |
664 | password: COVERITY_SCAN_TOKEN | |
665 | ||
666 | builders: | |
5122da3c | 667 | - shell: | |
28b10e79 | 668 | git clone --depth=1 -b v5.5 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux |
7e942863 | 669 | cd src/linux |
28b10e79 | 670 | make allyesconfig |
5122da3c JR |
671 | sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config |
672 | make modules_prepare | |
4f3fef7d | 673 | - shell: |
ef63064f | 674 | !include-raw-escape: scripts/common/coverity.sh |
4f3fef7d | 675 | |
96e8f697 MJ |
676 | publishers: |
677 | - archive: | |
678 | artifacts: 'analysis-results.tgz,cov-int/**' | |
679 | allow-empty: false | |
ee4b760a | 680 | - ircbot: *lttng-modules_publisher_ircbot_defaults |
96e8f697 MJ |
681 | - workspace-cleanup |
682 | ||
f899b1be | 683 | |
598af463 MJ |
684 | ## Project |
685 | - project: | |
686 | name: lttng-modules | |
51ca880a MJ |
687 | github_user: lttng |
688 | github_name: lttng-modules | |
055a236f | 689 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
cec8f6e1 MJ |
690 | mversion: |
691 | - stable-2.12 | |
692 | - stable-2.13 | |
693 | - master | |
598af463 | 694 | jobs: |
3a01c580 MJ |
695 | |
696 | # Vanilla normal builds | |
5a196804 | 697 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
7b67e7b0 | 698 | mversion: |
7b67e7b0 | 699 | - master |
5a196804 MJ |
700 | buildtype: build |
701 | parambuildtype: build | |
9a171179 MJ |
702 | kverfloor: v4.4 |
703 | kverceil: '' | |
704 | kverfilter: stable-head | |
705 | - 'lttng-modules_{mversion}_fullbuild-vanilla': | |
706 | mversion: | |
707 | - master | |
708 | buildtype: build | |
709 | parambuildtype: build | |
710 | kverfloor: v4.4 | |
711 | kverceil: '' | |
712 | kverfilter: none | |
713 | ||
714 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': | |
715 | mversion: | |
716 | - stable-2.13 | |
717 | buildtype: build | |
718 | parambuildtype: build | |
5a196804 MJ |
719 | kverfloor: v3.0 |
720 | kverceil: '' | |
721 | kverfilter: stable-head | |
5a196804 | 722 | - 'lttng-modules_{mversion}_fullbuild-vanilla': |
7b67e7b0 MJ |
723 | mversion: |
724 | - stable-2.13 | |
5a196804 MJ |
725 | buildtype: build |
726 | parambuildtype: build | |
727 | kverfloor: v3.0 | |
728 | kverceil: '' | |
729 | kverfilter: none | |
3a01c580 | 730 | |
7b67e7b0 MJ |
731 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
732 | mversion: | |
733 | - stable-2.12 | |
734 | buildtype: build | |
735 | parambuildtype: build | |
736 | kverfloor: v3.0 | |
737 | kverceil: v5.18-rc1 | |
738 | kverfilter: stable-head | |
739 | - 'lttng-modules_{mversion}_fullbuild-vanilla': | |
740 | mversion: | |
741 | - stable-2.12 | |
742 | buildtype: build | |
743 | parambuildtype: build | |
744 | kverfloor: v3.0 | |
745 | kverceil: v5.18-rc1 | |
746 | kverfilter: none | |
747 | ||
3a01c580 | 748 | # RT normal builds |
2c1d386a MJ |
749 | - 'lttng-modules_{mversion}_build-rt': |
750 | mversion: master | |
0b65c5bd | 751 | kverfloor: v4.4.0-rt1-rebase |
af3990ed MJ |
752 | kverceil: '' |
753 | kverfilter: stable-head | |
3a01c580 MJ |
754 | |
755 | # Ubuntu normal builds | |
756 | - 'lttng-modules_{mversion}_{buildtype}-{uversion}': | |
f3d8604b | 757 | uversion: |
f3d8604b | 758 | - xenial |
57bdee9e | 759 | - bionic |
9e5757c6 | 760 | - focal |
74901baa | 761 | - jammy |
3a01c580 MJ |
762 | buildtype: build |
763 | parambuildtype: build | |
764 | kverfloor: '' | |
765 | kverceil: '' | |
766 | kverfilter: stable-head | |
767 | ||
768 | # Vanilla crossbuilds | |
e9b44189 | 769 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
7b67e7b0 | 770 | mversion: |
7b67e7b0 | 771 | - master |
591756e5 | 772 | buildtype: crossbuild |
3a01c580 | 773 | parambuildtype: crossbuild |
9a171179 MJ |
774 | kverfloor: v4.4 |
775 | kverceil: '' | |
776 | kverfilter: stable-head | |
777 | ||
778 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': | |
779 | mversion: | |
780 | - stable-2.13 | |
781 | buildtype: crossbuild | |
782 | parambuildtype: crossbuild | |
53b51a15 | 783 | kverfloor: v3.18 |
591756e5 MJ |
784 | kverceil: '' |
785 | kverfilter: stable-head | |
3a01c580 | 786 | |
7b67e7b0 MJ |
787 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
788 | mversion: | |
789 | - stable-2.12 | |
790 | buildtype: crossbuild | |
791 | parambuildtype: crossbuild | |
792 | kverfloor: v3.18 | |
793 | kverceil: v5.18-rc1 | |
794 | kverfilter: stable-head | |
795 | ||
3a01c580 MJ |
796 | # Ubuntu cross builds |
797 | - 'lttng-modules_{mversion}_{buildtype}-{uversion}': | |
3a01c580 | 798 | uversion: |
3a01c580 | 799 | - xenial |
57bdee9e | 800 | - bionic |
e9b44189 | 801 | buildtype: crossbuild |
3a01c580 MJ |
802 | parambuildtype: crossbuild |
803 | kverfloor: '' | |
804 | kverceil: '' | |
e9b44189 | 805 | kverfilter: stable-head |
3a01c580 MJ |
806 | |
807 | # Parametrized kernel and modules build jobs | |
5a196804 | 808 | - 'lttng-modules_PARAM_build': |
447eaf93 | 809 | platforms: !!python/tuple [amd64] |
5a196804 | 810 | - 'lttng-modules_PARAM_crossbuild': |
e9b44189 | 811 | cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
3a01c580 MJ |
812 | |
813 | # Misc jobs | |
9e5c099a | 814 | - 'lttng-modules_ALL_trigger-vanilla' |
f899b1be MJ |
815 | - 'lttng-modules_{mversion}_coverity': |
816 | mversion: master | |
28b10e79 MJ |
817 | |
818 | - project: | |
3da11679 | 819 | name: lttng-modules-review |
28b10e79 | 820 | jobs: |
3da11679 MJ |
821 | - 'dev_review_lttng-modules_{mversion}_build': |
822 | mversion: master | |
823 | kverfloor: v4.4 | |
824 | kverceil: '' | |
825 | kverfilter: lts-head | |
826 | - 'dev_review_lttng-modules_{mversion}_build': | |
827 | mversion: stable-2.13 | |
828 | kverfloor: v3.0 | |
829 | kverceil: '' | |
830 | kverfilter: lts-head | |
831 | - 'dev_review_lttng-modules_{mversion}_build': | |
832 | mversion: stable-2.12 | |
833 | kverfloor: v3.0 | |
834 | kverceil: v5.18 | |
835 | kverfilter: lts-head | |
e0e247de MJ |
836 | |
837 | - project: | |
838 | name: lttng-modules-dev-mjeanson | |
839 | github_user: mjeanson | |
840 | github_name: lttng-modules | |
841 | email_to: '' | |
842 | jobs: | |
843 | - 'dev_mjeanson_lttng-modules_PARAM_build': | |
447eaf93 KS |
844 | platforms: !!python/tuple [deb12-amd64] |
845 | - 'dev_mjeanson_lttng-modules_PARAM_crossbuild': | |
846 | platforms: !!python/tuple [deb12-amd64] | |
847 | cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] | |
e0e247de MJ |
848 | - 'dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla': |
849 | mversion: | |
850 | - master | |
851 | buildtype: build | |
852 | parambuildtype: build | |
853 | kverfloor: v3.0 | |
854 | kverceil: '' | |
855 | kverfilter: stable-head |