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