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
151 platform=bionic-amd64
155 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz
156 tar xvf glib-2.28.6.tar.gz
159 ./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
160 make -j `nproc` >/dev/null 2>&1 # Hide warnings
164 - scripts/common/print.sh
165 - scripts/babeltrace/build.sh
167 - job-template: &babeltrace_publishers_defaults
168 name: 'babeltrace_publishers_defaults'
170 - tap: &babeltrace_publisher_tap_defaults
171 results: 'tap/**/*.log'
172 fail-if-no-results: true
173 failed-tests-mark-build-as-failure: true
174 include-comment-diagnostics: true
175 output-tap-to-console: false
176 todo-is-failure: false
177 - raw: &babeltrace_publisher_warnings-ng_defaults
179 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
181 <io.jenkins.plugins.analysis.warnings.Gcc4>
184 <jenkins plugin="plugin-util-api"/>
187 <skipSymbolicLinks>false</skipSymbolicLinks>
188 </io.jenkins.plugins.analysis.warnings.Gcc4>
190 <sourceCodeEncoding/>
193 <ignoreQualityGate>false</ignoreQualityGate>
194 <ignoreFailedBuilds>true</ignoreFailedBuilds>
195 <failOnError>false</failOnError>
197 <unhealthy>0</unhealthy>
198 <minimumSeverity plugin="analysis-model-api">
202 <isEnabledForFailure>true</isEnabledForFailure>
203 <isAggregatingResults>true</isAggregatingResults>
204 <isBlameDisabled>false</isBlameDisabled>
205 <skipPublishingChecks>true</skipPublishingChecks>
206 <publishAllIssues>false</publishAllIssues>
208 <io.jenkins.plugins.analysis.core.util.QualityGate>
209 <threshold>1</threshold>
211 <status>WARNING</status>
212 </io.jenkins.plugins.analysis.core.util.QualityGate>
214 <trendChartType>AGGREGATION_TOOLS</trendChartType>
216 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
217 - archive: &babeltrace_publisher_archive_defaults
218 artifacts: 'build/**,tap/**,log/**'
219 follow-symlinks: true
221 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
224 - ircbot: &babeltrace_publisher_ircbot_defaults
225 strategy: statechange-only
226 message-type: summary
227 matrix-notifier: only-parent
228 - email-ext: &babeltrace_publisher_email-ext_defaults
229 recipients: '{obj:email_to}'
230 reply-to: ci-notification@lists.lttng.org
239 second-failure: false
244 fixed-unhealthy: true
245 still-unstable: false
247 matrix-trigger: only-parent
251 - job-template: &babeltrace_publishers_review
252 name: 'babeltrace_publishers_review'
254 - tap: *babeltrace_publisher_tap_defaults
255 # Fail job on any compiler warnings
258 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
260 <io.jenkins.plugins.analysis.warnings.Gcc4>
263 <jenkins plugin="plugin-util-api"/>
266 <skipSymbolicLinks>false</skipSymbolicLinks>
267 </io.jenkins.plugins.analysis.warnings.Gcc4>
269 <sourceCodeEncoding/>
272 <ignoreQualityGate>false</ignoreQualityGate>
273 <ignoreFailedBuilds>true</ignoreFailedBuilds>
274 <failOnError>false</failOnError>
276 <unhealthy>0</unhealthy>
277 <minimumSeverity plugin="analysis-model-api">
281 <isEnabledForFailure>true</isEnabledForFailure>
282 <isAggregatingResults>true</isAggregatingResults>
283 <isBlameDisabled>false</isBlameDisabled>
284 <skipPublishingChecks>true</skipPublishingChecks>
285 <publishAllIssues>false</publishAllIssues>
287 <io.jenkins.plugins.analysis.core.util.QualityGate>
288 <threshold>1</threshold>
290 <status>{warnings_status}</status>
291 </io.jenkins.plugins.analysis.core.util.QualityGate>
293 <trendChartType>AGGREGATION_TOOLS</trendChartType>
295 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
296 - archive: *babeltrace_publisher_archive_defaults
297 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
303 name: '{job_prefix}babeltrace_{version}_{buildtype}'
306 <<: *babeltrace_matrix_axes_defaults
307 <<: *babeltrace_builders_defaults
308 <<: *babeltrace_publishers_defaults
311 name: babeltrace_{version}_{cctype}
314 <<: *babeltrace_matrix_axes_cc
315 <<: *babeltrace_builders_defaults
316 <<: *babeltrace_publishers_defaults
319 name: 'dev_review_babeltrace_{version}_{buildtype}'
324 - git: &babeltrace_scm_git_review
325 url: https://review.lttng.org/babeltrace
326 refspec: 'refs/changes/*:refs/changes/*'
329 basedir: src/babeltrace
333 - gerrit: &babeltrace_trigger_gerrit_defaults
335 - comment-added-event:
336 approval-category: 'CI-Build'
339 - project-compare-type: 'PLAIN'
340 project-pattern: 'babeltrace'
342 - branch-compare-type: 'PLAIN'
343 branch-pattern: '{version}'
347 properties-content: |
348 PROJECT_NAME=babeltrace
354 - 'gerrit-{buildtype}'
356 <<: *babeltrace_matrix_axes_defaults
357 <<: *babeltrace_builders_defaults
358 <<: *babeltrace_publishers_review
361 name: 'dev_review_babeltrace_{version}_pylint'
366 - git: *babeltrace_scm_git_review
369 - gerrit: *babeltrace_trigger_gerrit_defaults
375 !include-raw-escape: scripts/babeltrace/pylint.sh
379 properties-content: |
380 PROJECT_NAME=babeltrace
385 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
388 name: 'dev_review_babeltrace_{version}_smokebuild'
393 - git: *babeltrace_scm_git_review
396 - gerrit: &babeltrace_trigger_gerrit_smoke
398 - comment-added-event:
399 approval-category: 'Smoke-Build-Lvl1'
402 - project-compare-type: 'PLAIN'
403 project-pattern: 'babeltrace'
405 - branch-compare-type: 'PLAIN'
406 branch-pattern: '{version}'
416 properties-content: |
417 PROJECT_NAME=babeltrace
418 BABELTRACE_RUN_TESTS=no
422 <<: *babeltrace_matrix_axes_defaults
423 <<: *babeltrace_builders_defaults
426 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
429 name: 'dev_review_babeltrace_{version}_check-format'
434 - git: *babeltrace_scm_git_review
437 - gerrit: *babeltrace_trigger_gerrit_smoke
443 !include-raw-escape: scripts/common/check-format.sh
447 properties-content: |
448 PROJECT_NAME=babeltrace
454 artifacts: 'clang-format-fixes.diff'
456 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
459 name: babeltrace_{version}_release
469 <<: *babeltrace_scm_git_default
470 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
472 - '*/tags/{version}.*'
476 !include-raw-escape: scripts/babeltrace/release.sh
479 - tap: *babeltrace_publisher_tap_defaults
480 - raw: *babeltrace_publisher_warnings-ng_defaults
481 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
483 artifacts: 'out/**,tap/**'
486 - ircbot: *babeltrace_publisher_ircbot_defaults
489 name: babeltrace_{version}_scan-build
499 !include-raw-escape: scripts/common/scan-build.sh
502 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
505 dir: 'scan-build-archive/'
507 - ircbot: *babeltrace_publisher_ircbot_defaults
510 name: babeltrace_{version}_coverity
519 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
520 - timeout: *babeltrace_wrapper_timeout_defaults
523 - credentials-binding:
524 - username-password-separated:
525 credential-id: babeltrace_coverity_token
526 username: COVERITY_SCAN_PROJECT_NAME
527 password: COVERITY_SCAN_TOKEN
531 !include-raw-escape: scripts/common/coverity.sh
534 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
536 artifacts: 'analysis-results.tgz,cov-int/**'
538 - ircbot: *babeltrace_publisher_ircbot_defaults
541 name: babeltrace_{version}_pylint
551 !include-raw-escape: scripts/babeltrace/pylint.sh
554 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
556 artifacts: 'black.out,flake8.out'
558 - ircbot: *babeltrace_publisher_ircbot_defaults
559 - email-ext: *babeltrace_publisher_email-ext_defaults
562 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
566 <<: *babeltrace_builders_glib-2-28-6
567 <<: *babeltrace_publishers_defaults
574 regex: 'babeltrace[-_].*'
581 github_user: efficios
582 github_name: babeltrace
583 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
588 - '{job_prefix}babeltrace_{version}_{buildtype}':
589 buildtype: linuxbuild
590 platforms: !!python/tuple [jammy-amd64]
591 builds: !!python/tuple [std, oot, dist, oot-dist]
592 confs: !!python/tuple [std, static, prod, min, doc, asan]
593 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
594 touchstone: '(build == "std") && (conf == "std")'
595 - '{job_prefix}babeltrace_{version}_{buildtype}':
597 platforms: !!python/tuple [bionic-amd64]
598 builds: !!python/tuple [std, oot, dist, oot-dist]
599 confs: !!python/tuple [std, static, prod, min, doc, asan]
600 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
601 touchstone: '(build == "std") && (conf == "std")'
602 - '{job_prefix}babeltrace_{version}_{buildtype}':
604 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb12-arm64, deb12-ppc64el, deb11-i386, deb12-i386]
605 builds: !!python/tuple [std]
606 confs: !!python/tuple [std, prod]
608 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
609 - '{job_prefix}babeltrace_{version}_{buildtype}':
611 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
612 builds: !!python/tuple [std]
613 confs: !!python/tuple [std, prod]
616 - '{job_prefix}babeltrace_{version}_{buildtype}':
618 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
619 builds: !!python/tuple [std]
620 confs: !!python/tuple [std, prod]
623 - '{job_prefix}babeltrace_{version}_{buildtype}':
624 buildtype: yoctobuild
625 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
626 builds: !!python/tuple [std]
627 confs: !!python/tuple [std]
630 - '{job_prefix}babeltrace_{version}_{buildtype}':
631 buildtype: macosbuild
632 platforms: !!python/tuple [macos-amd64, macos-arm64]
633 builds: !!python/tuple [std]
634 confs: !!python/tuple [std, prod]
637 - '{job_prefix}babeltrace_{version}_{buildtype}':
638 buildtype: freebsdbuild
639 platforms: !!python/tuple [freebsd-amd64]
640 builds: !!python/tuple [std]
641 confs: !!python/tuple [std, prod]
644 - '{job_prefix}babeltrace_{version}_{buildtype}':
646 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
647 builds: !!python/tuple [std]
648 confs: !!python/tuple [std]
651 - 'babeltrace_{version}_{cctype}':
653 platforms: !!python/tuple [bionic-amd64]
654 builds: !!python/tuple [std]
655 confs: !!python/tuple [std, static, prod]
656 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
659 - 'babeltrace_{version}_release':
661 - 'babeltrace_{version}_scan-build'
662 - 'babeltrace_{version}_pylint'
663 - 'babeltrace_{version}_coverity':
665 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
669 name: review-babeltrace
671 github_user: efficios
672 github_name: babeltrace
678 - 'dev_review_babeltrace_{version}_{buildtype}':
681 platforms: !!python/tuple [bionic-amd64]
682 builds: !!python/tuple [std, oot, dist, oot-dist]
683 confs: !!python/tuple [std, static, prod, min]
686 warnings_status: FAILED
687 - 'dev_review_babeltrace_{version}_{buildtype}':
690 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb12-arm64, deb12-ppc64el, deb11-i386, deb12-i386]
691 builds: !!python/tuple [std]
692 confs: !!python/tuple [std]
695 warnings_status: FAILED
696 - 'dev_review_babeltrace_{version}_{buildtype}':
698 buildtype: macosbuild
699 platforms: !!python/tuple [macos-amd64, macos-arm64]
700 builds: !!python/tuple [std]
701 confs: !!python/tuple [std, prod]
704 warnings_status: FAILED
705 - 'dev_review_babeltrace_{version}_{buildtype}':
708 platforms: !!python/tuple [cygwin64, msys2-mingw64]
709 builds: !!python/tuple [std]
710 confs: !!python/tuple [std]
713 warnings_status: FAILED
716 - 'dev_review_babeltrace_{version}_{buildtype}':
719 platforms: !!python/tuple [bionic-amd64]
720 builds: !!python/tuple [std, oot, dist, oot-dist]
721 confs: !!python/tuple [std, static, prod, min]
724 warnings_status: WARNING
725 - 'dev_review_babeltrace_{version}_{buildtype}':
728 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb12-arm64, deb12-ppc64el, deb11-i386, deb12-i386]
729 builds: !!python/tuple [std]
730 confs: !!python/tuple [std]
733 warnings_status: WARNING
734 - 'dev_review_babeltrace_{version}_{buildtype}':
736 buildtype: macosbuild
737 platforms: !!python/tuple [macos-amd64, macos-arm64]
738 builds: !!python/tuple [std]
739 confs: !!python/tuple [std, prod]
742 warnings_status: WARNING
743 - 'dev_review_babeltrace_{version}_{buildtype}':
746 platforms: !!python/tuple [cygwin64, msys2-mingw64]
747 builds: !!python/tuple [std]
748 confs: !!python/tuple [std]
751 warnings_status: WARNING
754 - 'dev_review_babeltrace_{version}_smokebuild':
755 platforms: !!python/tuple [jammy-amd64]
756 builds: !!python/tuple [oot-dist]
757 confs: !!python/tuple [std]
760 - 'dev_review_babeltrace_{version}_check-format'
761 - 'dev_review_babeltrace_{version}_pylint'
765 name: dev_upstream_babeltrace
766 job_prefix: dev_upstream_
767 github_user: efficios
768 github_name: babeltrace
769 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
773 - '{job_prefix}babeltrace_{version}_{buildtype}':
774 buildtype: linuxbuild
775 platforms: !!python/tuple [jammy-amd64]
776 builds: !!python/tuple [std, oot, dist, oot-dist]
777 confs: !!python/tuple [std, static, python-bindings]
779 touchstone: '(build == "std") && (conf == "std")'
780 - '{job_prefix}babeltrace_{version}_{buildtype}':
782 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb12-arm64, deb12-ppc64el, deb11-i386, deb12-i386]
783 builds: !!python/tuple [std]
784 confs: !!python/tuple [std, python-bindings]
786 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
787 - '{job_prefix}babeltrace_{version}_{buildtype}':
789 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
790 builds: !!python/tuple [std]
791 confs: !!python/tuple [std]
794 - '{job_prefix}babeltrace_{version}_{buildtype}':
796 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
797 builds: !!python/tuple [std]
798 confs: !!python/tuple [std]
801 - 'babeltrace_{version}_release':
806 name: babeltrace-jgalar-staging
807 job_prefix: 'dev_jgalar_'
809 github_name: babeltrace
810 email_to: "jgalar@efficios.com"
814 - '{job_prefix}babeltrace_{version}_{buildtype}':
816 platforms: !!python/tuple [bionic-amd64]
817 builds: !!python/tuple [std, oot, dist, oot-dist]
818 confs: !!python/tuple [std, static, python-bindings]
821 - '{job_prefix}babeltrace_{version}_{buildtype}':
822 buildtype: macosbuild
823 platforms: !!python/tuple [macos-amd64, macos-arm64]
824 builds: !!python/tuple [std]
825 confs: !!python/tuple [std]
831 name: babeltrace2-jgalar-staging
832 job_prefix: 'dev_jgalar_'
834 github_name: babeltrace
835 email_to: "jgalar@efficios.com"
840 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
843 - '{job_prefix}babeltrace_{version}_{buildtype}':
845 platforms: !!python/tuple [bionic-amd64]
846 builds: !!python/tuple [std, oot, dist, oot-dist]
847 confs: !!python/tuple [std, static, prod, min]
850 - '{job_prefix}babeltrace_{version}_{buildtype}':
851 buildtype: macosbuild
852 platforms: !!python/tuple [macos-amd64, macos-arm64]
853 builds: !!python/tuple [std]
854 confs: !!python/tuple [std, prod]
859 name: babeltrace2-mjeanson
860 job_prefix: 'dev_mjeanson_'
861 github_user: efficios
862 github_name: babeltrace
863 email_to: "mjeanson@efficios.com"
867 - '{job_prefix}babeltrace_{version}_{buildtype}':
869 platforms: !!python/tuple [sid-riscv64]
870 builds: !!python/tuple [std]
871 confs: !!python/tuple [std, prod]
876 name: babeltrace-views