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.
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.
13 <p>Job is managed by Jenkins Job Builder.</p>
15 project-type: freestyle
18 - ansicolor: &babeltrace_wrapper_ansicolor_defaults
20 - timeout: &babeltrace_wrapper_timeout_defaults
24 write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>"
29 - git: &babeltrace_scm_git_default
30 url: https://github.com/{github_user}/{github_name}.git
32 browser-url: https://github.com/{github_user}/{github_name}
35 basedir: src/babeltrace
45 PROJECT_NAME=babeltrace
48 artifact-num-to-keep: 2
50 url: https://github.com/{github_user}/{github_name}
54 - job-template: &babeltrace_matrix_axes_defaults
55 name: 'babeltrace_matrix_axes_defaults'
57 node: 'master' # Applies only to matrix flyweight task
59 combination-filter: '{filter}'
64 - axis: &babeltrace_matrix_axis_platform
67 values: '{obj:platforms}'
68 - axis: &babeltrace_matrix_axis_conf
72 - axis: &babeltrace_matrix_axis_build
75 values: '{obj:builds}'
77 - job-template: &babeltrace_matrix_axes_cc
78 name: 'babeltrace_matrix_axes_cc'
80 <<: *babeltrace_matrix_axes_defaults
83 - axis: *babeltrace_matrix_axis_platform
84 - axis: *babeltrace_matrix_axis_conf
85 - axis: *babeltrace_matrix_axis_build
86 - axis: &babeltrace_matrix_axis_cc
91 - job-template: &babeltrace_builders_defaults
92 name: 'babeltrace_builders_defaults'
95 {% if buildtype is defined and buildtype == 'winbuild' %}
97 condition-kind: strings-match
98 on-evaluation-failure: run
99 condition-string1: {{ '${{platform}}' }}
100 condition-string2: 'cygwin64'
104 - scripts/common/cygwin64-shebang
105 - scripts/common/cygpath-prefix
106 - scripts/common/print.sh
107 - scripts/babeltrace/build.sh
109 condition-kind: strings-match
110 on-evaluation-failure: run
111 condition-string1: {{ '${{platform}}' }}
112 condition-string2: 'msys2-mingw32'
115 properties-content: 'MSYSTEM=MINGW32'
118 - scripts/common/msys2-shebang
119 - scripts/common/cygpath-prefix
120 - scripts/common/print.sh
121 - scripts/babeltrace/build.sh
123 condition-kind: strings-match
124 on-evaluation-failure: run
125 condition-string1: {{ '${{platform}}' }}
126 condition-string2: 'msys2-mingw64'
129 properties-content: 'MSYSTEM=MINGW64'
132 - scripts/common/msys2-shebang
133 - scripts/common/cygpath-prefix
134 - scripts/common/print.sh
135 - scripts/babeltrace/build.sh
139 - scripts/common/print.sh
140 - scripts/babeltrace/build.sh
143 # Use - in version number since yaml anchor do not support dot
144 - job-template: &babeltrace_builders_glib-2-28-6
145 name: 'babeltrace_builders_glib-2-28-6'
148 properties-content: |
149 LD_LIBRARY_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib
150 PKG_CONFIG_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib/pkgconfig
155 curl -OL 'https://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz'
156 tar xf glib-2.28.6.tar.gz
158 sed -i 's/sys\/types\.h/sys\/sysmacros\.h/' gio/gdbusmessage.c # Fix build failure with recent glibc
160 ./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
161 make -j `nproc` >/dev/null 2>&1 # Hide warnings
165 - scripts/common/print.sh
166 - scripts/babeltrace/build.sh
168 - job-template: &babeltrace_publishers_defaults
169 name: 'babeltrace_publishers_defaults'
171 - tap: &babeltrace_publisher_tap_defaults
172 results: 'tap/**/*.log'
173 fail-if-no-results: true
174 failed-tests-mark-build-as-failure: true
175 include-comment-diagnostics: true
176 output-tap-to-console: false
177 todo-is-failure: false
178 - raw: &babeltrace_publisher_warnings-ng_defaults
180 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
182 <io.jenkins.plugins.analysis.warnings.Gcc4>
185 <jenkins plugin="plugin-util-api"/>
188 <skipSymbolicLinks>false</skipSymbolicLinks>
189 </io.jenkins.plugins.analysis.warnings.Gcc4>
191 <sourceCodeEncoding/>
194 <ignoreQualityGate>false</ignoreQualityGate>
195 <ignoreFailedBuilds>true</ignoreFailedBuilds>
196 <failOnError>false</failOnError>
198 <unhealthy>0</unhealthy>
199 <minimumSeverity plugin="analysis-model-api">
203 <isEnabledForFailure>true</isEnabledForFailure>
204 <isAggregatingResults>true</isAggregatingResults>
205 <isBlameDisabled>false</isBlameDisabled>
206 <skipPublishingChecks>true</skipPublishingChecks>
207 <publishAllIssues>false</publishAllIssues>
209 <io.jenkins.plugins.analysis.core.util.QualityGate>
210 <threshold>1</threshold>
212 <status>WARNING</status>
213 </io.jenkins.plugins.analysis.core.util.QualityGate>
215 <trendChartType>AGGREGATION_TOOLS</trendChartType>
217 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
218 - archive: &babeltrace_publisher_archive_defaults
219 artifacts: 'build/**,tap/**,log/**'
220 follow-symlinks: true
222 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
225 - ircbot: &babeltrace_publisher_ircbot_defaults
226 strategy: statechange-only
227 message-type: summary
228 matrix-notifier: only-parent
229 - email-ext: &babeltrace_publisher_email-ext_defaults
230 recipients: '{obj:email_to}'
231 reply-to: ci-notification@lists.lttng.org
240 second-failure: false
245 fixed-unhealthy: true
246 still-unstable: false
248 matrix-trigger: only-parent
252 - job-template: &babeltrace_publishers_review
253 name: 'babeltrace_publishers_review'
255 - tap: *babeltrace_publisher_tap_defaults
256 # Fail job on any compiler warnings
259 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
261 <io.jenkins.plugins.analysis.warnings.Gcc4>
264 <jenkins plugin="plugin-util-api"/>
267 <skipSymbolicLinks>false</skipSymbolicLinks>
268 </io.jenkins.plugins.analysis.warnings.Gcc4>
270 <sourceCodeEncoding/>
273 <ignoreQualityGate>false</ignoreQualityGate>
274 <ignoreFailedBuilds>true</ignoreFailedBuilds>
275 <failOnError>false</failOnError>
277 <unhealthy>0</unhealthy>
278 <minimumSeverity plugin="analysis-model-api">
282 <isEnabledForFailure>true</isEnabledForFailure>
283 <isAggregatingResults>true</isAggregatingResults>
284 <isBlameDisabled>false</isBlameDisabled>
285 <skipPublishingChecks>true</skipPublishingChecks>
286 <publishAllIssues>false</publishAllIssues>
288 <io.jenkins.plugins.analysis.core.util.QualityGate>
289 <threshold>1</threshold>
291 <status>{warnings_status}</status>
292 </io.jenkins.plugins.analysis.core.util.QualityGate>
294 <trendChartType>AGGREGATION_TOOLS</trendChartType>
296 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
297 - archive: *babeltrace_publisher_archive_defaults
298 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
304 name: '{job_prefix}babeltrace_{version}_{buildtype}'
307 <<: *babeltrace_matrix_axes_defaults
308 <<: *babeltrace_builders_defaults
309 <<: *babeltrace_publishers_defaults
312 name: babeltrace_{version}_{cctype}
315 <<: *babeltrace_matrix_axes_cc
316 <<: *babeltrace_builders_defaults
317 <<: *babeltrace_publishers_defaults
320 name: 'dev_review_babeltrace_{version}_{buildtype}'
325 - git: &babeltrace_scm_git_review
326 url: https://review.lttng.org/babeltrace
327 refspec: 'refs/changes/*:refs/changes/*'
330 basedir: src/babeltrace
334 - gerrit: &babeltrace_trigger_gerrit_defaults
336 - comment-added-event:
337 approval-category: 'CI-Build'
340 - project-compare-type: 'PLAIN'
341 project-pattern: 'babeltrace'
343 - branch-compare-type: 'PLAIN'
344 branch-pattern: '{version}'
348 properties-content: |
349 PROJECT_NAME=babeltrace
355 - 'gerrit-{buildtype}'
357 <<: *babeltrace_matrix_axes_defaults
358 <<: *babeltrace_builders_defaults
359 <<: *babeltrace_publishers_review
362 name: 'dev_review_babeltrace_{version}_pylint'
367 - git: *babeltrace_scm_git_review
370 - gerrit: *babeltrace_trigger_gerrit_defaults
376 !include-raw-escape: scripts/babeltrace/pylint.sh
380 properties-content: |
381 PROJECT_NAME=babeltrace
386 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
389 name: 'dev_review_babeltrace_{version}_smokebuild'
394 - git: *babeltrace_scm_git_review
397 - gerrit: &babeltrace_trigger_gerrit_smoke
399 - comment-added-event:
400 approval-category: 'Smoke-Build-Lvl1'
403 - project-compare-type: 'PLAIN'
404 project-pattern: 'babeltrace'
406 - branch-compare-type: 'PLAIN'
407 branch-pattern: '{version}'
417 properties-content: |
418 PROJECT_NAME=babeltrace
419 BABELTRACE_RUN_TESTS=no
423 <<: *babeltrace_matrix_axes_defaults
424 <<: *babeltrace_builders_defaults
427 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
430 name: 'dev_review_babeltrace_{version}_check-format'
435 - git: *babeltrace_scm_git_review
438 - gerrit: *babeltrace_trigger_gerrit_smoke
444 !include-raw-escape: scripts/common/check-format.sh
448 properties-content: |
449 PROJECT_NAME=babeltrace
455 artifacts: 'clang-format-fixes.diff'
457 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
460 name: babeltrace_{version}_release
470 <<: *babeltrace_scm_git_default
471 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
473 - '*/tags/{version}.*'
477 !include-raw-escape: scripts/babeltrace/release.sh
480 - tap: *babeltrace_publisher_tap_defaults
481 - raw: *babeltrace_publisher_warnings-ng_defaults
482 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
484 artifacts: 'out/**,tap/**'
487 - ircbot: *babeltrace_publisher_ircbot_defaults
490 name: babeltrace_{version}_scan-build
500 !include-raw-escape: scripts/common/scan-build.sh
503 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
506 dir: 'scan-build-archive/'
508 - ircbot: *babeltrace_publisher_ircbot_defaults
511 name: babeltrace_{version}_coverity
520 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
521 - timeout: *babeltrace_wrapper_timeout_defaults
524 - credentials-binding:
525 - username-password-separated:
526 credential-id: babeltrace_coverity_token
527 username: COVERITY_SCAN_PROJECT_NAME
528 password: COVERITY_SCAN_TOKEN
532 !include-raw-escape: scripts/common/coverity.sh
535 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
537 artifacts: 'analysis-results.tgz,cov-int/**'
539 - ircbot: *babeltrace_publisher_ircbot_defaults
542 name: babeltrace_{version}_pylint
552 !include-raw-escape: scripts/babeltrace/pylint.sh
555 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
557 artifacts: 'black.out,flake8.out'
559 - ircbot: *babeltrace_publisher_ircbot_defaults
560 - email-ext: *babeltrace_publisher_email-ext_defaults
563 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
567 <<: *babeltrace_builders_glib-2-28-6
568 <<: *babeltrace_publishers_defaults
575 regex: 'babeltrace[-_].*'
582 github_user: efficios
583 github_name: babeltrace
584 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
589 - '{job_prefix}babeltrace_{version}_{buildtype}':
590 buildtype: linuxbuild
591 platforms: !!python/tuple [deb12-amd64]
592 builds: !!python/tuple [std, oot, dist, oot-dist]
593 confs: !!python/tuple [std, static, prod, min, doc, asan]
594 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
595 touchstone: '(build == "std") && (conf == "std")'
596 - '{job_prefix}babeltrace_{version}_{buildtype}':
598 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
599 builds: !!python/tuple [std]
600 confs: !!python/tuple [std, prod]
602 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
603 - '{job_prefix}babeltrace_{version}_{buildtype}':
605 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
606 builds: !!python/tuple [std]
607 confs: !!python/tuple [std, prod]
610 - '{job_prefix}babeltrace_{version}_{buildtype}':
612 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
613 builds: !!python/tuple [std]
614 confs: !!python/tuple [std, prod]
617 - '{job_prefix}babeltrace_{version}_{buildtype}':
618 buildtype: yoctobuild
619 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
620 builds: !!python/tuple [std]
621 confs: !!python/tuple [std]
624 - '{job_prefix}babeltrace_{version}_{buildtype}':
625 buildtype: macosbuild
626 platforms: !!python/tuple [macos-amd64, macos-arm64]
627 builds: !!python/tuple [std]
628 confs: !!python/tuple [std, prod]
631 - '{job_prefix}babeltrace_{version}_{buildtype}':
632 buildtype: freebsdbuild
633 platforms: !!python/tuple [freebsd-amd64]
634 builds: !!python/tuple [std]
635 confs: !!python/tuple [std, prod]
638 - '{job_prefix}babeltrace_{version}_{buildtype}':
640 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
641 builds: !!python/tuple [std]
642 confs: !!python/tuple [std]
645 - 'babeltrace_{version}_{cctype}':
647 platforms: !!python/tuple [deb12-amd64]
648 builds: !!python/tuple [std]
649 confs: !!python/tuple [std, static, prod]
650 ccs: !!python/tuple [clang-13, clang-14, clang-15]
653 - 'babeltrace_{version}_release':
655 - 'babeltrace_{version}_scan-build'
656 - 'babeltrace_{version}_pylint'
657 - 'babeltrace_{version}_coverity':
659 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
663 name: review-babeltrace
665 github_user: efficios
666 github_name: babeltrace
672 - 'dev_review_babeltrace_{version}_{buildtype}':
674 buildtype: linuxbuild
675 platforms: !!python/tuple [deb12-amd64]
676 builds: !!python/tuple [std, oot, dist, oot-dist]
677 confs: !!python/tuple [std, static, prod, min]
680 warnings_status: FAILED
681 - 'dev_review_babeltrace_{version}_{buildtype}':
684 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
685 builds: !!python/tuple [std]
686 confs: !!python/tuple [std]
689 warnings_status: FAILED
690 - 'dev_review_babeltrace_{version}_{buildtype}':
692 buildtype: macosbuild
693 platforms: !!python/tuple [macos-amd64, macos-arm64]
694 builds: !!python/tuple [std]
695 confs: !!python/tuple [std, prod]
698 warnings_status: FAILED
699 - 'dev_review_babeltrace_{version}_{buildtype}':
702 platforms: !!python/tuple [cygwin64, msys2-mingw64]
703 builds: !!python/tuple [std]
704 confs: !!python/tuple [std]
707 warnings_status: FAILED
710 - 'dev_review_babeltrace_{version}_{buildtype}':
712 buildtype: linuxbuild
713 platforms: !!python/tuple [deb12-amd64]
714 builds: !!python/tuple [std, oot, dist, oot-dist]
715 confs: !!python/tuple [std, static, prod, min]
718 warnings_status: WARNING
719 - 'dev_review_babeltrace_{version}_{buildtype}':
722 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
723 builds: !!python/tuple [std]
724 confs: !!python/tuple [std]
727 warnings_status: WARNING
728 - 'dev_review_babeltrace_{version}_{buildtype}':
730 buildtype: macosbuild
731 platforms: !!python/tuple [macos-amd64, macos-arm64]
732 builds: !!python/tuple [std]
733 confs: !!python/tuple [std, prod]
736 warnings_status: WARNING
737 - 'dev_review_babeltrace_{version}_{buildtype}':
740 platforms: !!python/tuple [cygwin64, msys2-mingw64]
741 builds: !!python/tuple [std]
742 confs: !!python/tuple [std]
745 warnings_status: WARNING
748 - 'dev_review_babeltrace_{version}_smokebuild':
749 platforms: !!python/tuple [deb12-amd64]
750 builds: !!python/tuple [oot-dist]
751 confs: !!python/tuple [std]
754 - 'dev_review_babeltrace_{version}_check-format'
755 - 'dev_review_babeltrace_{version}_pylint'
759 name: dev_upstream_babeltrace
760 job_prefix: dev_upstream_
761 github_user: efficios
762 github_name: babeltrace
763 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
767 - '{job_prefix}babeltrace_{version}_{buildtype}':
768 buildtype: linuxbuild
769 platforms: !!python/tuple [deb12-amd64]
770 builds: !!python/tuple [std, oot, dist, oot-dist]
771 confs: !!python/tuple [std, static, python-bindings]
773 touchstone: '(build == "std") && (conf == "std")'
774 - '{job_prefix}babeltrace_{version}_{buildtype}':
776 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
777 builds: !!python/tuple [std]
778 confs: !!python/tuple [std, python-bindings]
780 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
781 - '{job_prefix}babeltrace_{version}_{buildtype}':
783 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
784 builds: !!python/tuple [std]
785 confs: !!python/tuple [std]
788 - '{job_prefix}babeltrace_{version}_{buildtype}':
790 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
791 builds: !!python/tuple [std]
792 confs: !!python/tuple [std]
795 - 'babeltrace_{version}_release':
800 name: babeltrace-jgalar-staging
801 job_prefix: 'dev_jgalar_'
803 github_name: babeltrace
804 email_to: "jgalar@efficios.com"
808 - '{job_prefix}babeltrace_{version}_{buildtype}':
809 buildtype: linuxbuild
810 platforms: !!python/tuple [deb12-amd64]
811 builds: !!python/tuple [std, oot, dist, oot-dist]
812 confs: !!python/tuple [std, static, python-bindings]
815 - '{job_prefix}babeltrace_{version}_{buildtype}':
816 buildtype: macosbuild
817 platforms: !!python/tuple [macos-amd64, macos-arm64]
818 builds: !!python/tuple [std]
819 confs: !!python/tuple [std]
825 name: babeltrace2-jgalar-staging
826 job_prefix: 'dev_jgalar_'
828 github_name: babeltrace
829 email_to: "jgalar@efficios.com"
834 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
837 - '{job_prefix}babeltrace_{version}_{buildtype}':
838 buildtype: linuxbuild
839 platforms: !!python/tuple [deb12-amd64]
840 builds: !!python/tuple [std, oot, dist, oot-dist]
841 confs: !!python/tuple [std, static, prod, min]
844 - '{job_prefix}babeltrace_{version}_{buildtype}':
845 buildtype: macosbuild
846 platforms: !!python/tuple [macos-amd64, macos-arm64]
847 builds: !!python/tuple [std]
848 confs: !!python/tuple [std, prod]
853 name: babeltrace2-mjeanson
854 job_prefix: 'dev_mjeanson_'
855 github_user: efficios
856 github_name: babeltrace
857 email_to: "mjeanson@efficios.com"
861 - '{job_prefix}babeltrace_{version}_{buildtype}':
863 platforms: !!python/tuple [sid-riscv64]
864 builds: !!python/tuple [std]
865 confs: !!python/tuple [std, prod]
868 - '{job_prefix}babeltrace_{version}_{buildtype}':
870 platforms: !!python/tuple [deb12-amd64]
871 builds: !!python/tuple [std]
872 confs: !!python/tuple [std, prod]
877 name: babeltrace-views