jjb: Add more warnings filtering to scope jobs
[lttng-ci.git] / jobs / lttng-modules.yaml
CommitLineData
598af463 1---
3a01c580
MJ
2## Anchors
3- lttng-modules_build_parameters_defaults: &lttng-modules_build_parameters_defaults
4 name: 'lttng-modules_build_parameters_defaults'
5 parameters:
6 - string:
7 name: 'mversion'
8 default: '{mversion}'
9 description: 'The lttng-modules branch to build.'
10 - string:
11 name: 'maxConcurrentBuild'
12 default: '20'
13 description: 'The maximum number of concurrent child build to run.'
14 - string:
15 name: 'kverfloor'
16 default: '{kverfloor}'
17 description: 'The lowest kernel version to build.'
18 - string:
19 name: 'kverceil'
20 default: '{kverceil}'
21 description: 'The highest kernel version to build. (excluded)'
22 - string:
23 name: 'kverfilter'
24 default: '{kverfilter}'
25 description: 'Kernel versions list filtering strategy.'
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'
32 default: 'lttng-modules_VERSION_param-{parambuildtype}'
33 description: 'The parametrized job to use for child builds.'
34
35- lttng-modules_build_parameters_ubuntu: &lttng-modules_build_parameters_ubuntu
36 name: 'lttng-modules_build_parameters_ubuntu'
37 parameters:
38 - string:
39 name: 'mversion'
40 default: '{mversion}'
41 description: 'The lttng-modules branch to build.'
42 - string:
43 name: 'maxConcurrentBuild'
44 default: '20'
45 description: 'The maximum number of concurrent child build to run.'
46 - string:
47 name: 'kverfloor'
48 default: '{kverfloor}'
49 description: 'The lowest kernel version to build.'
50 - string:
51 name: 'kverceil'
52 default: '{kverceil}'
53 description: 'The highest kernel version to build. (excluded)'
54 - string:
55 name: 'kverfilter'
56 default: '{kverfilter}'
57 description: 'Kernel versions list filtering strategy.'
58 - string:
59 name: 'kgitrepo'
60 default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git'
61 description: 'The linux kernel git repository url.'
62 - string:
63 name: 'kbuildjob'
64 default: 'lttng-modules_VERSION_param-{parambuildtype}'
65 description: 'The parametrized job to use for child builds.'
66 - string:
67 name: 'uversion'
68 default: '{uversion}'
69 description: 'The lowest kernel version to build.'
70
71- lttng-modules_build_parameters_rt: &lttng-modules_build_parameters_rt
72 name: 'lttng-modules_build_parameters_rt'
73 parameters:
74 - string:
75 name: 'mversion'
76 default: '{mversion}'
77 description: 'The lttng-modules branch to build.'
78 - string:
79 name: 'maxConcurrentBuild'
80 default: '20'
81 description: 'The maximum number of concurrent child build to run.'
82 - string:
83 name: 'kverfloor'
84 default: 'v2.6.36-rt0-rebase'
85 description: 'The lowest kernel version to build.'
af3990ed
MJ
86 - string:
87 name: 'kverceil'
88 default: '{kverceil}'
89 description: 'The highest kernel version to build. (excluded)'
90 - string:
91 name: 'kverfilter'
92 default: '{kverfilter}'
93 description: 'Kernel versions list filtering strategy.'
3a01c580
MJ
94 - string:
95 name: 'kgitrepo'
96 default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-rt-devel.git'
97 description: 'The linux kernel git repository url.'
98 - string:
99 name: 'kbuildjob'
100 default: 'lttng-modules_VERSION_param-build'
101 description: 'The parametrized job to use for child builds.'
102
103- lttng-modules_build_builders_defaults: &lttng-modules_build_builders_defaults
104 name: 'lttng-modules_build_builders_defaults'
105 builders:
106 - system-groovy:
107 command:
108 !include-raw-escape: scripts/lttng-modules/master.groovy
109
110- lttng-modules_build_rt_builders_defaults: &lttng-modules_build_rt_builders_defaults
111 name: 'lttng-modules_build_rt_builders_defaults'
112 builders:
113 - system-groovy:
114 command:
115 !include-raw-escape: scripts/lttng-modules/master-rt.groovy
116
117
118## Defaults
598af463
MJ
119- defaults:
120 name: lttng-modules
121 description: |
f899b1be
MJ
122 The LTTng modules provide Linux kernel tracing capability to the LTTng
123 2.0 tracer toolset.
a3c2d81c
MJ
124
125 <p>Job is managed by Jenkins Job Builder.</p>
598af463
MJ
126
127 project-type: freestyle
128
598af463
MJ
129 wrappers:
130 - workspace-cleanup
131 - timestamps
132 - ansicolor
133
134 scm:
598af463 135 - git:
51ca880a 136 url: git://github.com/{github_user}/{github_name}.git
9a00aa82 137 browser: githubweb
51ca880a 138 browser-url: https://github.com/{github_user}/{github_name}
598af463
MJ
139 branches:
140 - "{mversion}"
94bddbc4 141 shallow-clone: true
94bddbc4 142 fastpoll: true
7e942863 143 basedir: src/lttng-modules
3a01c580
MJ
144 wipe-workspace: false
145 skip-tag: true
598af463 146
d2fc1027 147 triggers:
4f3fef7d 148 - pollscm:
997b01f2 149 cron: "@hourly"
d2fc1027 150
598af463 151 properties:
edf72710
MJ
152 - build-discarder:
153 num-to-keep: 2
9a00aa82 154 - github:
51ca880a 155 url: https://github.com/{github_user}/{github_name}
598af463 156
3a01c580
MJ
157 publishers:
158 - workspace-cleanup
055a236f
JR
159 - email-ext:
160 recipients: '{obj:email_to}'
161 reply-to: ci-notification@lists.lttng.org
162 always: false
163 unstable: false
164 first-failure: true
165 first-unstable: true
166 not-built: false
167 aborted: false
168 regression: false
169 failure: false
170 second-failure: false
171 improvement: false
172 still-failing: false
173 success: false
174 fixed: false
175 fixed-unhealthy: true
176 still-unstable: false
177 pre-build: false
178 matrix-trigger: only-parent
179 send-to:
180 - recipients
3a01c580 181
598af463
MJ
182
183## Templates
9e5c099a
MJ
184- job-template:
185 name: lttng-modules_ALL_trigger-vanilla
186 defaults: lttng-modules
187 description: |
188 The LTTng modules provide Linux kernel tracing capability to the LTTng
189 2.0 tracer toolset.
190
191 This job will trigger the build jobs when a new tag is added to the vanilla
192 and stable kernel trees.
193
194 <p>Job is managed by Jenkins Job Builder.</p>
195
196 node: 'master'
197
198 wrappers:
199 - timestamps
200 - ansicolor
201
202 scm: []
203
48745db5
MJ
204 triggers:
205 - timed: "@hourly"
206
9e5c099a
MJ
207 builders:
208 - system-groovy:
209 command:
210 !include-raw-escape: scripts/lttng-modules/trigger-vanilla.groovy
211
212 publishers: []
213
598af463 214- job-template:
3a01c580 215 name: lttng-modules_{mversion}_{buildtype}-vanilla
598af463 216 defaults: lttng-modules
3a01c580
MJ
217 description: |
218 The LTTng modules provide Linux kernel tracing capability to the LTTng
219 2.0 tracer toolset.
598af463 220
3a01c580
MJ
221 This job will build the {mversion} branch against stable vanilla
222 kernel tags.
598af463 223
3a01c580 224 <p>Job is managed by Jenkins Job Builder.</p>
598af463 225
3a01c580
MJ
226 node: 'master'
227
228 <<: *lttng-modules_build_parameters_defaults
229 <<: *lttng-modules_build_builders_defaults
598af463 230
f3d8604b 231- job-template:
3a01c580 232 name: lttng-modules_{mversion}_fullbuild-vanilla
f3d8604b 233 defaults: lttng-modules
2c1d386a
MJ
234 description: |
235 The LTTng modules provide Linux kernel tracing capability to the LTTng
236 2.0 tracer toolset.
237
238 This job will build the {mversion} branch against all stable vanilla
239 kernel tags.
240
241 <p>Job is managed by Jenkins Job Builder.</p>
f3d8604b
MJ
242
243 node: 'master'
244
3a01c580
MJ
245 <<: *lttng-modules_build_parameters_defaults
246 <<: *lttng-modules_build_builders_defaults
f3d8604b 247
3a01c580
MJ
248 triggers:
249 - pollscm:
250 cron: "@midnight"
f3d8604b
MJ
251
252- job-template:
3a01c580 253 name: lttng-modules_{mversion}_{buildtype}-{uversion}
f3d8604b 254 defaults: lttng-modules
2c1d386a
MJ
255 description: |
256 The LTTng modules provide Linux kernel tracing capability to the LTTng
257 2.0 tracer toolset.
258
3a01c580 259 This job will build the {mversion} branch against Ubuntu {uversion}
2c1d386a
MJ
260 released kernels, including the LTS backport kernels.
261
262 <p>Job is managed by Jenkins Job Builder.</p>
f3d8604b
MJ
263
264 node: 'master'
265
3a01c580
MJ
266 <<: *lttng-modules_build_parameters_ubuntu
267 <<: *lttng-modules_build_builders_defaults
f3d8604b 268
3a01c580
MJ
269- job-template:
270 name: lttng-modules_{mversion}_fullbuild-{uversion}
271 defaults: lttng-modules
272 description: |
273 The LTTng modules provide Linux kernel tracing capability to the LTTng
274 2.0 tracer toolset.
f3d8604b 275
3a01c580
MJ
276 This job will build the {mversion} branch against Ubuntu {uversion}
277 released kernels, including the LTS backport kernels.
278
279 <p>Job is managed by Jenkins Job Builder.</p>
280
281 node: 'master'
282
283 <<: *lttng-modules_build_parameters_ubuntu
284 <<: *lttng-modules_build_builders_defaults
285
286 triggers:
287 - pollscm:
288 cron: "@midnight"
f3d8604b 289
2c1d386a
MJ
290- job-template:
291 name: lttng-modules_{mversion}_build-rt
292 defaults: lttng-modules
293 description: |
294 The LTTng modules provide Linux kernel tracing capability to the LTTng
295 2.0 tracer toolset.
296
297 This job will build the {mversion} branch against all Linutronix RT
298 kernels.
299
300 <p>Job is managed by Jenkins Job Builder.</p>
301
302 node: 'master'
303
3a01c580
MJ
304 <<: *lttng-modules_build_parameters_rt
305 <<: *lttng-modules_build_rt_builders_defaults
2c1d386a 306
f3d8604b
MJ
307- job-template:
308 name: lttng-modules_VERSION_param-build
309 defaults: lttng-modules
310 description: |
311 This is a parametrized job used by 'master' jobs to build any combinations
312 of lttng-modules and linux kernel versions.
313
314 <p>Job is managed by Jenkins Job Builder.</p>
315
316 project-type: matrix
317 node: 'master' # Applies only to matrix flyweight task
318 axes:
319 - axis:
320 type: slave
321 name: arch
322 values: '{obj:arch}'
323
a2f4e8b8
MJ
324 properties:
325 - build-discarder:
326 days-to-keep: 2
327
f3d8604b
MJ
328 parameters:
329 - string:
330 name: 'mversion'
331 default: 'master'
332 description: 'The lttng-modules branch to build.'
333 - string:
a1ae361e 334 name: 'ktag'
f3d8604b
MJ
335 default: ''
336 description: 'The linux kernel git tag to build against.'
337 - string:
338 name: 'kgitrepo'
c4b8d4b3 339 default: 'git://git-mirror.internal.efficios.com/git/linux-all.git'
f3d8604b
MJ
340 description: 'The linux kernel git repository url.'
341
342 concurrent: true
f3d8604b
MJ
343
344 scm:
345 - git:
346 url: git://github.com/lttng/lttng-modules.git
347 browser: githubweb
348 browser-url: https://github.com/lttng/lttng-modules
349 branches:
350 - "${{mversion}}"
351 skip-tag: true
339db64d 352 basedir: src/lttng-modules
f3d8604b 353
2c1d386a
MJ
354 triggers:
355
f3d8604b
MJ
356 builders:
357 - shell: |
a1ae361e 358 git clone --depth=1 -b "$ktag" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux
f3d8604b
MJ
359 - shell:
360 !include-raw-escape: scripts/lttng-modules/param-build.sh
361
055a236f
JR
362 publishers:
363 - workspace-cleanup
364
e9b44189
MJ
365- job-template:
366 name: lttng-modules_VERSION_param-crossbuild
367 defaults: lttng-modules
368 description: |
369 This is a parametrized job used by 'master' jobs to build any combinations
370 of lttng-modules and linux kernel versions.
371
372 <p>Job is managed by Jenkins Job Builder.</p>
373
374 project-type: matrix
375 node: 'master' # Applies only to matrix flyweight task
376 axes:
377 - axis:
378 type: user-defined
379 name: cross_arch
380 values: '{obj:cross_arch}'
381
382 properties:
383 - build-discarder:
384 days-to-keep: 2
385
386 parameters:
387 - string:
388 name: 'mversion'
389 default: 'master'
390 description: 'The lttng-modules branch to build.'
391 - string:
a1ae361e 392 name: 'ktag'
e9b44189
MJ
393 default: ''
394 description: 'The linux kernel git tag to build against.'
395 - string:
396 name: 'kgitrepo'
c4b8d4b3 397 default: 'git://git-mirror.internal.efficios.com/git/linux-all.git'
e9b44189
MJ
398 description: 'The linux kernel git repository url.'
399
400 concurrent: true
401
402 scm:
403 - git:
404 url: git://github.com/lttng/lttng-modules.git
405 browser: githubweb
406 browser-url: https://github.com/lttng/lttng-modules
407 branches:
408 - "${{mversion}}"
409 skip-tag: true
410 basedir: src/lttng-modules
411
412 triggers:
413
414 builders:
415 - shell: |
a1ae361e 416 git clone --depth=1 -b "$ktag" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux
e9b44189
MJ
417 - shell:
418 !include-raw-escape: scripts/lttng-modules/param-build.sh
055a236f
JR
419 publishers:
420 - workspace-cleanup
e9b44189 421
4f3fef7d 422- job-template:
f899b1be 423 name: lttng-modules_{mversion}_coverity
4f3fef7d
MJ
424 defaults: lttng-modules
425 node: 'x86-64'
426
427 triggers:
428 - pollscm:
429 cron: "@daily"
430
431 wrappers:
432 - workspace-cleanup
433 - timestamps
434 - ansicolor:
435 colormap: xterm
436 - credentials-binding:
437 - username-password-separated:
438 credential-id: lttng-modules_coverity_token
439 username: COVERITY_SCAN_PROJECT_NAME
440 password: COVERITY_SCAN_TOKEN
441
442 builders:
5122da3c 443 - shell: |
3a01c580 444 git clone --depth=1 -b v4.10 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux
7e942863 445 cd src/linux
5122da3c
JR
446 make defconfig
447 sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config
448 make modules_prepare
4f3fef7d 449 - shell:
ef63064f 450 !include-raw-escape: scripts/common/coverity.sh
4f3fef7d 451
f899b1be
MJ
452- job-template:
453 name: lttng-modules_{mversion}_cppcheck
454 defaults: lttng-modules
455
456 triggers:
457 - pollscm:
997b01f2 458 cron: "@daily"
f899b1be 459
f899b1be
MJ
460 builders:
461 - shell: |
462 rm -f cppcheck.xml
7e942863 463 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml
f899b1be
MJ
464
465 publishers:
466 - archive:
467 artifacts: 'cppcheck.xml'
468 allow-empty: false
469 - cppcheck:
470 pattern: 'cppcheck.xml'
f899b1be 471
2c1d386a
MJ
472- job-template:
473 name: lttng-modules_{mversion}_sloccount
474 defaults: lttng-modules
475 description: |
476 The LTTng modules provide Linux kernel tracing capability to the LTTng
477 2.0 tracer toolset.
478
479 This job runs the sloccount utility and generates a trend report.
480
481 <p>Job is managed by Jenkins Job Builder.</p>
482
483 triggers:
484 - pollscm:
485 cron: "@daily"
486
487 builders:
488 - shell: |
106c873f 489 cloc --by-file --xml --out=cloc.xml src/lttng-modules/
2c1d386a
MJ
490
491 publishers:
492 - archive:
493 artifacts: 'cloc.xml'
494 allow-empty: false
495 - sloccount:
496 report-files: 'cloc.xml'
3a01c580 497 - workspace-cleanup
2c1d386a 498
f899b1be 499
598af463
MJ
500## Project
501- project:
502 name: lttng-modules
51ca880a
MJ
503 github_user: lttng
504 github_name: lttng-modules
055a236f 505 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
598af463 506 jobs:
3a01c580
MJ
507
508# Vanilla normal builds
e9b44189 509 - 'lttng-modules_{mversion}_{buildtype}-vanilla':
591756e5
MJ
510 mversion:
511 - stable-2.9
bb368cde 512 - stable-2.10
591756e5
MJ
513 - master
514 buildtype: build
3a01c580 515 parambuildtype: build
591756e5
MJ
516 kverfloor: v2.6.36
517 kverceil: ''
3a01c580 518 kverfilter: stable-head
591756e5
MJ
519 - 'lttng-modules_{mversion}_{buildtype}-vanilla':
520 mversion: stable-2.7
521 buildtype: build
3a01c580 522 parambuildtype: build
591756e5
MJ
523 kverfloor: v2.6.36
524 kverceil: v4.8-rc0
3a01c580
MJ
525 kverfilter: stable-head
526 - 'lttng-modules_{mversion}_fullbuild-vanilla':
527 mversion:
3a01c580 528 - stable-2.9
bb368cde 529 - stable-2.10
3a01c580
MJ
530 - master
531 buildtype: build
532 parambuildtype: build
533 kverfloor: v2.6.36
534 kverceil: ''
591756e5 535 kverfilter: none
3a01c580
MJ
536 - 'lttng-modules_{mversion}_fullbuild-vanilla':
537 mversion: stable-2.7
e9b44189 538 buildtype: build
3a01c580 539 parambuildtype: build
e9b44189 540 kverfloor: v2.6.36
3a01c580 541 kverceil: v4.8-rc0
e9b44189 542 kverfilter: none
3a01c580
MJ
543
544# RT normal builds
2c1d386a
MJ
545 - 'lttng-modules_{mversion}_build-rt':
546 mversion: master
af3990ed
MJ
547 kverceil: ''
548 kverfilter: stable-head
3a01c580
MJ
549
550# Ubuntu normal builds
551 - 'lttng-modules_{mversion}_{buildtype}-{uversion}':
591756e5 552 mversion:
591756e5 553 - stable-2.9
bb368cde 554 - stable-2.10
591756e5 555 - master
f3d8604b
MJ
556 uversion:
557 - trusty
558 - xenial
3a01c580
MJ
559 buildtype: build
560 parambuildtype: build
561 kverfloor: ''
562 kverceil: ''
563 kverfilter: stable-head
564
565# Vanilla crossbuilds
e9b44189 566 - 'lttng-modules_{mversion}_{buildtype}-vanilla':
591756e5
MJ
567 mversion:
568 - stable-2.9
bb368cde 569 - stable-2.10
591756e5
MJ
570 - master
571 buildtype: crossbuild
3a01c580 572 parambuildtype: crossbuild
591756e5
MJ
573 kverfloor: v3.16
574 kverceil: ''
575 kverfilter: stable-head
576 - 'lttng-modules_{mversion}_{buildtype}-vanilla':
577 mversion: stable-2.7
578 buildtype: crossbuild
3a01c580 579 parambuildtype: crossbuild
591756e5
MJ
580 kverfloor: v3.16
581 kverceil: v4.8-rc0
582 kverfilter: stable-head
3a01c580
MJ
583
584# Ubuntu cross builds
585 - 'lttng-modules_{mversion}_{buildtype}-{uversion}':
586 mversion:
3a01c580 587 - stable-2.9
bb368cde 588 - stable-2.10
3a01c580
MJ
589 - master
590 uversion:
591 - trusty
592 - xenial
e9b44189 593 buildtype: crossbuild
3a01c580
MJ
594 parambuildtype: crossbuild
595 kverfloor: ''
596 kverceil: ''
e9b44189 597 kverfilter: stable-head
3a01c580
MJ
598
599# Parametrized kernel and modules build jobs
f3d8604b 600 - 'lttng-modules_VERSION_param-build':
598af463 601 arch: !!python/tuple [x86-32, x86-64]
e9b44189
MJ
602 - 'lttng-modules_VERSION_param-crossbuild':
603 cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
3a01c580
MJ
604
605# Misc jobs
9e5c099a 606 - 'lttng-modules_ALL_trigger-vanilla'
591756e5
MJ
607 - 'lttng-modules_{mversion}_cppcheck':
608 mversion:
591756e5 609 - stable-2.9
bb368cde 610 - stable-2.10
591756e5 611 - master
2c1d386a
MJ
612 - 'lttng-modules_{mversion}_sloccount':
613 mversion: master
f899b1be
MJ
614 - 'lttng-modules_{mversion}_coverity':
615 mversion: master
This page took 0.057618 seconds and 4 git commands to generate.