jjb: babeltrace: Drop stable-1.3 jobs
[lttng-ci.git] / jobs / babeltrace.yaml
1 - defaults:
2 name: babeltrace
3 description: |
4 The Babeltrace project provides trace read and write libraries, as well
5 as a trace converter. Plugins can be created for any trace format to
6 allow its conversion to/from another trace format.
7
8 The main format expected to be converted to/from is the Common Trace
9 Format (CTF). The default input format of the "babeltrace" command is
10 CTF, and its default output format is a human-readable text log. The
11 "babeltrace-log" command converts from a text log to a CTF trace.
12
13 <p>Job is managed by Jenkins Job Builder.</p>
14
15 project-type: freestyle
16
17 wrappers:
18 - ansicolor
19 - timeout:
20 timeout: 20
21 fail: true
22 type: no-activity
23 - timestamps
24 - workspace-cleanup:
25 clean-if:
26 - failure: false
27
28 scm:
29 - git:
30 url: git://github.com/{github_user}/{github_name}.git
31 browser: githubweb
32 browser-url: https://github.com/{github_user}/{github_name}
33 branches:
34 - origin/{version}
35 basedir: src/babeltrace
36 skip-tag: true
37
38 triggers:
39 - pollscm:
40 cron: "@hourly"
41
42 properties:
43 - inject:
44 properties-content: |
45 PROJECT_NAME=babeltrace
46 - build-discarder:
47 num-to-keep: 2
48 - github:
49 url: https://github.com/{github_user}/{github_name}
50
51
52 ## Anchors
53 - babeltrace_build_axes_defaults: &babeltrace_build_axes_defaults
54 name: 'babeltrace_build_axes_defaults'
55 project-type: matrix
56 node: 'master' # Applies only to matrix flyweight task
57 axes:
58 - axis:
59 type: slave
60 name: arch
61 values: '{obj:arch}'
62 - axis:
63 type: user-defined
64 name: conf
65 values: '{obj:conf}'
66 - axis:
67 type: user-defined
68 name: build
69 values: '{obj:build}'
70
71 - babeltrace_build_axes_cc: &babeltrace_build_axes_cc
72 name: 'babeltrace_build_axes_cc'
73 project-type: matrix
74 node: 'master' # Applies only to matrix flyweight task
75 axes:
76 - axis:
77 type: slave
78 name: arch
79 values: '{obj:arch}'
80 - axis:
81 type: user-defined
82 name: conf
83 values: '{obj:conf}'
84 - axis:
85 type: user-defined
86 name: build
87 values: '{obj:build}'
88 - axis:
89 type: user-defined
90 name: cc
91 values: '{obj:cc}'
92
93 - babeltrace_build_builders_defaults: &babeltrace_build_builders_defaults
94 name: 'babeltrace_build_builders_defaults'
95 builders:
96 - shell:
97 !include-raw-escape: scripts/babeltrace/build.sh
98
99 - babeltrace_build_builders_win: &babeltrace_build_builders_win
100 name: 'babeltrace_build_builders_win'
101 builders:
102 - conditional-step:
103 condition-kind: strings-match
104 on-evaluation-failure: run
105 condition-string1: '${{arch}}'
106 condition-string2: 'cygwin64'
107 steps:
108 - shell:
109 !include-raw-escape:
110 - scripts/common/cygwin64-shebang
111 - scripts/common/cygpath-prefix
112 - scripts/babeltrace/build.sh
113 - conditional-step:
114 condition-kind: strings-match
115 on-evaluation-failure: run
116 condition-string1: '${{arch}}'
117 condition-string2: 'msys2-mingw32'
118 steps:
119 - inject:
120 properties-content: 'MSYSTEM=MINGW32'
121 - shell:
122 !include-raw-escape:
123 - scripts/common/msys2-shebang
124 - scripts/common/cygpath-prefix
125 - scripts/babeltrace/build.sh
126 - conditional-step:
127 condition-kind: strings-match
128 on-evaluation-failure: run
129 condition-string1: '${{arch}}'
130 condition-string2: 'msys2-mingw64'
131 steps:
132 - inject:
133 properties-content: 'MSYSTEM=MINGW64'
134 - shell:
135 !include-raw-escape:
136 - scripts/common/msys2-shebang
137 - scripts/common/cygpath-prefix
138 - scripts/babeltrace/build.sh
139
140
141 - babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev
142 name: 'babeltrace_build_publishers_dev'
143 publishers:
144 - tap:
145 results: 'tap/**/*.log'
146 fail-if-no-results: true
147 failed-tests-mark-build-as-failure: true
148 todo-is-failure: false
149 - warnings:
150 console-log-parsers:
151 - 'GNU Make + GNU C Compiler (gcc)'
152 total-thresholds:
153 unstable:
154 total-all: 0
155 total-high: 0
156 total-normal: 0
157 total-low: 0
158 - archive:
159 artifacts: 'tap/**'
160 allow-empty: false
161 - email-ext:
162 recipients: '{obj:email_to}'
163 always: false
164 unstable: false
165 first-failure: true
166 first-unstable: true
167 not-built: false
168 aborted: false
169 regression: false
170 failure: false
171 second-failure: false
172 improvement: false
173 still-failing: false
174 success: false
175 fixed: false
176 fixed-unhealthy: true
177 still-unstable: false
178 pre-build: false
179 matrix-trigger: only-parent
180 send-to:
181 - recipients
182
183
184 - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod
185 name: 'babeltrace_build_publishers_prod'
186 publishers:
187 - tap:
188 results: 'tap/**/*.log'
189 fail-if-no-results: true
190 failed-tests-mark-build-as-failure: true
191 todo-is-failure: false
192 - warnings:
193 console-log-parsers:
194 - 'GNU Make + GNU C Compiler (gcc)'
195 total-thresholds:
196 unstable:
197 total-all: 0
198 total-high: 0
199 total-normal: 0
200 total-low: 0
201 - archive:
202 artifacts: 'build/**,tap/**'
203 allow-empty: false
204 - email-ext:
205 recipients: '{obj:email_to}'
206 reply-to: ci-notification@lists.lttng.org
207 always: false
208 unstable: false
209 first-failure: true
210 first-unstable: true
211 not-built: false
212 aborted: false
213 regression: false
214 failure: false
215 second-failure: false
216 improvement: false
217 still-failing: false
218 success: false
219 fixed: false
220 fixed-unhealthy: true
221 still-unstable: false
222 pre-build: false
223 matrix-trigger: only-parent
224 send-to:
225 - recipients
226
227 - babeltrace_build_publishers_gerrit: &babeltrace_build_publishers_gerrit
228 name: 'babeltrace_build_publishers_gerrit'
229 publishers:
230 - tap:
231 results: 'tap/**/*.log'
232 fail-if-no-results: true
233 failed-tests-mark-build-as-failure: true
234 todo-is-failure: false
235 - warnings:
236 console-log-parsers:
237 - 'GNU Make + GNU C Compiler (gcc)'
238 total-thresholds:
239 failed:
240 total-all: 0
241 total-high: 0
242 total-normal: 0
243 total-low: 0
244 - archive:
245 artifacts: 'build/**,tap/**'
246 allow-empty: false
247
248
249 ## Templates
250
251 - job-template:
252 name: babeltrace_{version}_{buildtype}
253 defaults: babeltrace
254
255 <<: *babeltrace_build_axes_defaults
256 <<: *babeltrace_build_builders_defaults
257 <<: *babeltrace_build_publishers_prod
258
259 - job-template:
260 name: babeltrace_{version}_{cctype}
261 defaults: babeltrace
262
263 <<: *babeltrace_build_axes_cc
264 <<: *babeltrace_build_builders_defaults
265 <<: *babeltrace_build_publishers_prod
266
267 - job-template:
268 name: babeltrace_{version}_winbuild
269 defaults: babeltrace
270
271 <<: *babeltrace_build_axes_defaults
272 <<: *babeltrace_build_builders_win
273 <<: *babeltrace_build_publishers_prod
274
275 - job-template:
276 name: dev_{user}_babeltrace_{version}_{buildtype}
277 defaults: babeltrace
278
279 <<: *babeltrace_build_axes_defaults
280 <<: *babeltrace_build_builders_defaults
281 <<: *babeltrace_build_publishers_dev
282
283 - job-template:
284 name: dev_gerrit_babeltrace_{buildtype}
285 defaults: babeltrace
286 concurrent: true
287
288 scm:
289 - git:
290 url: https://review.lttng.org/babeltrace
291 refspec: 'refs/changes/*:refs/changes/*'
292 branches:
293 - '$GERRIT_REFSPEC'
294 basedir: src/babeltrace
295 skip-tag: true
296
297 triggers:
298 - gerrit:
299 trigger-on:
300 - comment-added-event:
301 approval-category: 'CI-Build'
302 approval-value: 1
303 projects:
304 - project-compare-type: 'PLAIN'
305 project-pattern: 'babeltrace'
306 branches:
307 - branch-compare-type: 'ANT'
308 branch-pattern: '**'
309 trigger-for-unreviewed-patches: true
310
311 project-type: matrix
312 node: 'master' # Applies only to matrix flyweight task
313 execution-strategy:
314 combination-filter: |
315 {filter}
316 axes:
317 - axis:
318 type: slave
319 name: arch
320 values: '{obj:arch}'
321 - axis:
322 type: user-defined
323 name: conf
324 values: '{obj:conf}'
325 - axis:
326 type: user-defined
327 name: build
328 values: '{obj:build}'
329
330 <<: *babeltrace_build_builders_defaults
331 <<: *babeltrace_build_publishers_gerrit
332
333 properties:
334 - inject:
335 properties-content: |
336 PROJECT_NAME=babeltrace
337 - build-discarder:
338 days-to-keep: 1
339 - throttle:
340 option: 'category'
341 categories:
342 - 'gerrit-{buildtype}'
343
344 - job-template:
345 name: dev_gerrit_babeltrace_winbuild
346 defaults: babeltrace
347 concurrent: true
348
349 scm:
350 - git:
351 url: https://review.lttng.org/babeltrace
352 refspec: 'refs/changes/*:refs/changes/*'
353 branches:
354 - '$GERRIT_REFSPEC'
355 basedir: src/babeltrace
356 skip-tag: true
357
358 triggers:
359 - gerrit:
360 trigger-on:
361 - comment-added-event:
362 approval-category: 'CI-Build'
363 approval-value: 1
364 projects:
365 - project-compare-type: 'PLAIN'
366 project-pattern: 'babeltrace'
367 branches:
368 - branch-compare-type: 'ANT'
369 branch-pattern: '**'
370 trigger-for-unreviewed-patches: true
371
372 properties:
373 - inject:
374 properties-content: |
375 PROJECT_NAME=babeltrace
376 - build-discarder:
377 days-to-keep: 1
378 - throttle:
379 option: 'category'
380 categories:
381 - 'gerrit-winbuild'
382
383 <<: *babeltrace_build_axes_defaults
384 <<: *babeltrace_build_builders_win
385 <<: *babeltrace_build_publishers_gerrit
386
387 - job-template:
388 name: dev_gerrit_babeltrace_pylint
389 defaults: babeltrace
390 concurrent: true
391
392 scm:
393 - git:
394 url: https://review.lttng.org/babeltrace
395 refspec: 'refs/changes/*:refs/changes/*'
396 branches:
397 - '$GERRIT_REFSPEC'
398 basedir: src/babeltrace
399 skip-tag: true
400
401 triggers:
402 - gerrit:
403 trigger-on:
404 - comment-added-event:
405 approval-category: 'CI-Build'
406 approval-value: 1
407 projects:
408 - project-compare-type: 'PLAIN'
409 project-pattern: 'babeltrace'
410 branches:
411 - branch-compare-type: 'ANT'
412 branch-pattern: '**'
413 trigger-for-unreviewed-patches: true
414
415 node: 'amd64'
416
417 builders:
418 - shell:
419 !include-raw-escape: scripts/babeltrace/pylint.sh
420
421 properties:
422 - inject:
423 properties-content: |
424 PROJECT_NAME=babeltrace
425 - build-discarder:
426 days-to-keep: 1
427
428 - job-template:
429 name: babeltrace_{version}_cppcheck
430 defaults: babeltrace
431
432 triggers:
433 - pollscm:
434 cron: "@daily"
435
436 builders:
437 - shell: |
438 rm -f cppcheck-result.xml
439 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
440
441 publishers:
442 - archive:
443 artifacts: 'cppcheck-result.xml'
444 allow-empty: false
445 - cppcheck:
446 pattern: 'cppcheck-result.xml'
447
448 - job-template:
449 name: babeltrace_{version}_scan-build
450 defaults: babeltrace
451 node: 'amd64'
452
453 triggers:
454 - pollscm:
455 cron: "@daily"
456
457 builders:
458 - shell:
459 !include-raw-escape: scripts/common/scan-build.sh
460
461 publishers:
462 - html-publisher:
463 name: 'HTML Report'
464 dir: 'scan-build-archive/'
465 files: 'index.html'
466
467 - job-template:
468 name: babeltrace_{version}_coverity
469 defaults: babeltrace
470 node: 'amd64'
471
472 triggers:
473 - pollscm:
474 cron: "@daily"
475
476 wrappers:
477 - workspace-cleanup
478 - timestamps
479 - ansicolor:
480 colormap: xterm
481 - credentials-binding:
482 - username-password-separated:
483 credential-id: babeltrace_coverity_token
484 username: COVERITY_SCAN_PROJECT_NAME
485 password: COVERITY_SCAN_TOKEN
486 builders:
487 - shell:
488 !include-raw-escape: scripts/common/coverity.sh
489
490 publishers:
491 - workspace-cleanup
492 - archive:
493 artifacts: 'analysis-results.tgz,cov-int/**'
494 allow-empty: false
495
496 - job-template:
497 name: babeltrace_{version}_pylint
498 defaults: babeltrace
499 node: 'amd64'
500
501 triggers:
502 - pollscm:
503 cron: "@daily"
504
505 builders:
506 - shell:
507 !include-raw-escape: scripts/babeltrace/pylint.sh
508
509 publishers:
510 - archive:
511 artifacts: 'black.out,flake8.out'
512 - email-ext:
513 recipients: '{obj:email_to}'
514 reply-to: ci-notification@lists.lttng.org
515 always: false
516 unstable: false
517 first-failure: true
518 first-unstable: true
519 not-built: false
520 aborted: false
521 regression: false
522 failure: false
523 second-failure: false
524 improvement: false
525 still-failing: false
526 success: false
527 fixed: false
528 fixed-unhealthy: true
529 still-unstable: false
530 pre-build: false
531 matrix-trigger: only-parent
532 send-to:
533 - recipients
534
535 # Use - in version number since yaml anchor do not support dot
536 - babeltrace_version_glib-2-28-6_anchor: &babeltrace_version_glib-2-28-6_anchor
537 name: 'babeltrace_version_glib_anchor'
538 defaults: babeltrace
539 node: 'amd64'
540
541 builders:
542 - inject:
543 properties-content: |
544 LD_LIBRARY_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib
545 PKG_CONFIG_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib/pkgconfig
546 arch=amd64
547 conf=std
548 build=std
549 - shell: |
550 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz
551 tar xvf glib-2.28.6.tar.gz
552 cd glib-2.28.6
553 mkdir BUILD_RESULT
554 ./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
555 make -j `nproc`
556 make install
557
558 - shell:
559 !include-raw-escape: scripts/babeltrace/build.sh
560
561 - job-template:
562 name: babeltrace_{version}_glib-2.28.6
563 triggers:
564 - pollscm:
565 cron: "@daily"
566 <<: *babeltrace_version_glib-2-28-6_anchor
567 publishers:
568 - archive:
569 artifacts: 'tap/**'
570 allow-empty: false
571 - email-ext:
572 recipients: '{obj:email_to}'
573 reply-to: ci-notification@lists.lttng.org
574 always: false
575 unstable: false
576 first-failure: true
577 first-unstable: true
578 not-built: false
579 aborted: false
580 regression: false
581 failure: false
582 second-failure: false
583 improvement: false
584 still-failing: false
585 success: false
586 fixed: false
587 fixed-unhealthy: true
588 still-unstable: false
589 pre-build: false
590 matrix-trigger: only-parent
591 send-to:
592 - recipients
593
594 - job-template:
595 name: dev_{user}_babeltrace_{version}_glib-2.28.6
596 <<: *babeltrace_version_glib-2-28-6_anchor
597
598 publishers:
599 - email-ext:
600 recipients: '{obj:email_to}'
601 reply-to: ci-notification@lists.lttng.org
602 always: false
603 unstable: false
604 first-failure: true
605 first-unstable: true
606 not-built: false
607 aborted: false
608 regression: false
609 failure: false
610 second-failure: false
611 improvement: false
612 still-failing: false
613 success: false
614 fixed: false
615 fixed-unhealthy: true
616 still-unstable: false
617 pre-build: false
618 matrix-trigger: only-parent
619 send-to:
620 - recipients
621
622
623 ## Views
624 - view-template:
625 name: 'Babeltrace'
626 view-type: list
627 regex: 'babeltrace[-_].*'
628
629
630 ## Projects
631 - project:
632 name: babeltrace1
633 github_user: efficios
634 github_name: babeltrace
635 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
636 version:
637 - stable-1.5
638 jobs:
639 - 'babeltrace_{version}_{buildtype}':
640 buildtype: build
641 arch: !!python/tuple [amd64]
642 build: !!python/tuple [std, oot, dist, oot-dist]
643 conf: !!python/tuple [std, static, python-bindings]
644 - 'babeltrace_{version}_{buildtype}':
645 buildtype: portbuild
646 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
647 build: !!python/tuple [std]
648 conf: !!python/tuple [std, python-bindings]
649 - 'babeltrace_{version}_{buildtype}':
650 buildtype: slesbuild
651 arch: !!python/tuple [sles12sp2]
652 build: !!python/tuple [std]
653 conf: !!python/tuple [std]
654 - 'babeltrace_{version}_{buildtype}':
655 buildtype: elbuild
656 arch: !!python/tuple [el8]
657 build: !!python/tuple [std]
658 conf: !!python/tuple [std]
659 - 'babeltrace_{version}_{buildtype}':
660 buildtype: solarisbuild
661 arch: !!python/tuple [sol10-i386, sol11-i386]
662 build: !!python/tuple [std]
663 conf: !!python/tuple [std, static]
664 - 'babeltrace_{version}_{buildtype}':
665 buildtype: macosxbuild
666 arch: !!python/tuple [macosx]
667 build: !!python/tuple [std]
668 conf: !!python/tuple [std]
669 - 'babeltrace_{version}_{cctype}':
670 cctype: clangbuild
671 arch: !!python/tuple [amd64]
672 build: !!python/tuple [std]
673 conf: !!python/tuple [std, static]
674 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
675 - 'babeltrace_{version}_winbuild':
676 arch: !!python/tuple [cygwin64]
677 build: !!python/tuple [std]
678 conf: !!python/tuple [std]
679 - 'babeltrace_{version}_cppcheck'
680 - 'babeltrace_{version}_scan-build'
681
682 - project:
683 name: babeltrace2
684 github_user: efficios
685 github_name: babeltrace
686 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
687 version:
688 - stable-2.0
689 - master
690 jobs:
691 - 'babeltrace_{version}_{buildtype}':
692 buildtype: build
693 arch: !!python/tuple [amd64]
694 build: !!python/tuple [std, oot, dist, oot-dist]
695 conf: !!python/tuple [std, static, prod, min]
696 - 'babeltrace_{version}_{buildtype}':
697 buildtype: portbuild
698 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
699 build: !!python/tuple [std]
700 conf: !!python/tuple [std, prod]
701 - 'babeltrace_{version}_{buildtype}':
702 buildtype: slesbuild
703 arch: !!python/tuple [sles12sp2]
704 build: !!python/tuple [std]
705 conf: !!python/tuple [std, prod]
706 - 'babeltrace_{version}_{buildtype}':
707 buildtype: elbuild
708 arch: !!python/tuple [el8]
709 build: !!python/tuple [std]
710 conf: !!python/tuple [std, prod]
711 - 'babeltrace_{version}_{buildtype}':
712 buildtype: macosxbuild
713 arch: !!python/tuple [macosx]
714 build: !!python/tuple [std]
715 conf: !!python/tuple [std, prod]
716 - 'babeltrace_{version}_{cctype}':
717 cctype: clangbuild
718 arch: !!python/tuple [amd64]
719 build: !!python/tuple [std]
720 conf: !!python/tuple [std, static, prod]
721 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
722 - 'babeltrace_{version}_winbuild':
723 arch: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
724 build: !!python/tuple [std]
725 conf: !!python/tuple [std]
726 - 'babeltrace_{version}_cppcheck'
727 - 'babeltrace_{version}_scan-build'
728 - 'babeltrace_{version}_pylint'
729 - 'babeltrace_{version}_coverity':
730 version: master
731 - 'babeltrace_{version}_glib-2.28.6':
732 version: master
733
734 - project:
735 name: gerrit-babeltrace
736 github_user: efficios
737 github_name: babeltrace
738 jobs:
739 - 'dev_gerrit_babeltrace_{buildtype}':
740 buildtype: build
741 arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
742 build: !!python/tuple [std, oot, dist, oot-dist]
743 conf: !!python/tuple [std, static, prod, min]
744 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
745 - 'dev_gerrit_babeltrace_{buildtype}':
746 buildtype: macosxbuild
747 arch: !!python/tuple [macosx]
748 build: !!python/tuple [std]
749 conf: !!python/tuple [std, prod]
750 filter: ''
751 - 'dev_gerrit_babeltrace_winbuild':
752 arch: !!python/tuple [cygwin64, msys2-mingw64]
753 build: !!python/tuple [std]
754 conf: !!python/tuple [std]
755 - 'dev_gerrit_babeltrace_pylint'
756
757
758 - project:
759 name: babeltrace-jgalar-staging
760 user: jgalar
761 github_user: jgalar
762 github_name: babeltrace
763 email_to: "jgalar@efficios.com"
764 version:
765 - stable-1.5-staging
766 jobs:
767 - 'dev_{user}_babeltrace_{version}_{buildtype}':
768 buildtype: build
769 arch: !!python/tuple [amd64]
770 build: !!python/tuple [std, oot, dist, oot-dist]
771 conf: !!python/tuple [std, static, python-bindings]
772 - 'dev_{user}_babeltrace_{version}_{buildtype}':
773 buildtype: macosxbuild
774 arch: !!python/tuple [macosx]
775 build: !!python/tuple [std]
776 conf: !!python/tuple [std]
777
778
779 - project:
780 name: babeltrace2-jgalar-staging
781 user: jgalar
782 github_user: jgalar
783 github_name: babeltrace
784 email_to: "jgalar@efficios.com"
785 version:
786 - stable-2.0-staging
787 - master-staging
788 jobs:
789 - 'dev_{user}_babeltrace_{version}_glib-2.28.6':
790 version:
791 - master-staging
792 - 'dev_{user}_babeltrace_{version}_{buildtype}':
793 buildtype: build
794 arch: !!python/tuple [amd64]
795 build: !!python/tuple [std, oot, dist, oot-dist]
796 conf: !!python/tuple [std, static, prod, min]
797 - 'dev_{user}_babeltrace_{version}_{buildtype}':
798 buildtype: macosxbuild
799 arch: !!python/tuple [macosx]
800 build: !!python/tuple [std]
801 conf: !!python/tuple [std, prod]
802
803 - project:
804 name: babeltrace-views
805 views:
806 - Babeltrace
This page took 0.04557 seconds and 5 git commands to generate.