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 [bionic-amd64]
599 builds: !!python/tuple [std, oot, dist, oot-dist]
600 confs: !!python/tuple [std, static, prod, min, doc, asan]
601 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
602 touchstone: '(build == "std") && (conf == "std")'
603 - '{job_prefix}babeltrace_{version}_{buildtype}':
605 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
606 builds: !!python/tuple [std]
607 confs: !!python/tuple [std, prod]
609 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
610 - '{job_prefix}babeltrace_{version}_{buildtype}':
612 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
613 builds: !!python/tuple [std]
614 confs: !!python/tuple [std, prod]
617 - '{job_prefix}babeltrace_{version}_{buildtype}':
619 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
620 builds: !!python/tuple [std]
621 confs: !!python/tuple [std, prod]
624 - '{job_prefix}babeltrace_{version}_{buildtype}':
625 buildtype: yoctobuild
626 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
627 builds: !!python/tuple [std]
628 confs: !!python/tuple [std]
631 - '{job_prefix}babeltrace_{version}_{buildtype}':
632 buildtype: macosbuild
633 platforms: !!python/tuple [macos-amd64, macos-arm64]
634 builds: !!python/tuple [std]
635 confs: !!python/tuple [std, prod]
638 - '{job_prefix}babeltrace_{version}_{buildtype}':
639 buildtype: freebsdbuild
640 platforms: !!python/tuple [freebsd-amd64]
641 builds: !!python/tuple [std]
642 confs: !!python/tuple [std, prod]
645 - '{job_prefix}babeltrace_{version}_{buildtype}':
647 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
648 builds: !!python/tuple [std]
649 confs: !!python/tuple [std]
652 - 'babeltrace_{version}_{cctype}':
654 platforms: !!python/tuple [deb12-amd64]
655 builds: !!python/tuple [std]
656 confs: !!python/tuple [std, static, prod]
657 ccs: !!python/tuple [clang-13, clang-14, clang-15]
660 - 'babeltrace_{version}_release':
662 - 'babeltrace_{version}_scan-build'
663 - 'babeltrace_{version}_pylint'
664 - 'babeltrace_{version}_coverity':
666 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
670 name: review-babeltrace
672 github_user: efficios
673 github_name: babeltrace
679 - 'dev_review_babeltrace_{version}_{buildtype}':
681 buildtype: linuxbuild
682 platforms: !!python/tuple [deb12-amd64]
683 builds: !!python/tuple [std, oot, dist, oot-dist]
684 confs: !!python/tuple [std, static, prod, min]
687 warnings_status: FAILED
688 - 'dev_review_babeltrace_{version}_{buildtype}':
691 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
692 builds: !!python/tuple [std]
693 confs: !!python/tuple [std]
696 warnings_status: FAILED
697 - 'dev_review_babeltrace_{version}_{buildtype}':
699 buildtype: macosbuild
700 platforms: !!python/tuple [macos-amd64, macos-arm64]
701 builds: !!python/tuple [std]
702 confs: !!python/tuple [std, prod]
705 warnings_status: FAILED
706 - 'dev_review_babeltrace_{version}_{buildtype}':
709 platforms: !!python/tuple [cygwin64, msys2-mingw64]
710 builds: !!python/tuple [std]
711 confs: !!python/tuple [std]
714 warnings_status: FAILED
717 - 'dev_review_babeltrace_{version}_{buildtype}':
719 buildtype: linuxbuild
720 platforms: !!python/tuple [deb12-amd64]
721 builds: !!python/tuple [std, oot, dist, oot-dist]
722 confs: !!python/tuple [std, static, prod, min]
725 warnings_status: WARNING
726 - 'dev_review_babeltrace_{version}_{buildtype}':
729 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
730 builds: !!python/tuple [std]
731 confs: !!python/tuple [std]
734 warnings_status: WARNING
735 - 'dev_review_babeltrace_{version}_{buildtype}':
737 buildtype: macosbuild
738 platforms: !!python/tuple [macos-amd64, macos-arm64]
739 builds: !!python/tuple [std]
740 confs: !!python/tuple [std, prod]
743 warnings_status: WARNING
744 - 'dev_review_babeltrace_{version}_{buildtype}':
747 platforms: !!python/tuple [cygwin64, msys2-mingw64]
748 builds: !!python/tuple [std]
749 confs: !!python/tuple [std]
752 warnings_status: WARNING
755 - 'dev_review_babeltrace_{version}_smokebuild':
756 platforms: !!python/tuple [deb12-amd64]
757 builds: !!python/tuple [oot-dist]
758 confs: !!python/tuple [std]
761 - 'dev_review_babeltrace_{version}_check-format'
762 - 'dev_review_babeltrace_{version}_pylint'
766 name: dev_upstream_babeltrace
767 job_prefix: dev_upstream_
768 github_user: efficios
769 github_name: babeltrace
770 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
774 - '{job_prefix}babeltrace_{version}_{buildtype}':
775 buildtype: linuxbuild
776 platforms: !!python/tuple [deb12-amd64]
777 builds: !!python/tuple [std, oot, dist, oot-dist]
778 confs: !!python/tuple [std, static, python-bindings]
780 touchstone: '(build == "std") && (conf == "std")'
781 - '{job_prefix}babeltrace_{version}_{buildtype}':
783 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
784 builds: !!python/tuple [std]
785 confs: !!python/tuple [std, python-bindings]
787 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
788 - '{job_prefix}babeltrace_{version}_{buildtype}':
790 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
791 builds: !!python/tuple [std]
792 confs: !!python/tuple [std]
795 - '{job_prefix}babeltrace_{version}_{buildtype}':
797 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
798 builds: !!python/tuple [std]
799 confs: !!python/tuple [std]
802 - 'babeltrace_{version}_release':
807 name: babeltrace-jgalar-staging
808 job_prefix: 'dev_jgalar_'
810 github_name: babeltrace
811 email_to: "jgalar@efficios.com"
815 - '{job_prefix}babeltrace_{version}_{buildtype}':
816 buildtype: linuxbuild
817 platforms: !!python/tuple [deb12-amd64]
818 builds: !!python/tuple [std, oot, dist, oot-dist]
819 confs: !!python/tuple [std, static, python-bindings]
822 - '{job_prefix}babeltrace_{version}_{buildtype}':
823 buildtype: macosbuild
824 platforms: !!python/tuple [macos-amd64, macos-arm64]
825 builds: !!python/tuple [std]
826 confs: !!python/tuple [std]
832 name: babeltrace2-jgalar-staging
833 job_prefix: 'dev_jgalar_'
835 github_name: babeltrace
836 email_to: "jgalar@efficios.com"
841 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
844 - '{job_prefix}babeltrace_{version}_{buildtype}':
845 buildtype: linuxbuild
846 platforms: !!python/tuple [deb12-amd64]
847 builds: !!python/tuple [std, oot, dist, oot-dist]
848 confs: !!python/tuple [std, static, prod, min]
851 - '{job_prefix}babeltrace_{version}_{buildtype}':
852 buildtype: macosbuild
853 platforms: !!python/tuple [macos-amd64, macos-arm64]
854 builds: !!python/tuple [std]
855 confs: !!python/tuple [std, prod]
860 name: babeltrace2-mjeanson
861 job_prefix: 'dev_mjeanson_'
862 github_user: efficios
863 github_name: babeltrace
864 email_to: "mjeanson@efficios.com"
868 - '{job_prefix}babeltrace_{version}_{buildtype}':
870 platforms: !!python/tuple [sid-riscv64]
871 builds: !!python/tuple [std]
872 confs: !!python/tuple [std, prod]
875 - '{job_prefix}babeltrace_{version}_{buildtype}':
877 platforms: !!python/tuple [deb12-amd64]
878 builds: !!python/tuple [std]
879 confs: !!python/tuple [std, prod]
884 name: babeltrace-views