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}_pylint'
353 - git: *babeltrace_scm_git_review
356 - gerrit: *babeltrace_trigger_gerrit_defaults
362 !include-raw-escape: scripts/babeltrace/pylint.sh
366 properties-content: |
367 PROJECT_NAME=babeltrace
372 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
375 name: 'dev_review_babeltrace_{version}_smokebuild'
380 - git: *babeltrace_scm_git_review
383 - gerrit: &babeltrace_trigger_gerrit_smoke
385 - comment-added-event:
386 approval-category: 'Smoke-Build-Lvl1'
389 - project-compare-type: 'PLAIN'
390 project-pattern: 'babeltrace'
392 - branch-compare-type: 'PLAIN'
393 branch-pattern: '{version}'
403 properties-content: |
404 PROJECT_NAME=babeltrace
405 BABELTRACE_RUN_TESTS=no
409 <<: *babeltrace_matrix_axes_defaults
410 <<: *babeltrace_builders_defaults
413 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
416 name: 'dev_review_babeltrace_{version}_check-format'
421 - git: *babeltrace_scm_git_review
424 - gerrit: *babeltrace_trigger_gerrit_smoke
430 !include-raw-escape: scripts/common/check-format.sh
434 properties-content: |
435 PROJECT_NAME=babeltrace
441 artifacts: 'clang-format-fixes.diff'
443 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
446 name: babeltrace_{version}_release
456 <<: *babeltrace_scm_git_default
457 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
459 - '*/tags/{version}.*'
463 !include-raw-escape: scripts/babeltrace/release.sh
466 - tap: *babeltrace_publisher_tap_defaults
467 - raw: *babeltrace_publisher_warnings-ng_defaults
468 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
470 artifacts: 'out/**,tap/**'
473 - ircbot: *babeltrace_publisher_ircbot_defaults
476 name: babeltrace_{version}_scan-build
486 !include-raw-escape: scripts/common/scan-build.sh
489 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
492 dir: 'scan-build-archive/'
494 - ircbot: *babeltrace_publisher_ircbot_defaults
497 name: babeltrace_{version}_coverity
506 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
507 - timeout: *babeltrace_wrapper_timeout_defaults
510 - credentials-binding:
511 - username-password-separated:
512 credential-id: babeltrace_coverity_token
513 username: COVERITY_SCAN_PROJECT_NAME
514 password: COVERITY_SCAN_TOKEN
518 !include-raw-escape: scripts/common/coverity.sh
521 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
523 artifacts: 'analysis-results.tgz,cov-int/**'
525 - ircbot: *babeltrace_publisher_ircbot_defaults
528 name: babeltrace_{version}_pylint
538 !include-raw-escape: scripts/babeltrace/pylint.sh
541 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
543 artifacts: 'black.out,flake8.out,isort.out'
545 - ircbot: *babeltrace_publisher_ircbot_defaults
546 - email-ext: *babeltrace_publisher_email-ext_defaults
549 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
553 <<: *babeltrace_builders_glib-2-28-6
554 <<: *babeltrace_publishers_defaults
561 regex: 'babeltrace[-_].*'
568 github_user: efficios
569 github_name: babeltrace
570 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
575 - '{job_prefix}babeltrace_{version}_{buildtype}':
576 buildtype: linuxbuild
577 platforms: !!python/tuple [deb12-amd64]
578 builds: !!python/tuple [std, oot, dist, oot-dist]
579 confs: !!python/tuple [std, static, prod, min, doc, asan]
580 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
581 touchstone: '(build == "std") && (conf == "std")'
582 - '{job_prefix}babeltrace_{version}_{buildtype}':
584 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
585 builds: !!python/tuple [std]
586 confs: !!python/tuple [std, prod]
588 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
589 - '{job_prefix}babeltrace_{version}_{buildtype}':
591 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
592 builds: !!python/tuple [std]
593 confs: !!python/tuple [std, prod]
596 - '{job_prefix}babeltrace_{version}_{buildtype}':
598 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
599 builds: !!python/tuple [std]
600 confs: !!python/tuple [std, prod]
603 - '{job_prefix}babeltrace_{version}_{buildtype}':
604 buildtype: yoctobuild
605 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
606 builds: !!python/tuple [std]
607 confs: !!python/tuple [std]
610 - '{job_prefix}babeltrace_{version}_{buildtype}':
611 buildtype: macosbuild
612 platforms: !!python/tuple [macos-amd64, macos-arm64]
613 builds: !!python/tuple [std]
614 confs: !!python/tuple [std, prod]
617 - '{job_prefix}babeltrace_{version}_{buildtype}':
618 buildtype: freebsdbuild
619 platforms: !!python/tuple [freebsd-amd64]
620 builds: !!python/tuple [std]
621 confs: !!python/tuple [std, prod]
624 - '{job_prefix}babeltrace_{version}_{buildtype}':
626 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
627 builds: !!python/tuple [std]
628 confs: !!python/tuple [std]
631 - 'babeltrace_{version}_{cctype}':
633 platforms: !!python/tuple [deb12-amd64]
634 builds: !!python/tuple [std]
635 confs: !!python/tuple [std, static, prod]
636 ccs: !!python/tuple [clang-13, clang-14, clang-15]
639 - 'babeltrace_{version}_release':
641 - 'babeltrace_{version}_scan-build'
642 - 'babeltrace_{version}_pylint'
643 - 'babeltrace_{version}_coverity':
645 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
649 name: review-babeltrace
651 github_user: efficios
652 github_name: babeltrace
659 - 'dev_review_babeltrace_{version}_{buildtype}':
661 buildtype: linuxbuild
662 platforms: !!python/tuple [deb12-amd64]
663 builds: !!python/tuple [std, oot, dist, oot-dist]
664 confs: !!python/tuple [std, static, prod, min]
667 warnings_status: FAILED
668 - 'dev_review_babeltrace_{version}_{buildtype}':
671 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
672 builds: !!python/tuple [std]
673 confs: !!python/tuple [std]
676 warnings_status: FAILED
677 - 'dev_review_babeltrace_{version}_{buildtype}':
679 buildtype: macosbuild
680 platforms: !!python/tuple [macos-amd64, macos-arm64]
681 builds: !!python/tuple [std]
682 confs: !!python/tuple [std, prod]
685 warnings_status: FAILED
686 - 'dev_review_babeltrace_{version}_{buildtype}':
689 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
690 builds: !!python/tuple [std]
691 confs: !!python/tuple [std]
694 warnings_status: FAILED
696 ## ctf2 temp branch ##
697 - 'dev_review_babeltrace_{version}_{buildtype}':
699 buildtype: linuxbuild
700 platforms: !!python/tuple [deb12-amd64]
701 builds: !!python/tuple [std, oot, dist, oot-dist]
702 confs: !!python/tuple [std, static, prod, min]
705 warnings_status: FAILED
706 - 'dev_review_babeltrace_{version}_{buildtype}':
709 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
710 builds: !!python/tuple [std]
711 confs: !!python/tuple [std]
714 warnings_status: FAILED
715 - 'dev_review_babeltrace_{version}_{buildtype}':
717 buildtype: macosbuild
718 platforms: !!python/tuple [macos-amd64, macos-arm64]
719 builds: !!python/tuple [std]
720 confs: !!python/tuple [std, prod]
723 warnings_status: FAILED
724 - 'dev_review_babeltrace_{version}_{buildtype}':
727 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
728 builds: !!python/tuple [std]
729 confs: !!python/tuple [std]
732 warnings_status: FAILED
735 - 'dev_review_babeltrace_{version}_{buildtype}':
737 buildtype: linuxbuild
738 platforms: !!python/tuple [deb12-amd64]
739 builds: !!python/tuple [std, oot, dist, oot-dist]
740 confs: !!python/tuple [std, static, prod, min]
743 warnings_status: WARNING
744 - 'dev_review_babeltrace_{version}_{buildtype}':
747 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
748 builds: !!python/tuple [std]
749 confs: !!python/tuple [std]
752 warnings_status: WARNING
753 - 'dev_review_babeltrace_{version}_{buildtype}':
755 buildtype: macosbuild
756 platforms: !!python/tuple [macos-amd64, macos-arm64]
757 builds: !!python/tuple [std]
758 confs: !!python/tuple [std, prod]
761 warnings_status: WARNING
762 - 'dev_review_babeltrace_{version}_{buildtype}':
765 platforms: !!python/tuple [cygwin64, msys2-ucrt64]
766 builds: !!python/tuple [std]
767 confs: !!python/tuple [std]
770 warnings_status: WARNING
773 - 'dev_review_babeltrace_{version}_smokebuild':
774 platforms: !!python/tuple [deb12-amd64]
775 builds: !!python/tuple [oot-dist]
776 confs: !!python/tuple [std]
779 - 'dev_review_babeltrace_{version}_check-format'
780 - 'dev_review_babeltrace_{version}_pylint'
784 name: dev_upstream_babeltrace
785 job_prefix: dev_upstream_
786 github_user: efficios
787 github_name: babeltrace
788 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
792 - '{job_prefix}babeltrace_{version}_{buildtype}':
793 buildtype: linuxbuild
794 platforms: !!python/tuple [deb12-amd64]
795 builds: !!python/tuple [std, oot, dist, oot-dist]
796 confs: !!python/tuple [std, static, python-bindings]
798 touchstone: '(build == "std") && (conf == "std")'
799 - '{job_prefix}babeltrace_{version}_{buildtype}':
801 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
802 builds: !!python/tuple [std]
803 confs: !!python/tuple [std, python-bindings]
805 touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
806 - '{job_prefix}babeltrace_{version}_{buildtype}':
808 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
809 builds: !!python/tuple [std]
810 confs: !!python/tuple [std]
813 - '{job_prefix}babeltrace_{version}_{buildtype}':
815 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
816 builds: !!python/tuple [std]
817 confs: !!python/tuple [std]
820 - 'babeltrace_{version}_release':
825 name: babeltrace-jgalar-staging
826 job_prefix: 'dev_jgalar_'
828 github_name: babeltrace
829 email_to: "jgalar@efficios.com"
833 - '{job_prefix}babeltrace_{version}_{buildtype}':
834 buildtype: linuxbuild
835 platforms: !!python/tuple [deb12-amd64]
836 builds: !!python/tuple [std, oot, dist, oot-dist]
837 confs: !!python/tuple [std, static, python-bindings]
840 - '{job_prefix}babeltrace_{version}_{buildtype}':
841 buildtype: macosbuild
842 platforms: !!python/tuple [macos-amd64, macos-arm64]
843 builds: !!python/tuple [std]
844 confs: !!python/tuple [std]
850 name: babeltrace2-jgalar-staging
851 job_prefix: 'dev_jgalar_'
853 github_name: babeltrace
854 email_to: "jgalar@efficios.com"
859 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
862 - '{job_prefix}babeltrace_{version}_{buildtype}':
863 buildtype: linuxbuild
864 platforms: !!python/tuple [deb12-amd64]
865 builds: !!python/tuple [std, oot, dist, oot-dist]
866 confs: !!python/tuple [std, static, prod, min]
869 - '{job_prefix}babeltrace_{version}_{buildtype}':
870 buildtype: macosbuild
871 platforms: !!python/tuple [macos-amd64, macos-arm64]
872 builds: !!python/tuple [std]
873 confs: !!python/tuple [std, prod]
878 name: babeltrace2-mjeanson
879 job_prefix: 'dev_mjeanson_'
880 github_user: efficios
881 github_name: babeltrace
882 email_to: "mjeanson@efficios.com"
886 - '{job_prefix}babeltrace_{version}_{buildtype}':
888 platforms: !!python/tuple [sid-riscv64]
889 builds: !!python/tuple [std]
890 confs: !!python/tuple [std, prod]
893 - '{job_prefix}babeltrace_{version}_{buildtype}':
895 platforms: !!python/tuple [deb12-amd64]
896 builds: !!python/tuple [std]
897 confs: !!python/tuple [std, prod]
902 name: babeltrace-views