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-ucrt64'
115 properties-content: 'MSYSTEM=UCRT64'
118 - scripts/common/msys2-shebang
119 - scripts/common/cygpath-prefix
120 - scripts/common/print.sh
121 - scripts/babeltrace/build.sh
125 - scripts/common/print.sh
126 - scripts/babeltrace/build.sh
129 # Use - in version number since yaml anchor do not support dot
130 - job-template: &babeltrace_builders_glib-2-28-6
131 name: 'babeltrace_builders_glib-2-28-6'
134 properties-content: |
135 LD_LIBRARY_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib
136 PKG_CONFIG_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib/pkgconfig
141 curl -OL 'https://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz'
142 tar xf glib-2.28.6.tar.gz
144 sed -i 's/sys\/types\.h/sys\/sysmacros\.h/' gio/gdbusmessage.c # Fix build failure with recent glibc
146 ./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
147 make -j `nproc` >/dev/null 2>&1 # Hide warnings
151 - scripts/common/print.sh
152 - scripts/babeltrace/build.sh
154 - job-template: &babeltrace_publishers_defaults
155 name: 'babeltrace_publishers_defaults'
157 - tap: &babeltrace_publisher_tap_defaults
158 results: 'tap/**/*.log'
159 fail-if-no-results: true
160 failed-tests-mark-build-as-failure: true
161 include-comment-diagnostics: true
162 output-tap-to-console: false
163 todo-is-failure: false
164 - raw: &babeltrace_publisher_warnings-ng_defaults
166 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
168 <io.jenkins.plugins.analysis.warnings.Gcc4>
171 <jenkins plugin="plugin-util-api"/>
174 <skipSymbolicLinks>false</skipSymbolicLinks>
175 </io.jenkins.plugins.analysis.warnings.Gcc4>
177 <sourceCodeEncoding/>
180 <ignoreQualityGate>false</ignoreQualityGate>
181 <ignoreFailedBuilds>true</ignoreFailedBuilds>
182 <failOnError>false</failOnError>
184 <unhealthy>0</unhealthy>
185 <minimumSeverity plugin="analysis-model-api">
189 <isEnabledForFailure>true</isEnabledForFailure>
190 <isAggregatingResults>true</isAggregatingResults>
191 <isBlameDisabled>false</isBlameDisabled>
192 <skipPublishingChecks>true</skipPublishingChecks>
193 <publishAllIssues>false</publishAllIssues>
195 <io.jenkins.plugins.analysis.core.util.QualityGate>
196 <threshold>1</threshold>
198 <status>WARNING</status>
199 </io.jenkins.plugins.analysis.core.util.QualityGate>
201 <trendChartType>AGGREGATION_TOOLS</trendChartType>
203 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
204 - archive: &babeltrace_publisher_archive_defaults
205 artifacts: 'build/**,tap/**,log/**'
206 follow-symlinks: true
208 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
211 - ircbot: &babeltrace_publisher_ircbot_defaults
212 strategy: statechange-only
213 message-type: summary
214 matrix-notifier: only-parent
215 - email-ext: &babeltrace_publisher_email-ext_defaults
216 recipients: '{obj:email_to}'
217 reply-to: ci-notification@lists.lttng.org
226 second-failure: false
231 fixed-unhealthy: true
232 still-unstable: false
234 matrix-trigger: only-parent
238 - job-template: &babeltrace_publishers_review
239 name: 'babeltrace_publishers_review'
241 - tap: *babeltrace_publisher_tap_defaults
242 # Fail job on any compiler warnings
245 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
247 <io.jenkins.plugins.analysis.warnings.Gcc4>
250 <jenkins plugin="plugin-util-api"/>
253 <skipSymbolicLinks>false</skipSymbolicLinks>
254 </io.jenkins.plugins.analysis.warnings.Gcc4>
256 <sourceCodeEncoding/>
259 <ignoreQualityGate>false</ignoreQualityGate>
260 <ignoreFailedBuilds>true</ignoreFailedBuilds>
261 <failOnError>false</failOnError>
263 <unhealthy>0</unhealthy>
264 <minimumSeverity plugin="analysis-model-api">
268 <isEnabledForFailure>true</isEnabledForFailure>
269 <isAggregatingResults>true</isAggregatingResults>
270 <isBlameDisabled>false</isBlameDisabled>
271 <skipPublishingChecks>true</skipPublishingChecks>
272 <publishAllIssues>false</publishAllIssues>
274 <io.jenkins.plugins.analysis.core.util.QualityGate>
275 <threshold>1</threshold>
277 <status>{warnings_status}</status>
278 </io.jenkins.plugins.analysis.core.util.QualityGate>
280 <trendChartType>AGGREGATION_TOOLS</trendChartType>
282 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
283 - archive: *babeltrace_publisher_archive_defaults
284 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
290 name: '{job_prefix}babeltrace_{version}_{buildtype}'
293 <<: *babeltrace_matrix_axes_defaults
294 <<: *babeltrace_builders_defaults
295 <<: *babeltrace_publishers_defaults
298 name: babeltrace_{version}_{cctype}
301 <<: *babeltrace_matrix_axes_cc
302 <<: *babeltrace_builders_defaults
303 <<: *babeltrace_publishers_defaults
306 name: 'dev_review_babeltrace_{version}_{buildtype}'
311 - git: &babeltrace_scm_git_review
312 url: https://review.lttng.org/babeltrace
313 refspec: 'refs/changes/*:refs/changes/*'
316 basedir: src/babeltrace
320 - gerrit: &babeltrace_trigger_gerrit_defaults
322 - comment-added-event:
323 approval-category: 'CI-Build'
326 - project-compare-type: 'PLAIN'
327 project-pattern: 'babeltrace'
329 - branch-compare-type: 'PLAIN'
330 branch-pattern: '{version}'
334 properties-content: |
335 PROJECT_NAME=babeltrace
341 - 'gerrit-{buildtype}'
343 <<: *babeltrace_matrix_axes_defaults
344 <<: *babeltrace_builders_defaults
345 <<: *babeltrace_publishers_review
348 name: 'dev_review_babeltrace_{version}_lint'
353 - git: *babeltrace_scm_git_review
356 - gerrit: *babeltrace_trigger_gerrit_defaults
362 !include-raw-escape: scripts/babeltrace/lint.sh
366 properties-content: |
367 PROJECT_NAME=babeltrace
373 artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out'
375 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
378 name: 'dev_review_babeltrace_{version}_smokebuild'
383 - git: *babeltrace_scm_git_review
386 - gerrit: &babeltrace_trigger_gerrit_smoke
388 - comment-added-event:
389 approval-category: 'Smoke-Build-Lvl1'
392 - project-compare-type: 'PLAIN'
393 project-pattern: 'babeltrace'
395 - branch-compare-type: 'PLAIN'
396 branch-pattern: '{version}'
406 properties-content: |
407 PROJECT_NAME=babeltrace
408 BABELTRACE_RUN_TESTS=no
412 <<: *babeltrace_matrix_axes_defaults
413 <<: *babeltrace_builders_defaults
416 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
419 name: 'dev_review_babeltrace_{version}_check-format'
424 - git: *babeltrace_scm_git_review
427 - gerrit: *babeltrace_trigger_gerrit_smoke
433 !include-raw-escape: scripts/common/check-format.sh
437 properties-content: |
438 PROJECT_NAME=babeltrace
444 artifacts: 'clang-format-fixes.diff'
446 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
449 name: babeltrace_{version}_release
459 <<: *babeltrace_scm_git_default
460 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
462 - '*/tags/{version}.*'
466 !include-raw-escape: scripts/babeltrace/release.sh
469 - tap: *babeltrace_publisher_tap_defaults
470 - raw: *babeltrace_publisher_warnings-ng_defaults
471 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
473 artifacts: 'out/**,tap/**'
476 - ircbot: *babeltrace_publisher_ircbot_defaults
479 name: babeltrace_{version}_scan-build
489 !include-raw-escape: scripts/common/scan-build.sh
492 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
495 dir: 'scan-build-archive/'
497 - ircbot: *babeltrace_publisher_ircbot_defaults
500 name: babeltrace_{version}_coverity
509 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
510 - timeout: *babeltrace_wrapper_timeout_defaults
513 - credentials-binding:
514 - username-password-separated:
515 credential-id: babeltrace_coverity_token
516 username: COVERITY_SCAN_PROJECT_NAME
517 password: COVERITY_SCAN_TOKEN
521 !include-raw-escape: scripts/common/coverity.sh
524 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
526 artifacts: 'analysis-results.tgz,cov-int/**'
528 - ircbot: *babeltrace_publisher_ircbot_defaults
531 name: babeltrace_{version}_lint
541 !include-raw-escape: scripts/babeltrace/lint.sh
544 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
546 artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out'
548 - ircbot: *babeltrace_publisher_ircbot_defaults
549 - email-ext: *babeltrace_publisher_email-ext_defaults
552 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
556 <<: *babeltrace_builders_glib-2-28-6
557 <<: *babeltrace_publishers_defaults
564 regex: 'babeltrace[-_].*'
571 github_user: efficios
572 github_name: babeltrace
573 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
578 - '{job_prefix}babeltrace_{version}_{buildtype}':
579 buildtype: linuxbuild
580 platforms: !!python/tuple [deb12-amd64]
581 builds: !!python/tuple [std, oot, dist, oot-dist]
582 confs: !!python/tuple [std, static, prod, min, doc, asan]
583 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
584 touchstone: '(build == "std") && (conf == "std")'
585 - '{job_prefix}babeltrace_{version}_{buildtype}':
587 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
588 builds: !!python/tuple [std]
589 confs: !!python/tuple [std, prod]
591 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
592 - '{job_prefix}babeltrace_{version}_{buildtype}':
594 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
595 builds: !!python/tuple [std]
596 confs: !!python/tuple [std, prod]
599 - '{job_prefix}babeltrace_{version}_{buildtype}':
601 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
602 builds: !!python/tuple [std]
603 confs: !!python/tuple [std, prod]
606 - '{job_prefix}babeltrace_{version}_{buildtype}':
607 buildtype: yoctobuild
608 platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
609 builds: !!python/tuple [std]
610 confs: !!python/tuple [std]
613 - '{job_prefix}babeltrace_{version}_{buildtype}':
614 buildtype: macosbuild
615 platforms: !!python/tuple [macos-arm64]
616 builds: !!python/tuple [std]
617 confs: !!python/tuple [std, prod]
620 - '{job_prefix}babeltrace_{version}_{buildtype}':
621 buildtype: freebsdbuild
622 platforms: !!python/tuple [freebsd-amd64]
623 builds: !!python/tuple [std]
624 confs: !!python/tuple [std, prod]
627 - '{job_prefix}babeltrace_{version}_{buildtype}':
629 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
630 builds: !!python/tuple [std]
631 confs: !!python/tuple [std]
634 - 'babeltrace_{version}_{cctype}':
636 platforms: !!python/tuple [deb12-amd64]
637 builds: !!python/tuple [std]
638 confs: !!python/tuple [std, static, prod]
639 ccs: !!python/tuple [clang-13, clang-14, clang-15]
642 - 'babeltrace_{version}_release':
644 - 'babeltrace_{version}_scan-build'
645 - 'babeltrace_{version}_lint'
646 - 'babeltrace_{version}_coverity':
648 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
652 name: review-babeltrace
654 github_user: efficios
655 github_name: babeltrace
662 - 'dev_review_babeltrace_{version}_{buildtype}':
664 buildtype: linuxbuild
665 platforms: !!python/tuple [deb12-amd64]
666 builds: !!python/tuple [std, oot, dist, oot-dist]
667 confs: !!python/tuple [std, static, prod, min]
670 warnings_status: FAILED
671 - 'dev_review_babeltrace_{version}_{buildtype}':
674 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
675 builds: !!python/tuple [std]
676 confs: !!python/tuple [std]
679 warnings_status: FAILED
680 - 'dev_review_babeltrace_{version}_{buildtype}':
682 buildtype: macosbuild
683 platforms: !!python/tuple [macos-arm64]
684 builds: !!python/tuple [std]
685 confs: !!python/tuple [std, prod]
688 warnings_status: FAILED
689 - 'dev_review_babeltrace_{version}_{buildtype}':
692 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
693 builds: !!python/tuple [std]
694 confs: !!python/tuple [std]
697 warnings_status: FAILED
699 ## ctf2 temp branch ##
700 - 'dev_review_babeltrace_{version}_{buildtype}':
702 buildtype: linuxbuild
703 platforms: !!python/tuple [deb12-amd64]
704 builds: !!python/tuple [std, oot, dist, oot-dist]
705 confs: !!python/tuple [std, static, prod, min]
708 warnings_status: FAILED
709 - 'dev_review_babeltrace_{version}_{buildtype}':
712 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
713 builds: !!python/tuple [std]
714 confs: !!python/tuple [std]
717 warnings_status: FAILED
718 - 'dev_review_babeltrace_{version}_{buildtype}':
720 buildtype: macosbuild
721 platforms: !!python/tuple [macos-arm64]
722 builds: !!python/tuple [std]
723 confs: !!python/tuple [std, prod]
726 warnings_status: FAILED
727 - 'dev_review_babeltrace_{version}_{buildtype}':
730 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
731 builds: !!python/tuple [std]
732 confs: !!python/tuple [std]
735 warnings_status: FAILED
738 - 'dev_review_babeltrace_{version}_{buildtype}':
740 buildtype: linuxbuild
741 platforms: !!python/tuple [deb12-amd64]
742 builds: !!python/tuple [std, oot, dist, oot-dist]
743 confs: !!python/tuple [std, static, prod, min]
746 warnings_status: WARNING
747 - 'dev_review_babeltrace_{version}_{buildtype}':
750 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
751 builds: !!python/tuple [std]
752 confs: !!python/tuple [std]
755 warnings_status: WARNING
756 - 'dev_review_babeltrace_{version}_{buildtype}':
758 buildtype: macosbuild
759 platforms: !!python/tuple [macos-arm64]
760 builds: !!python/tuple [std]
761 confs: !!python/tuple [std, prod]
764 warnings_status: WARNING
765 - 'dev_review_babeltrace_{version}_{buildtype}':
768 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
769 builds: !!python/tuple [std]
770 confs: !!python/tuple [std]
773 warnings_status: WARNING
776 - 'dev_review_babeltrace_{version}_smokebuild':
777 platforms: !!python/tuple [deb12-amd64]
778 builds: !!python/tuple [oot-dist]
779 confs: !!python/tuple [std]
782 - 'dev_review_babeltrace_{version}_check-format'
783 - 'dev_review_babeltrace_{version}_lint'
787 name: dev_upstream_babeltrace
788 job_prefix: dev_upstream_
789 github_user: efficios
790 github_name: babeltrace
791 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
795 - '{job_prefix}babeltrace_{version}_{buildtype}':
796 buildtype: linuxbuild
797 platforms: !!python/tuple [deb12-amd64]
798 builds: !!python/tuple [std, oot, dist, oot-dist]
799 confs: !!python/tuple [std, static, python-bindings]
801 touchstone: '(build == "std") && (conf == "std")'
802 - '{job_prefix}babeltrace_{version}_{buildtype}':
804 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
805 builds: !!python/tuple [std]
806 confs: !!python/tuple [std, python-bindings]
808 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
809 - '{job_prefix}babeltrace_{version}_{buildtype}':
811 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
812 builds: !!python/tuple [std]
813 confs: !!python/tuple [std]
816 - '{job_prefix}babeltrace_{version}_{buildtype}':
818 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
819 builds: !!python/tuple [std]
820 confs: !!python/tuple [std]
823 - 'babeltrace_{version}_release':
828 name: babeltrace-jgalar-staging
829 job_prefix: 'dev_jgalar_'
831 github_name: babeltrace
832 email_to: "jgalar@efficios.com"
836 - '{job_prefix}babeltrace_{version}_{buildtype}':
837 buildtype: linuxbuild
838 platforms: !!python/tuple [deb12-amd64]
839 builds: !!python/tuple [std, oot, dist, oot-dist]
840 confs: !!python/tuple [std, static, python-bindings]
843 - '{job_prefix}babeltrace_{version}_{buildtype}':
844 buildtype: macosbuild
845 platforms: !!python/tuple [macos-arm64]
846 builds: !!python/tuple [std]
847 confs: !!python/tuple [std]
853 name: babeltrace2-jgalar-staging
854 job_prefix: 'dev_jgalar_'
856 github_name: babeltrace
857 email_to: "jgalar@efficios.com"
862 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
865 - '{job_prefix}babeltrace_{version}_{buildtype}':
866 buildtype: linuxbuild
867 platforms: !!python/tuple [deb12-amd64]
868 builds: !!python/tuple [std, oot, dist, oot-dist]
869 confs: !!python/tuple [std, static, prod, min]
872 - '{job_prefix}babeltrace_{version}_{buildtype}':
873 buildtype: macosbuild
874 platforms: !!python/tuple [macos-arm64]
875 builds: !!python/tuple [std]
876 confs: !!python/tuple [std, prod]
882 name: babeltrace-views