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