Merge pull request #8 from PSRCode/master
[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: false
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: false
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: false
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: false
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: false
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: false
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: false
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: false
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: false
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: false
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: false
190 filter: 'build/**'
191 target: 'deps/babeltrace'
192 do-not-fingerprint: true
193 - conditional-step:
194 condition-kind: regex-match
195 label: '$conf'
196 regex: debug-rcu
197 on-evaluation-failure: run
198 steps:
199 - copyartifact:
200 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=debug-rcu,build=std
201 which-build: last-successful
202 stable: false
203 filter: 'build/**'
204 target: 'deps/liburcu'
205 do-not-fingerprint: true
206 - copyartifact:
207 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
208 which-build: last-successful
209 stable: false
210 filter: 'build/**'
211 target: 'deps/babeltrace'
212 do-not-fingerprint: true
213 - copyartifact:
214 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=debug-rcu,build=std
215 which-build: last-successful
216 stable: false
217 filter: 'build/**'
218 target: 'deps/lttng-ust'
219 do-not-fingerprint: true
220 - shell:
221 !include-raw-escape: scripts/lttng-tools/build.sh
222
223
224 - job-template:
225 name: lttng-tools_{version}_{buildtype}
226 <<: *lttng-tools_version_buildtype_anchor
227 triggers:
228 - pollscm:
229 cron: "@hourly"
230 - reverse:
231 jobs: 'lttng-ust_{version}_{buildtype}'
232 result: 'success'
233
234 publishers:
235 - tap:
236 results: 'tap/**/*.tap'
237 failed-tests-mark-build-as-failure: true
238 todo-is-failure: false
239 - warnings:
240 console-log-parsers:
241 - 'GNU Make + GNU C Compiler (gcc)'
242 total-thresholds:
243 unstable:
244 total-all: 0
245 total-high: 0
246 total-normal: 0
247 total-low: 0
248 - archive:
249 artifacts: 'build/**'
250 allow-empty: false
251 - workspace-cleanup:
252 clean-if:
253 - failure: false
254 - ircbot:
255 strategy: new-failure-and-fixed
256 matrix-notifier: only-parent
257 channels:
258 - name: '#lttng'
259
260
261 - job-template:
262 name: dev_{user}_lttng-tools_{version}_{buildtype}
263 <<: *lttng-tools_version_buildtype_anchor
264
265 publishers:
266 - tap:
267 results: 'tap/**/*.tap'
268 failed-tests-mark-build-as-failure: true
269 todo-is-failure: false
270 - warnings:
271 console-log-parsers:
272 - 'GNU Make + GNU C Compiler (gcc)'
273 total-thresholds:
274 unstable:
275 total-all: 0
276 total-high: 0
277 total-normal: 0
278 total-low: 0
279 - workspace-cleanup:
280 clean-if:
281 - failure: false
282
283
284 - job-template:
285 name: lttng-tools_{version}_cppcheck
286 defaults: lttng-tools
287
288 triggers:
289 - pollscm:
290 cron: "@daily"
291
292 builders:
293 - shell: |
294 rm -f lttng-tools-cppcheck.xml
295 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
296
297 publishers:
298 - archive:
299 artifacts: 'lttng-tools-cppcheck.xml'
300 allow-empty: false
301 - cppcheck:
302 pattern: 'lttng-tools-cppcheck.xml'
303 - email:
304 recipients: 'ci-notification@lists.lttng.org'
305 notify-every-unstable-build: true
306 send-to-individuals: false
307
308 - job-template:
309 name: lttng-tools_{version}_scan-build
310 defaults: lttng-tools
311 node: 'x86-64'
312
313 triggers:
314 - pollscm:
315 cron: "@daily"
316
317 builders:
318 - copyartifact:
319 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
320 which-build: last-successful
321 stable: false
322 filter: 'build/**'
323 target: 'deps/liburcu'
324 do-not-fingerprint: true
325 - copyartifact:
326 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
327 which-build: last-successful
328 stable: false
329 filter: 'build/**'
330 target: 'deps/lttng-ust'
331 do-not-fingerprint: true
332 - shell:
333 !include-raw-escape: scripts/common/scan-build.sh
334
335 publishers:
336 - html-publisher:
337 name: 'HTML Report'
338 dir: 'scan-build-archive/'
339 files: 'index.html'
340
341 - job-template:
342 name: lttng-tools_{version}_coverity
343 defaults: lttng-tools
344 node: 'x86-64'
345
346 triggers:
347 - pollscm:
348 cron: "@daily"
349
350 wrappers:
351 - workspace-cleanup
352 - timestamps
353 - ansicolor:
354 colormap: xterm
355 - credentials-binding:
356 - username-password-separated:
357 credential-id: lttng-tools_coverity_token
358 username: COVERITY_SCAN_PROJECT_NAME
359 password: COVERITY_SCAN_TOKEN
360
361 builders:
362 - copyartifact:
363 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
364 which-build: last-successful
365 stable: false
366 filter: 'build/**'
367 target: 'deps/liburcu'
368 do-not-fingerprint: true
369 - copyartifact:
370 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
371 which-build: last-successful
372 stable: false
373 filter: 'build/**'
374 target: 'deps/lttng-ust'
375 do-not-fingerprint: true
376 - shell:
377 !include-raw-escape: scripts/common/coverity.sh
378
379 publishers:
380 - workspace-cleanup
381
382 # TODO
383 - job-template:
384 name: lttng-tools_{version}_pylint
385 defaults: lttng-tools
386 node: 'x86-64'
387
388 scm: []
389
390 triggers:
391 - pollscm:
392 cron: "@daily"
393
394 builders:
395 - copyartifact:
396 project: lttng-tools-{version}/arch=x86-64,build=std,conf=agents
397 which-build: last-successful
398 stable: false
399 filter: 'build/**'
400 target: 'deps/lttng-tools'
401 do-not-fingerprint: true
402 - shell:
403 !include-raw-escape: scripts/lttng-tools/pylint.sh
404
405 publishers:
406 - archive:
407 artifacts: 'pep8.out,pylint.out'
408 - violations:
409 pep8:
410 pattern: pep8.out
411 min: 10
412 max: 999
413 unstable: 999
414 pylint:
415 pattern: pylint.out
416 min: 10
417 max: 999
418 unstable: 999
419 - email:
420 recipients: 'ci-notification@lists.lttng.org'
421 notify-every-unstable-build: true
422 send-to-individuals: false
423
424
425 ## Project
426 - project:
427 name: lttng-tools
428 github_user: lttng
429 github_name: lttng-tools
430 version:
431 - stable-2.7
432 - stable-2.8
433 - stable-2.9
434 - master
435 jobs:
436 - 'lttng-tools_{version}_{buildtype}':
437 buildtype: build
438 version: master
439 ustversion: master
440 arch: !!python/tuple [x86-32, x86-64]
441 build: !!python/tuple [std, oot, dist]
442 conf: !!python/tuple [std, no-ust, agents, debug-rcu]
443 urcuversion: !!python/tuple [master]
444 babelversion: !!python/tuple [stable-1.5]
445 - 'lttng-tools_{version}_{buildtype}':
446 buildtype: portbuild
447 version: master
448 ustversion: master
449 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
450 build: !!python/tuple [std]
451 conf: !!python/tuple [std, no-ust, agents]
452 urcuversion: !!python/tuple [master]
453 babelversion: !!python/tuple [stable-1.5]
454 - 'lttng-tools_{version}_{buildtype}':
455 buildtype: macosxbuild
456 version: master
457 ustversion: master
458 arch: !!python/tuple [macosx]
459 build: !!python/tuple [std]
460 conf: !!python/tuple [relayd-only]
461 urcuversion: !!python/tuple [master]
462 babelversion: !!python/tuple [stable-1.5]
463 - 'lttng-tools_{version}_{buildtype}':
464 buildtype: macosxbuild
465 version: stable-2.9
466 ustversion: stable-2.9
467 arch: !!python/tuple [macosx]
468 build: !!python/tuple [std]
469 conf: !!python/tuple [relayd-only]
470 urcuversion: !!python/tuple [stable-0.9]
471 babelversion: !!python/tuple [stable-1.5]
472 - 'lttng-tools_{version}_{buildtype}':
473 buildtype: solarisbuild
474 version: master
475 ustversion: master
476 arch: !!python/tuple [solaris10, solaris11]
477 build: !!python/tuple [std]
478 conf: !!python/tuple [relayd-only]
479 urcuversion: !!python/tuple [master]
480 babelversion: !!python/tuple [stable-1.5]
481 - 'lttng-tools_{version}_{buildtype}':
482 buildtype: build
483 version: stable-2.9
484 ustversion: stable-2.9
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.5]
490 - 'lttng-tools_{version}_{buildtype}':
491 buildtype: portbuild
492 version: stable-2.9
493 ustversion: stable-2.9
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.5]
499 - 'lttng-tools_{version}_{buildtype}':
500 buildtype: solarisbuild
501 version: stable-2.9
502 ustversion: stable-2.9
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.5]
508 - 'lttng-tools_{version}_{buildtype}':
509 buildtype: build
510 version: stable-2.8
511 ustversion: stable-2.8
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.4]
517 - 'lttng-tools_{version}_{buildtype}':
518 buildtype: portbuild
519 version: stable-2.8
520 ustversion: stable-2.8
521 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
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.4]
526 - 'lttng-tools_{version}_{buildtype}':
527 buildtype: solarisbuild
528 version: stable-2.8
529 ustversion: stable-2.8
530 arch: !!python/tuple [solaris10, solaris11]
531 build: !!python/tuple [std]
532 conf: !!python/tuple [relayd-only]
533 urcuversion: !!python/tuple [stable-0.9]
534 babelversion: !!python/tuple [stable-1.4]
535 - 'lttng-tools_{version}_{buildtype}':
536 buildtype: build
537 version: stable-2.7
538 ustversion: stable-2.7
539 arch: !!python/tuple [x86-32, x86-64]
540 build: !!python/tuple [std, oot, dist]
541 conf: !!python/tuple [std, no-ust, agents]
542 urcuversion: !!python/tuple [stable-0.9]
543 babelversion: !!python/tuple [stable-1.3]
544 - 'lttng-tools_{version}_{buildtype}':
545 buildtype: portbuild
546 version: stable-2.7
547 ustversion: stable-2.7
548 arch: !!python/tuple [armhf, arm64, powerpc]
549 build: !!python/tuple [std]
550 conf: !!python/tuple [std, no-ust, agents]
551 urcuversion: !!python/tuple [stable-0.9]
552 babelversion: !!python/tuple [stable-1.3]
553 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
554 user: jgalar
555 github_user: jgalar
556 github_name: lttng-tools
557 buildtype: build
558 version: master-staging
559 ustversion: master
560 arch: !!python/tuple [x86-32, x86-64]
561 build: !!python/tuple [std, oot, dist]
562 conf: !!python/tuple [std, no-ust, agents]
563 urcuversion: !!python/tuple [master]
564 babelversion: !!python/tuple [stable-1.5]
565 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
566 user: jgalar
567 github_user: jgalar
568 github_name: lttng-tools
569 buildtype: build
570 version: stable-2.9-staging
571 ustversion: stable-2.9
572 arch: !!python/tuple [x86-32, x86-64]
573 build: !!python/tuple [std, oot, dist]
574 conf: !!python/tuple [std, no-ust, agents]
575 urcuversion: !!python/tuple [stable-0.9]
576 babelversion: !!python/tuple [stable-1.5]
577 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
578 user: jgalar
579 github_user: jgalar
580 github_name: lttng-tools
581 buildtype: build
582 version: stable-2.8-staging
583 ustversion: stable-2.8
584 arch: !!python/tuple [x86-32, x86-64]
585 build: !!python/tuple [std, oot, dist]
586 conf: !!python/tuple [std, no-ust, agents]
587 urcuversion: !!python/tuple [stable-0.9]
588 babelversion: !!python/tuple [stable-1.4]
589 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
590 user: jgalar
591 github_user: jgalar
592 github_name: lttng-tools
593 buildtype: build
594 version: stable-2.7-staging
595 ustversion: stable-2.7
596 arch: !!python/tuple [x86-32, x86-64]
597 build: !!python/tuple [std, oot, dist]
598 conf: !!python/tuple [std, no-ust, agents]
599 urcuversion: !!python/tuple [stable-0.9]
600 babelversion: !!python/tuple [stable-1.3]
601 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
602 user: jgalar
603 github_user: jgalar
604 github_name: lttng-tools
605 buildtype: portbuild
606 version: master-staging
607 ustversion: master
608 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
609 build: !!python/tuple [std]
610 conf: !!python/tuple [std, no-ust, agents]
611 urcuversion: !!python/tuple [master]
612 babelversion: !!python/tuple [stable-1.5]
613 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
614 user: jgalar
615 github_user: jgalar
616 github_name: lttng-tools
617 buildtype: portbuild
618 version: stable-2.9-staging
619 ustversion: stable-2.9
620 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
621 build: !!python/tuple [std]
622 conf: !!python/tuple [std, no-ust, agents]
623 urcuversion: !!python/tuple [stable-0.9]
624 babelversion: !!python/tuple [stable-1.5]
625 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
626 user: jgalar
627 github_user: jgalar
628 github_name: lttng-tools
629 buildtype: portbuild
630 version: stable-2.8-staging
631 ustversion: stable-2.8
632 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
633 build: !!python/tuple [std]
634 conf: !!python/tuple [std, no-ust, agents]
635 urcuversion: !!python/tuple [stable-0.9]
636 babelversion: !!python/tuple [stable-1.4]
637 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
638 user: jgalar
639 github_user: jgalar
640 github_name: lttng-tools
641 buildtype: portbuild
642 version: stable-2.7-staging
643 ustversion: stable-2.7
644 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
645 build: !!python/tuple [std]
646 conf: !!python/tuple [std, no-ust, agents]
647 urcuversion: !!python/tuple [stable-0.9]
648 babelversion: !!python/tuple [stable-1.3]
649 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
650 user: jgalar
651 github_user: jgalar
652 github_name: lttng-tools
653 buildtype: macosxbuild
654 version: master-staging
655 ustversion: master
656 arch: !!python/tuple [macosx]
657 build: !!python/tuple [std]
658 conf: !!python/tuple [relayd-only]
659 urcuversion: !!python/tuple [master]
660 babelversion: !!python/tuple [stable-1.5]
661 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
662 user: jgalar
663 github_user: jgalar
664 github_name: lttng-tools
665 buildtype: solarisbuild
666 version: master-staging
667 ustversion: master
668 arch: !!python/tuple [solaris10, solaris11]
669 build: !!python/tuple [std]
670 conf: !!python/tuple [relayd-only]
671 urcuversion: !!python/tuple [master]
672 babelversion: !!python/tuple [stable-1.5]
673 - 'lttng-tools_{version}_cppcheck'
674 - 'lttng-tools_{version}_scan-build':
675 version: master
676 urcuversion: master
677 ustversion: master
678 - 'lttng-tools_{version}_scan-build':
679 version: stable-2.9
680 urcuversion: stable-0.9
681 ustversion: stable-2.9
682 - 'lttng-tools_{version}_scan-build':
683 version: stable-2.8
684 urcuversion: stable-0.9
685 ustversion: stable-2.8
686 - 'lttng-tools_{version}_scan-build':
687 version: stable-2.7
688 urcuversion: stable-0.9
689 ustversion: stable-2.7
690 #- 'lttng-tools_{version}_pylint'
691 - 'lttng-tools_{version}_coverity':
692 version: master
693 urcuversion: master
694 ustversion: master
695
This page took 0.042744 seconds and 5 git commands to generate.