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/**'
220 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
223 - ircbot: &babeltrace_publisher_ircbot_defaults
224 strategy: statechange-only
225 message-type: summary-scm
226 matrix-notifier: only-configurations
227 - email-ext: &babeltrace_publisher_email-ext_defaults
228 recipients: '{obj:email_to}'
229 reply-to: ci-notification@lists.lttng.org
238 second-failure: false
243 fixed-unhealthy: true
244 still-unstable: false
246 matrix-trigger: only-parent
250 - job-template: &babeltrace_publishers_review
251 name: 'babeltrace_publishers_review'
253 - tap: *babeltrace_publisher_tap_defaults
254 # Fail job on any compiler warnings
257 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
259 <io.jenkins.plugins.analysis.warnings.Gcc4>
262 <jenkins plugin="plugin-util-api"/>
265 <skipSymbolicLinks>false</skipSymbolicLinks>
266 </io.jenkins.plugins.analysis.warnings.Gcc4>
268 <sourceCodeEncoding/>
271 <ignoreQualityGate>false</ignoreQualityGate>
272 <ignoreFailedBuilds>true</ignoreFailedBuilds>
273 <failOnError>false</failOnError>
275 <unhealthy>0</unhealthy>
276 <minimumSeverity plugin="analysis-model-api">
280 <isEnabledForFailure>true</isEnabledForFailure>
281 <isAggregatingResults>true</isAggregatingResults>
282 <isBlameDisabled>false</isBlameDisabled>
283 <skipPublishingChecks>true</skipPublishingChecks>
284 <publishAllIssues>false</publishAllIssues>
286 <io.jenkins.plugins.analysis.core.util.QualityGate>
287 <threshold>1</threshold>
289 <status>{warnings_status}</status>
290 </io.jenkins.plugins.analysis.core.util.QualityGate>
292 <trendChartType>AGGREGATION_TOOLS</trendChartType>
294 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
295 - archive: *babeltrace_publisher_archive_defaults
296 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
302 name: '{job_prefix}babeltrace_{version}_{buildtype}'
305 <<: *babeltrace_matrix_axes_defaults
306 <<: *babeltrace_builders_defaults
307 <<: *babeltrace_publishers_defaults
310 name: babeltrace_{version}_{cctype}
313 <<: *babeltrace_matrix_axes_cc
314 <<: *babeltrace_builders_defaults
315 <<: *babeltrace_publishers_defaults
318 name: 'dev_review_babeltrace_{version}_{buildtype}'
323 - git: &babeltrace_scm_git_review
324 url: https://review.lttng.org/babeltrace
325 refspec: 'refs/changes/*:refs/changes/*'
328 basedir: src/babeltrace
332 - gerrit: &babeltrace_trigger_gerrit_defaults
334 - comment-added-event:
335 approval-category: 'CI-Build'
338 - project-compare-type: 'PLAIN'
339 project-pattern: 'babeltrace'
341 - branch-compare-type: 'PLAIN'
342 branch-pattern: '{version}'
346 properties-content: |
347 PROJECT_NAME=babeltrace
353 - 'gerrit-{buildtype}'
355 <<: *babeltrace_matrix_axes_defaults
356 <<: *babeltrace_builders_defaults
357 <<: *babeltrace_publishers_review
360 name: 'dev_review_babeltrace_{version}_pylint'
365 - git: *babeltrace_scm_git_review
368 - gerrit: *babeltrace_trigger_gerrit_defaults
374 !include-raw-escape: scripts/babeltrace/pylint.sh
378 properties-content: |
379 PROJECT_NAME=babeltrace
384 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
387 name: 'dev_review_babeltrace_{version}_smokebuild'
392 - git: *babeltrace_scm_git_review
395 - gerrit: &babeltrace_trigger_gerrit_smoke
397 - comment-added-event:
398 approval-category: 'Smoke-Build'
401 - project-compare-type: 'PLAIN'
402 project-pattern: 'babeltrace'
404 - branch-compare-type: 'PLAIN'
405 branch-pattern: '{version}'
415 properties-content: |
416 PROJECT_NAME=babeltrace
417 BABELTRACE_RUN_TESTS=no
421 <<: *babeltrace_matrix_axes_defaults
422 <<: *babeltrace_builders_defaults
425 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
428 name: 'dev_review_babeltrace_{version}_check-format'
433 - git: *babeltrace_scm_git_review
436 - gerrit: *babeltrace_trigger_gerrit_smoke
442 !include-raw-escape: scripts/common/check-format.sh
446 properties-content: |
447 PROJECT_NAME=babeltrace
453 artifacts: 'clang-format-fixes.diff'
455 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
458 name: babeltrace_{version}_release
468 <<: *babeltrace_scm_git_default
469 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
471 - '*/tags/{version}.*'
475 !include-raw-escape: scripts/babeltrace/release.sh
478 - tap: *babeltrace_publisher_tap_defaults
479 - raw: *babeltrace_publisher_warnings-ng_defaults
480 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
482 artifacts: 'out/**,tap/**'
485 - ircbot: *babeltrace_publisher_ircbot_defaults
488 name: babeltrace_{version}_scan-build
498 !include-raw-escape: scripts/common/scan-build.sh
501 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
504 dir: 'scan-build-archive/'
506 - ircbot: *babeltrace_publisher_ircbot_defaults
509 name: babeltrace_{version}_coverity
518 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
519 - timeout: *babeltrace_wrapper_timeout_defaults
522 - credentials-binding:
523 - username-password-separated:
524 credential-id: babeltrace_coverity_token
525 username: COVERITY_SCAN_PROJECT_NAME
526 password: COVERITY_SCAN_TOKEN
530 !include-raw-escape: scripts/common/coverity.sh
533 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
535 artifacts: 'analysis-results.tgz,cov-int/**'
537 - ircbot: *babeltrace_publisher_ircbot_defaults
540 name: babeltrace_{version}_pylint
550 !include-raw-escape: scripts/babeltrace/pylint.sh
553 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
555 artifacts: 'black.out,flake8.out'
557 - ircbot: *babeltrace_publisher_ircbot_defaults
558 - email-ext: *babeltrace_publisher_email-ext_defaults
561 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
565 <<: *babeltrace_builders_glib-2-28-6
566 <<: *babeltrace_publishers_defaults
573 regex: 'babeltrace[-_].*'
580 github_user: efficios
581 github_name: babeltrace
582 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
587 - '{job_prefix}babeltrace_{version}_{buildtype}':
588 buildtype: linuxbuild
589 platforms: !!python/tuple [jammy-amd64]
590 builds: !!python/tuple [std, oot, dist, oot-dist]
591 confs: !!python/tuple [std, static, prod, min, doc, asan]
592 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
593 touchstone: '(build == "std") && (conf == "std")'
594 - '{job_prefix}babeltrace_{version}_{buildtype}':
596 platforms: !!python/tuple [bionic-amd64]
597 builds: !!python/tuple [std, oot, dist, oot-dist]
598 confs: !!python/tuple [std, static, prod, min, doc, asan]
599 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
600 touchstone: '(build == "std") && (conf == "std")'
601 - '{job_prefix}babeltrace_{version}_{buildtype}':
603 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
604 builds: !!python/tuple [std]
605 confs: !!python/tuple [std, prod]
607 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
608 - '{job_prefix}babeltrace_{version}_{buildtype}':
610 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
611 builds: !!python/tuple [std]
612 confs: !!python/tuple [std, prod]
615 - '{job_prefix}babeltrace_{version}_{buildtype}':
617 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
618 builds: !!python/tuple [std]
619 confs: !!python/tuple [std, prod]
622 - '{job_prefix}babeltrace_{version}_{buildtype}':
623 buildtype: yoctobuild
624 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
625 builds: !!python/tuple [std]
626 confs: !!python/tuple [std]
629 - '{job_prefix}babeltrace_{version}_{buildtype}':
630 buildtype: macosbuild
631 platforms: !!python/tuple [macos-amd64, macos-arm64]
632 builds: !!python/tuple [std]
633 confs: !!python/tuple [std, prod]
636 - '{job_prefix}babeltrace_{version}_{buildtype}':
637 buildtype: freebsdbuild
638 platforms: !!python/tuple [freebsd-amd64]
639 builds: !!python/tuple [std]
640 confs: !!python/tuple [std, prod]
643 - '{job_prefix}babeltrace_{version}_{buildtype}':
645 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
646 builds: !!python/tuple [std]
647 confs: !!python/tuple [std]
650 - 'babeltrace_{version}_{cctype}':
652 platforms: !!python/tuple [bionic-amd64]
653 builds: !!python/tuple [std]
654 confs: !!python/tuple [std, static, prod]
655 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
658 - 'babeltrace_{version}_release':
660 - 'babeltrace_{version}_scan-build'
661 - 'babeltrace_{version}_pylint'
662 - 'babeltrace_{version}_coverity':
664 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
668 name: review-babeltrace
670 github_user: efficios
671 github_name: babeltrace
677 - 'dev_review_babeltrace_{version}_{buildtype}':
680 platforms: !!python/tuple [bionic-amd64]
681 builds: !!python/tuple [std, oot, dist, oot-dist]
682 confs: !!python/tuple [std, static, prod, min]
685 warnings_status: FAILED
686 - 'dev_review_babeltrace_{version}_{buildtype}':
689 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
690 builds: !!python/tuple [std]
691 confs: !!python/tuple [std]
694 warnings_status: FAILED
695 - 'dev_review_babeltrace_{version}_{buildtype}':
697 buildtype: macosbuild
698 platforms: !!python/tuple [macos-amd64, macos-arm64]
699 builds: !!python/tuple [std]
700 confs: !!python/tuple [std, prod]
703 warnings_status: FAILED
704 - 'dev_review_babeltrace_{version}_{buildtype}':
707 platforms: !!python/tuple [cygwin64, msys2-mingw64]
708 builds: !!python/tuple [std]
709 confs: !!python/tuple [std]
712 warnings_status: FAILED
715 - 'dev_review_babeltrace_{version}_{buildtype}':
718 platforms: !!python/tuple [bionic-amd64]
719 builds: !!python/tuple [std, oot, dist, oot-dist]
720 confs: !!python/tuple [std, static, prod, min]
723 warnings_status: WARNING
724 - 'dev_review_babeltrace_{version}_{buildtype}':
727 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
728 builds: !!python/tuple [std]
729 confs: !!python/tuple [std]
732 warnings_status: WARNING
733 - 'dev_review_babeltrace_{version}_{buildtype}':
735 buildtype: macosbuild
736 platforms: !!python/tuple [macos-amd64, macos-arm64]
737 builds: !!python/tuple [std]
738 confs: !!python/tuple [std, prod]
741 warnings_status: WARNING
742 - 'dev_review_babeltrace_{version}_{buildtype}':
745 platforms: !!python/tuple [cygwin64, msys2-mingw64]
746 builds: !!python/tuple [std]
747 confs: !!python/tuple [std]
750 warnings_status: WARNING
753 - 'dev_review_babeltrace_{version}_smokebuild':
754 platforms: !!python/tuple [jammy-amd64]
755 builds: !!python/tuple [oot-dist]
756 confs: !!python/tuple [std]
759 - 'dev_review_babeltrace_{version}_check-format'
760 - 'dev_review_babeltrace_{version}_pylint'
764 name: dev_upstream_babeltrace
765 job_prefix: dev_upstream_
766 github_user: efficios
767 github_name: babeltrace
768 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
772 - '{job_prefix}babeltrace_{version}_{buildtype}':
773 buildtype: linuxbuild
774 platforms: !!python/tuple [jammy-amd64]
775 builds: !!python/tuple [std, oot, dist, oot-dist]
776 confs: !!python/tuple [std, static, python-bindings]
778 touchstone: '(build == "std") && (conf == "std")'
779 - '{job_prefix}babeltrace_{version}_{buildtype}':
781 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
782 builds: !!python/tuple [std]
783 confs: !!python/tuple [std, python-bindings]
785 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
786 - '{job_prefix}babeltrace_{version}_{buildtype}':
788 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
789 builds: !!python/tuple [std]
790 confs: !!python/tuple [std]
793 - '{job_prefix}babeltrace_{version}_{buildtype}':
795 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
796 builds: !!python/tuple [std]
797 confs: !!python/tuple [std]
800 - 'babeltrace_{version}_release':
805 name: babeltrace-jgalar-staging
806 job_prefix: 'dev_jgalar_'
808 github_name: babeltrace
809 email_to: "jgalar@efficios.com"
813 - '{job_prefix}babeltrace_{version}_{buildtype}':
815 platforms: !!python/tuple [bionic-amd64]
816 builds: !!python/tuple [std, oot, dist, oot-dist]
817 confs: !!python/tuple [std, static, python-bindings]
820 - '{job_prefix}babeltrace_{version}_{buildtype}':
821 buildtype: macosbuild
822 platforms: !!python/tuple [macos-amd64, macos-arm64]
823 builds: !!python/tuple [std]
824 confs: !!python/tuple [std]
830 name: babeltrace2-jgalar-staging
831 job_prefix: 'dev_jgalar_'
833 github_name: babeltrace
834 email_to: "jgalar@efficios.com"
839 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
842 - '{job_prefix}babeltrace_{version}_{buildtype}':
844 platforms: !!python/tuple [bionic-amd64]
845 builds: !!python/tuple [std, oot, dist, oot-dist]
846 confs: !!python/tuple [std, static, prod, min]
849 - '{job_prefix}babeltrace_{version}_{buildtype}':
850 buildtype: macosbuild
851 platforms: !!python/tuple [macos-amd64, macos-arm64]
852 builds: !!python/tuple [std]
853 confs: !!python/tuple [std, prod]
858 name: babeltrace-views