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,isort.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
673 - 'dev_review_babeltrace_{version}_{buildtype}':
675 buildtype: linuxbuild
676 platforms: !!python/tuple [deb12-amd64]
677 builds: !!python/tuple [std, oot, dist, oot-dist]
678 confs: !!python/tuple [std, static, prod, min]
681 warnings_status: FAILED
682 - 'dev_review_babeltrace_{version}_{buildtype}':
685 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
686 builds: !!python/tuple [std]
687 confs: !!python/tuple [std]
690 warnings_status: FAILED
691 - 'dev_review_babeltrace_{version}_{buildtype}':
693 buildtype: macosbuild
694 platforms: !!python/tuple [macos-amd64, macos-arm64]
695 builds: !!python/tuple [std]
696 confs: !!python/tuple [std, prod]
699 warnings_status: FAILED
700 - 'dev_review_babeltrace_{version}_{buildtype}':
703 platforms: !!python/tuple [cygwin64, msys2-mingw64]
704 builds: !!python/tuple [std]
705 confs: !!python/tuple [std]
708 warnings_status: FAILED
710 ## ctf2 temp branch ##
711 - 'dev_review_babeltrace_{version}_{buildtype}':
713 buildtype: linuxbuild
714 platforms: !!python/tuple [deb12-amd64]
715 builds: !!python/tuple [std, oot, dist, oot-dist]
716 confs: !!python/tuple [std, static, prod, min]
719 warnings_status: FAILED
720 - 'dev_review_babeltrace_{version}_{buildtype}':
723 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
724 builds: !!python/tuple [std]
725 confs: !!python/tuple [std]
728 warnings_status: FAILED
729 - 'dev_review_babeltrace_{version}_{buildtype}':
731 buildtype: macosbuild
732 platforms: !!python/tuple [macos-amd64, macos-arm64]
733 builds: !!python/tuple [std]
734 confs: !!python/tuple [std, prod]
737 warnings_status: FAILED
738 - 'dev_review_babeltrace_{version}_{buildtype}':
741 platforms: !!python/tuple [cygwin64, msys2-mingw64]
742 builds: !!python/tuple [std]
743 confs: !!python/tuple [std]
746 warnings_status: FAILED
749 - 'dev_review_babeltrace_{version}_{buildtype}':
751 buildtype: linuxbuild
752 platforms: !!python/tuple [deb12-amd64]
753 builds: !!python/tuple [std, oot, dist, oot-dist]
754 confs: !!python/tuple [std, static, prod, min]
757 warnings_status: WARNING
758 - 'dev_review_babeltrace_{version}_{buildtype}':
761 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
762 builds: !!python/tuple [std]
763 confs: !!python/tuple [std]
766 warnings_status: WARNING
767 - 'dev_review_babeltrace_{version}_{buildtype}':
769 buildtype: macosbuild
770 platforms: !!python/tuple [macos-amd64, macos-arm64]
771 builds: !!python/tuple [std]
772 confs: !!python/tuple [std, prod]
775 warnings_status: WARNING
776 - 'dev_review_babeltrace_{version}_{buildtype}':
779 platforms: !!python/tuple [cygwin64, msys2-mingw64]
780 builds: !!python/tuple [std]
781 confs: !!python/tuple [std]
784 warnings_status: WARNING
787 - 'dev_review_babeltrace_{version}_smokebuild':
788 platforms: !!python/tuple [deb12-amd64]
789 builds: !!python/tuple [oot-dist]
790 confs: !!python/tuple [std]
793 - 'dev_review_babeltrace_{version}_check-format'
794 - 'dev_review_babeltrace_{version}_pylint'
798 name: dev_upstream_babeltrace
799 job_prefix: dev_upstream_
800 github_user: efficios
801 github_name: babeltrace
802 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
806 - '{job_prefix}babeltrace_{version}_{buildtype}':
807 buildtype: linuxbuild
808 platforms: !!python/tuple [deb12-amd64]
809 builds: !!python/tuple [std, oot, dist, oot-dist]
810 confs: !!python/tuple [std, static, python-bindings]
812 touchstone: '(build == "std") && (conf == "std")'
813 - '{job_prefix}babeltrace_{version}_{buildtype}':
815 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
816 builds: !!python/tuple [std]
817 confs: !!python/tuple [std, python-bindings]
819 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
820 - '{job_prefix}babeltrace_{version}_{buildtype}':
822 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
823 builds: !!python/tuple [std]
824 confs: !!python/tuple [std]
827 - '{job_prefix}babeltrace_{version}_{buildtype}':
829 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
830 builds: !!python/tuple [std]
831 confs: !!python/tuple [std]
834 - 'babeltrace_{version}_release':
839 name: babeltrace-jgalar-staging
840 job_prefix: 'dev_jgalar_'
842 github_name: babeltrace
843 email_to: "jgalar@efficios.com"
847 - '{job_prefix}babeltrace_{version}_{buildtype}':
848 buildtype: linuxbuild
849 platforms: !!python/tuple [deb12-amd64]
850 builds: !!python/tuple [std, oot, dist, oot-dist]
851 confs: !!python/tuple [std, static, python-bindings]
854 - '{job_prefix}babeltrace_{version}_{buildtype}':
855 buildtype: macosbuild
856 platforms: !!python/tuple [macos-amd64, macos-arm64]
857 builds: !!python/tuple [std]
858 confs: !!python/tuple [std]
864 name: babeltrace2-jgalar-staging
865 job_prefix: 'dev_jgalar_'
867 github_name: babeltrace
868 email_to: "jgalar@efficios.com"
873 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
876 - '{job_prefix}babeltrace_{version}_{buildtype}':
877 buildtype: linuxbuild
878 platforms: !!python/tuple [deb12-amd64]
879 builds: !!python/tuple [std, oot, dist, oot-dist]
880 confs: !!python/tuple [std, static, prod, min]
883 - '{job_prefix}babeltrace_{version}_{buildtype}':
884 buildtype: macosbuild
885 platforms: !!python/tuple [macos-amd64, macos-arm64]
886 builds: !!python/tuple [std]
887 confs: !!python/tuple [std, prod]
892 name: babeltrace2-mjeanson
893 job_prefix: 'dev_mjeanson_'
894 github_user: efficios
895 github_name: babeltrace
896 email_to: "mjeanson@efficios.com"
900 - '{job_prefix}babeltrace_{version}_{buildtype}':
902 platforms: !!python/tuple [sid-riscv64]
903 builds: !!python/tuple [std]
904 confs: !!python/tuple [std, prod]
907 - '{job_prefix}babeltrace_{version}_{buildtype}':
909 platforms: !!python/tuple [deb12-amd64]
910 builds: !!python/tuple [std]
911 confs: !!python/tuple [std, prod]
916 name: babeltrace-views