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