e03b46aa1de1c0204c9a109849ed53c07d0189ab
[lttng-ci.git] / jobs / lttng-tools.yaml
1 - defaults:
2 name: lttng-tools
3 description: |
4 The lttng-tools project provides a session daemon (lttng-sessiond)
5 that acts as a tracing registry, the "lttng" command line for tracing
6 control, a lttng-ctl library for tracing control and a lttng-relayd
7 for network streaming.
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 - timeout:
18 timeout: 60
19 fail: true
20 type: absolute
21
22 scm:
23 - git:
24 url: git://github.com/{github_user}/{github_name}.git
25 browser: githubweb
26 browser-url: https://github.com/{github_user}/{github_name}
27 branches:
28 - origin/{version}
29 basedir: src/lttng-tools
30 skip-tag: true
31
32 triggers:
33 - pollscm:
34 cron: "@hourly"
35
36 properties:
37 - inject:
38 properties-content: |
39 PROJECT_NAME=lttng-tools
40 - github:
41 url: https://github.com/{github_user}/{github_name}
42 - build-discarder:
43 num-to-keep: 20
44 artifact-num-to-keep: 2
45
46
47 ## Templates
48
49 - lttng-tools_version_buildtype_anchor: &lttng-tools_version_buildtype_anchor
50 name: 'lttng-tools_version_buildtype_anchor'
51 defaults: lttng-tools
52
53 project-type: matrix
54 node: 'master' # Applies only to matrix flyweight task
55 axes:
56 - axis:
57 type: slave
58 name: arch
59 values: '{obj:arch}'
60 - axis:
61 type: user-defined
62 name: conf
63 values: '{obj:conf}'
64 - axis:
65 type: user-defined
66 name: liburcu_version
67 values: '{obj:urcuversion}'
68 - axis:
69 type: user-defined
70 name: babeltrace_version
71 values: '{obj:babelversion}'
72 - axis:
73 type: user-defined
74 name: build
75 values: '{obj:build}'
76
77 properties:
78 - github:
79 url: https://github.com/{github_user}/{github_name}
80 - build-discarder:
81 num-to-keep: 20
82 artifact-num-to-keep: 2
83 - throttle:
84 max-per-node: 1
85 option: 'category'
86 categories:
87 - 'lttng-tools'
88 matrix-builds: false
89 matrix-configs: true
90
91 builders:
92 - conditional-step:
93 condition-kind: regex-match
94 label: '$conf'
95 regex: (std|static)
96 on-evaluation-failure: run
97 steps:
98 - copyartifact:
99 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
100 which-build: last-successful
101 stable: true
102 filter: 'build/**'
103 target: 'deps/liburcu'
104 do-not-fingerprint: true
105 - copyartifact:
106 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
107 which-build: last-successful
108 stable: true
109 filter: 'build/**'
110 target: 'deps/babeltrace'
111 do-not-fingerprint: true
112 - copyartifact:
113 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
114 which-build: last-successful
115 stable: true
116 filter: 'build/**'
117 target: 'deps/lttng-ust'
118 do-not-fingerprint: true
119 - conditional-step:
120 condition-kind: regex-match
121 label: '$conf'
122 regex: no-ust
123 on-evaluation-failure: run
124 steps:
125 - copyartifact:
126 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
127 which-build: last-successful
128 stable: true
129 filter: 'build/**'
130 target: 'deps/liburcu'
131 do-not-fingerprint: true
132 - copyartifact:
133 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
134 which-build: last-successful
135 stable: true
136 filter: 'build/**'
137 target: 'deps/babeltrace'
138 do-not-fingerprint: true
139 - copyartifact:
140 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
141 which-build: last-successful
142 stable: true
143 filter: 'build/**'
144 target: 'deps/lttng-ust'
145 do-not-fingerprint: true
146 - conditional-step:
147 condition-kind: regex-match
148 label: '$conf'
149 regex: agents
150 on-evaluation-failure: run
151 steps:
152 - copyartifact:
153 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
154 which-build: last-successful
155 stable: true
156 filter: 'build/**'
157 target: 'deps/liburcu'
158 do-not-fingerprint: true
159 - copyartifact:
160 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
161 which-build: last-successful
162 stable: true
163 filter: 'build/**'
164 target: 'deps/babeltrace'
165 do-not-fingerprint: true
166 - copyartifact:
167 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
168 which-build: last-successful
169 stable: true
170 filter: 'build/**'
171 target: 'deps/lttng-ust'
172 do-not-fingerprint: true
173 - conditional-step:
174 condition-kind: regex-match
175 label: '$conf'
176 regex: (relayd-only)
177 on-evaluation-failure: run
178 steps:
179 - copyartifact:
180 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
181 which-build: last-successful
182 stable: true
183 filter: 'build/**'
184 target: 'deps/liburcu'
185 do-not-fingerprint: true
186 - copyartifact:
187 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
188 which-build: last-successful
189 stable: true
190 filter: 'build/**'
191 target: 'deps/babeltrace'
192 do-not-fingerprint: true
193 - shell:
194 !include-raw-escape: scripts/lttng-tools/build.sh
195
196
197 - job-template:
198 name: lttng-tools_{version}_{buildtype}
199 <<: *lttng-tools_version_buildtype_anchor
200 triggers:
201 - pollscm:
202 cron: "@hourly"
203 - reverse:
204 jobs: 'lttng-ust_{version}_{buildtype}'
205 result: 'success'
206
207 publishers:
208 - tap:
209 results: 'tap/**/*.tap'
210 failed-tests-mark-build-as-failure: true
211 todo-is-failure: false
212 - warnings:
213 console-log-parsers:
214 - 'GNU Make + GNU C Compiler (gcc)'
215 total-thresholds:
216 unstable:
217 total-all: 0
218 total-high: 0
219 total-normal: 0
220 total-low: 0
221 - archive:
222 artifacts: 'build/**'
223 allow-empty: false
224 - workspace-cleanup:
225 clean-if:
226 - failure: false
227 - ircbot:
228 strategy: new-failure-and-fixed
229 matrix-notifier: only-parent
230 channels:
231 - name: '#lttng'
232
233
234 - job-template:
235 name: dev_{user}_lttng-tools_{version}_{buildtype}
236 <<: *lttng-tools_version_buildtype_anchor
237
238 publishers:
239 - tap:
240 results: 'tap/**/*.tap'
241 failed-tests-mark-build-as-failure: true
242 todo-is-failure: false
243 - warnings:
244 console-log-parsers:
245 - 'GNU Make + GNU C Compiler (gcc)'
246 total-thresholds:
247 unstable:
248 total-all: 0
249 total-high: 0
250 total-normal: 0
251 total-low: 0
252 - workspace-cleanup:
253 clean-if:
254 - failure: false
255
256
257 - job-template:
258 name: lttng-tools_{version}_cppcheck
259 defaults: lttng-tools
260
261 triggers:
262 - pollscm:
263 cron: "@daily"
264
265 builders:
266 - shell: |
267 rm -f lttng-tools-cppcheck.xml
268 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
269
270 publishers:
271 - archive:
272 artifacts: 'lttng-tools-cppcheck.xml'
273 allow-empty: false
274 - cppcheck:
275 pattern: 'lttng-tools-cppcheck.xml'
276 - email:
277 recipients: 'ci-notification@lists.lttng.org'
278 notify-every-unstable-build: true
279 send-to-individuals: false
280
281 - job-template:
282 name: lttng-tools_{version}_scan-build
283 defaults: lttng-tools
284 node: 'x86-64'
285
286 triggers:
287 - pollscm:
288 cron: "@daily"
289
290 builders:
291 - copyartifact:
292 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
293 which-build: last-successful
294 stable: true
295 filter: 'build/**'
296 target: 'deps/liburcu'
297 do-not-fingerprint: true
298 - copyartifact:
299 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
300 which-build: last-successful
301 stable: true
302 filter: 'build/**'
303 target: 'deps/lttng-ust'
304 do-not-fingerprint: true
305 - shell:
306 !include-raw-escape: scripts/common/scan-build.sh
307
308 publishers:
309 - html-publisher:
310 name: 'HTML Report'
311 dir: 'scan-build-archive/'
312 files: 'index.html'
313
314 - job-template:
315 name: lttng-tools_{version}_coverity
316 defaults: lttng-tools
317 node: 'x86-64'
318
319 triggers:
320 - pollscm:
321 cron: "@daily"
322
323 wrappers:
324 - workspace-cleanup
325 - timestamps
326 - ansicolor:
327 colormap: xterm
328 - credentials-binding:
329 - username-password-separated:
330 credential-id: lttng-tools_coverity_token
331 username: COVERITY_SCAN_PROJECT_NAME
332 password: COVERITY_SCAN_TOKEN
333
334 builders:
335 - copyartifact:
336 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
337 which-build: last-successful
338 stable: true
339 filter: 'build/**'
340 target: 'deps/liburcu'
341 do-not-fingerprint: true
342 - copyartifact:
343 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
344 which-build: last-successful
345 stable: true
346 filter: 'build/**'
347 target: 'deps/lttng-ust'
348 do-not-fingerprint: true
349 - shell:
350 !include-raw-escape: scripts/common/coverity.sh
351
352 publishers:
353 - workspace-cleanup
354
355 # TODO
356 - job-template:
357 name: lttng-tools_{version}_pylint
358 defaults: lttng-tools
359 node: 'x86-64'
360
361 scm: []
362
363 triggers:
364 - pollscm:
365 cron: "@daily"
366
367 builders:
368 - copyartifact:
369 project: lttng-tools-{version}/arch=x86-64,build=std,conf=agents
370 which-build: last-successful
371 stable: true
372 filter: 'build/**'
373 target: 'deps/lttng-tools'
374 do-not-fingerprint: true
375 - shell:
376 !include-raw-escape: scripts/lttng-tools/pylint.sh
377
378 publishers:
379 - archive:
380 artifacts: 'pep8.out,pylint.out'
381 - violations:
382 pep8:
383 pattern: pep8.out
384 min: 10
385 max: 999
386 unstable: 999
387 pylint:
388 pattern: pylint.out
389 min: 10
390 max: 999
391 unstable: 999
392 - email:
393 recipients: 'ci-notification@lists.lttng.org'
394 notify-every-unstable-build: true
395 send-to-individuals: false
396
397
398 ## Project
399 - project:
400 name: lttng-tools
401 github_user: lttng
402 github_name: lttng-tools
403 version:
404 - stable-2.7
405 - stable-2.8
406 - stable-2.9
407 - master
408 jobs:
409 - 'lttng-tools_{version}_{buildtype}':
410 buildtype: build
411 version: master
412 ustversion: master
413 arch: !!python/tuple [x86-32, x86-64]
414 build: !!python/tuple [std, oot, dist]
415 conf: !!python/tuple [std, no-ust, agents]
416 urcuversion: !!python/tuple [master]
417 babelversion: !!python/tuple [master]
418 - 'lttng-tools_{version}_{buildtype}':
419 buildtype: portbuild
420 version: master
421 ustversion: master
422 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
423 build: !!python/tuple [std]
424 conf: !!python/tuple [std, no-ust, agents]
425 urcuversion: !!python/tuple [master]
426 babelversion: !!python/tuple [master]
427 - 'lttng-tools_{version}_{buildtype}':
428 buildtype: macosxbuild
429 version: master
430 ustversion: master
431 arch: !!python/tuple [macosx]
432 build: !!python/tuple [std]
433 conf: !!python/tuple [relayd-only]
434 urcuversion: !!python/tuple [master]
435 babelversion: !!python/tuple [master]
436 - 'lttng-tools_{version}_{buildtype}':
437 buildtype: macosxbuild
438 version: stable-2.9
439 ustversion: stable-2.9
440 arch: !!python/tuple [macosx]
441 build: !!python/tuple [std]
442 conf: !!python/tuple [relayd-only]
443 urcuversion: !!python/tuple [stable-0.9]
444 babelversion: !!python/tuple [stable-1.4]
445 - 'lttng-tools_{version}_{buildtype}':
446 buildtype: solarisbuild
447 version: master
448 ustversion: master
449 arch: !!python/tuple [solaris10, solaris11]
450 build: !!python/tuple [std]
451 conf: !!python/tuple [relayd-only]
452 urcuversion: !!python/tuple [master]
453 babelversion: !!python/tuple [master]
454 - 'lttng-tools_{version}_{buildtype}':
455 buildtype: build
456 version: stable-2.9
457 ustversion: stable-2.9
458 arch: !!python/tuple [x86-32, x86-64]
459 build: !!python/tuple [std, oot, dist]
460 conf: !!python/tuple [std, no-ust, agents]
461 urcuversion: !!python/tuple [stable-0.9]
462 babelversion: !!python/tuple [stable-1.4]
463 - 'lttng-tools_{version}_{buildtype}':
464 buildtype: portbuild
465 version: stable-2.9
466 ustversion: stable-2.9
467 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
468 build: !!python/tuple [std]
469 conf: !!python/tuple [std, no-ust, agents]
470 urcuversion: !!python/tuple [stable-0.9]
471 babelversion: !!python/tuple [stable-1.4]
472 - 'lttng-tools_{version}_{buildtype}':
473 buildtype: solarisbuild
474 version: stable-2.9
475 ustversion: stable-2.9
476 arch: !!python/tuple [solaris10, solaris11]
477 build: !!python/tuple [std]
478 conf: !!python/tuple [relayd-only]
479 urcuversion: !!python/tuple [stable-0.9]
480 babelversion: !!python/tuple [stable-1.4]
481 - 'lttng-tools_{version}_{buildtype}':
482 buildtype: build
483 version: stable-2.8
484 ustversion: stable-2.8
485 arch: !!python/tuple [x86-32, x86-64]
486 build: !!python/tuple [std, oot, dist]
487 conf: !!python/tuple [std, no-ust, agents]
488 urcuversion: !!python/tuple [stable-0.9]
489 babelversion: !!python/tuple [stable-1.4]
490 - 'lttng-tools_{version}_{buildtype}':
491 buildtype: portbuild
492 version: stable-2.8
493 ustversion: stable-2.8
494 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
495 build: !!python/tuple [std]
496 conf: !!python/tuple [std, no-ust, agents]
497 urcuversion: !!python/tuple [stable-0.9]
498 babelversion: !!python/tuple [stable-1.4]
499 - 'lttng-tools_{version}_{buildtype}':
500 buildtype: solarisbuild
501 version: stable-2.8
502 ustversion: stable-2.8
503 arch: !!python/tuple [solaris10, solaris11]
504 build: !!python/tuple [std]
505 conf: !!python/tuple [relayd-only]
506 urcuversion: !!python/tuple [stable-0.9]
507 babelversion: !!python/tuple [stable-1.4]
508 - 'lttng-tools_{version}_{buildtype}':
509 buildtype: build
510 version: stable-2.7
511 ustversion: stable-2.7
512 arch: !!python/tuple [x86-32, x86-64]
513 build: !!python/tuple [std, oot, dist]
514 conf: !!python/tuple [std, no-ust, agents]
515 urcuversion: !!python/tuple [stable-0.9]
516 babelversion: !!python/tuple [stable-1.3]
517 - 'lttng-tools_{version}_{buildtype}':
518 buildtype: portbuild
519 version: stable-2.7
520 ustversion: stable-2.7
521 arch: !!python/tuple [armhf, arm64, powerpc]
522 build: !!python/tuple [std]
523 conf: !!python/tuple [std, no-ust, agents]
524 urcuversion: !!python/tuple [stable-0.9]
525 babelversion: !!python/tuple [stable-1.3]
526 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
527 user: jgalar
528 github_user: jgalar
529 github_name: lttng-tools
530 buildtype: build
531 version: master-staging
532 ustversion: master
533 arch: !!python/tuple [x86-32, x86-64]
534 build: !!python/tuple [std, oot, dist]
535 conf: !!python/tuple [std, no-ust, agents]
536 urcuversion: !!python/tuple [master]
537 babelversion: !!python/tuple [master]
538 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
539 user: jgalar
540 github_user: jgalar
541 github_name: lttng-tools
542 buildtype: build
543 version: stable-2.9-staging
544 ustversion: stable-2.9
545 arch: !!python/tuple [x86-32, x86-64]
546 build: !!python/tuple [std, oot, dist]
547 conf: !!python/tuple [std, no-ust, agents]
548 urcuversion: !!python/tuple [stable-0.9]
549 babelversion: !!python/tuple [stable-1.4]
550 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
551 user: jgalar
552 github_user: jgalar
553 github_name: lttng-tools
554 buildtype: build
555 version: stable-2.8-staging
556 ustversion: stable-2.8
557 arch: !!python/tuple [x86-32, x86-64]
558 build: !!python/tuple [std, oot, dist]
559 conf: !!python/tuple [std, no-ust, agents]
560 urcuversion: !!python/tuple [stable-0.9]
561 babelversion: !!python/tuple [stable-1.4]
562 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
563 user: jgalar
564 github_user: jgalar
565 github_name: lttng-tools
566 buildtype: build
567 version: stable-2.7-staging
568 ustversion: stable-2.7
569 arch: !!python/tuple [x86-32, x86-64]
570 build: !!python/tuple [std, oot, dist]
571 conf: !!python/tuple [std, no-ust, agents]
572 urcuversion: !!python/tuple [stable-0.9]
573 babelversion: !!python/tuple [stable-1.3]
574 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
575 user: jgalar
576 github_user: jgalar
577 github_name: lttng-tools
578 buildtype: portbuild
579 version: master-staging
580 ustversion: master
581 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
582 build: !!python/tuple [std]
583 conf: !!python/tuple [std, no-ust, agents]
584 urcuversion: !!python/tuple [master]
585 babelversion: !!python/tuple [master]
586 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
587 user: jgalar
588 github_user: jgalar
589 github_name: lttng-tools
590 buildtype: portbuild
591 version: stable-2.9-staging
592 ustversion: stable-2.9
593 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
594 build: !!python/tuple [std]
595 conf: !!python/tuple [std, no-ust, agents]
596 urcuversion: !!python/tuple [stable-0.9]
597 babelversion: !!python/tuple [stable-1.4]
598 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
599 user: jgalar
600 github_user: jgalar
601 github_name: lttng-tools
602 buildtype: portbuild
603 version: stable-2.8-staging
604 ustversion: stable-2.8
605 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
606 build: !!python/tuple [std]
607 conf: !!python/tuple [std, no-ust, agents]
608 urcuversion: !!python/tuple [stable-0.9]
609 babelversion: !!python/tuple [stable-1.4]
610 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
611 user: jgalar
612 github_user: jgalar
613 github_name: lttng-tools
614 buildtype: portbuild
615 version: stable-2.7-staging
616 ustversion: stable-2.7
617 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
618 build: !!python/tuple [std]
619 conf: !!python/tuple [std, no-ust, agents]
620 urcuversion: !!python/tuple [stable-0.9]
621 babelversion: !!python/tuple [stable-1.3]
622 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
623 user: jgalar
624 github_user: jgalar
625 github_name: lttng-tools
626 buildtype: macosxbuild
627 version: master-staging
628 ustversion: master
629 arch: !!python/tuple [macosx]
630 build: !!python/tuple [std]
631 conf: !!python/tuple [relayd-only]
632 urcuversion: !!python/tuple [master]
633 babelversion: !!python/tuple [master]
634 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
635 user: jgalar
636 github_user: jgalar
637 github_name: lttng-tools
638 buildtype: solarisbuild
639 version: master-staging
640 ustversion: master
641 arch: !!python/tuple [solaris10, solaris11]
642 build: !!python/tuple [std]
643 conf: !!python/tuple [relayd-only]
644 urcuversion: !!python/tuple [master]
645 babelversion: !!python/tuple [master]
646 - 'lttng-tools_{version}_cppcheck'
647 - 'lttng-tools_{version}_scan-build':
648 version: master
649 urcuversion: master
650 ustversion: master
651 - 'lttng-tools_{version}_scan-build':
652 version: stable-2.9
653 urcuversion: stable-0.9
654 ustversion: stable-2.9
655 - 'lttng-tools_{version}_scan-build':
656 version: stable-2.8
657 urcuversion: stable-0.9
658 ustversion: stable-2.8
659 - 'lttng-tools_{version}_scan-build':
660 version: stable-2.7
661 urcuversion: stable-0.9
662 ustversion: stable-2.7
663 #- 'lttng-tools_{version}_pylint'
664 - 'lttng-tools_{version}_coverity':
665 version: master
666 urcuversion: master
667 ustversion: master
668
This page took 0.04234 seconds and 3 git commands to generate.