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>"
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 - babeltrace_matrix_axes_defaults: &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 - babeltrace_matrix_axes_cc: &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 - babeltrace_builders_defaults: &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 - babeltrace_builders_glib-2-28-6: &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 - babeltrace_publishers_defaults: &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 - babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
251 name: 'babeltrace_publishers_gerrit'
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>FAILED</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_gerrit_babeltrace_{buildtype}
324 url: https://review.lttng.org/babeltrace
325 refspec: 'refs/changes/*:refs/changes/*'
328 basedir: src/babeltrace
334 - comment-added-event:
335 approval-category: 'CI-Build'
338 - project-compare-type: 'PLAIN'
339 project-pattern: 'babeltrace'
341 - branch-compare-type: 'ANT'
346 properties-content: |
347 PROJECT_NAME=babeltrace
353 - 'gerrit-{buildtype}'
355 <<: *babeltrace_matrix_axes_defaults
356 <<: *babeltrace_builders_defaults
357 <<: *babeltrace_publishers_gerrit
360 name: babeltrace_{version}_release
370 url: https://github.com/{github_user}/{github_name}.git
372 browser-url: https://github.com/{github_user}/{github_name}
373 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
375 - '*/tags/{version}.*'
376 basedir: src/babeltrace
380 !include-raw-escape: scripts/babeltrace/release.sh
383 - tap: *babeltrace_publisher_tap_defaults
384 - raw: *babeltrace_publisher_warnings-ng_defaults
385 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
387 artifacts: 'out/**,tap/**'
390 - ircbot: *babeltrace_publisher_ircbot_defaults
393 name: dev_gerrit_babeltrace_pylint
399 url: https://review.lttng.org/babeltrace
400 refspec: 'refs/changes/*:refs/changes/*'
403 basedir: src/babeltrace
409 - comment-added-event:
410 approval-category: 'CI-Build'
413 - project-compare-type: 'PLAIN'
414 project-pattern: 'babeltrace'
416 - branch-compare-type: 'ANT'
423 !include-raw-escape: scripts/babeltrace/pylint.sh
427 properties-content: |
428 PROJECT_NAME=babeltrace
433 name: babeltrace_{version}_scan-build
443 !include-raw-escape: scripts/common/scan-build.sh
446 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
449 dir: 'scan-build-archive/'
451 - ircbot: *babeltrace_publisher_ircbot_defaults
454 name: babeltrace_{version}_coverity
463 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
464 - timeout: *babeltrace_wrapper_timeout_defaults
467 - credentials-binding:
468 - username-password-separated:
469 credential-id: babeltrace_coverity_token
470 username: COVERITY_SCAN_PROJECT_NAME
471 password: COVERITY_SCAN_TOKEN
475 !include-raw-escape: scripts/common/coverity.sh
478 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
480 artifacts: 'analysis-results.tgz,cov-int/**'
482 - ircbot: *babeltrace_publisher_ircbot_defaults
485 name: babeltrace_{version}_pylint
495 !include-raw-escape: scripts/babeltrace/pylint.sh
498 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
500 artifacts: 'black.out,flake8.out'
502 - ircbot: *babeltrace_publisher_ircbot_defaults
503 - email-ext: *babeltrace_publisher_email-ext_defaults
506 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
510 <<: *babeltrace_builders_glib-2-28-6
511 <<: *babeltrace_publishers_defaults
518 regex: 'babeltrace[-_].*'
525 github_user: efficios
526 github_name: babeltrace
527 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
532 - '{job_prefix}babeltrace_{version}_{buildtype}':
533 buildtype: linuxbuild
534 platforms: !!python/tuple [jammy-amd64]
535 builds: !!python/tuple [std, oot, dist, oot-dist]
536 confs: !!python/tuple [std, static, prod, min, doc, asan]
537 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
538 touchstone: '(build == "std") && (conf == "std")'
539 - '{job_prefix}babeltrace_{version}_{buildtype}':
541 platforms: !!python/tuple [bionic-amd64]
542 builds: !!python/tuple [std, oot, dist, oot-dist]
543 confs: !!python/tuple [std, static, prod, min, doc, asan]
544 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
545 touchstone: '(build == "std") && (conf == "std")'
546 - '{job_prefix}babeltrace_{version}_{buildtype}':
548 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
549 builds: !!python/tuple [std]
550 confs: !!python/tuple [std, prod]
552 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
553 - '{job_prefix}babeltrace_{version}_{buildtype}':
555 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
556 builds: !!python/tuple [std]
557 confs: !!python/tuple [std, prod]
560 - '{job_prefix}babeltrace_{version}_{buildtype}':
562 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
563 builds: !!python/tuple [std]
564 confs: !!python/tuple [std, prod]
567 - '{job_prefix}babeltrace_{version}_{buildtype}':
568 buildtype: yoctobuild
569 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
570 builds: !!python/tuple [std]
571 confs: !!python/tuple [std]
574 - '{job_prefix}babeltrace_{version}_{buildtype}':
575 buildtype: macosbuild
576 platforms: !!python/tuple [macos-amd64, macos-arm64]
577 builds: !!python/tuple [std]
578 confs: !!python/tuple [std, prod]
581 - '{job_prefix}babeltrace_{version}_{buildtype}':
582 buildtype: freebsdbuild
583 platforms: !!python/tuple [freebsd-amd64]
584 builds: !!python/tuple [std]
585 confs: !!python/tuple [std, prod]
588 - '{job_prefix}babeltrace_{version}_{buildtype}':
590 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
591 builds: !!python/tuple [std]
592 confs: !!python/tuple [std]
595 - 'babeltrace_{version}_{cctype}':
597 platforms: !!python/tuple [bionic-amd64]
598 builds: !!python/tuple [std]
599 confs: !!python/tuple [std, static, prod]
600 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
603 - 'babeltrace_{version}_release':
605 - 'babeltrace_{version}_scan-build'
606 - 'babeltrace_{version}_pylint'
607 - 'babeltrace_{version}_coverity':
609 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
613 name: gerrit-babeltrace
615 github_user: efficios
616 github_name: babeltrace
618 - 'dev_gerrit_babeltrace_{buildtype}':
620 platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
621 builds: !!python/tuple [std, oot, dist, oot-dist]
622 confs: !!python/tuple [std, static, prod, min]
623 filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
625 - 'dev_gerrit_babeltrace_{buildtype}':
626 buildtype: macosbuild
627 platforms: !!python/tuple [macos-amd64, macos-arm64]
628 builds: !!python/tuple [std]
629 confs: !!python/tuple [std, prod]
632 - 'dev_gerrit_babeltrace_{buildtype}':
634 platforms: !!python/tuple [cygwin64, msys2-mingw64]
635 builds: !!python/tuple [std]
636 confs: !!python/tuple [std]
639 - 'dev_gerrit_babeltrace_pylint'
643 name: dev_upstream_babeltrace
644 job_prefix: dev_upstream_
645 github_user: efficios
646 github_name: babeltrace
647 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
651 - '{job_prefix}babeltrace_{version}_{buildtype}':
652 buildtype: linuxbuild
653 platforms: !!python/tuple [jammy-amd64]
654 builds: !!python/tuple [std, oot, dist, oot-dist]
655 confs: !!python/tuple [std, static, python-bindings]
657 touchstone: '(build == "std") && (conf == "std")'
658 - '{job_prefix}babeltrace_{version}_{buildtype}':
660 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
661 builds: !!python/tuple [std]
662 confs: !!python/tuple [std, python-bindings]
664 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
665 - '{job_prefix}babeltrace_{version}_{buildtype}':
667 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
668 builds: !!python/tuple [std]
669 confs: !!python/tuple [std]
672 - '{job_prefix}babeltrace_{version}_{buildtype}':
674 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
675 builds: !!python/tuple [std]
676 confs: !!python/tuple [std]
679 - 'babeltrace_{version}_release':
684 name: babeltrace-jgalar-staging
685 job_prefix: 'dev_jgalar_'
687 github_name: babeltrace
688 email_to: "jgalar@efficios.com"
692 - '{job_prefix}babeltrace_{version}_{buildtype}':
694 platforms: !!python/tuple [bionic-amd64]
695 builds: !!python/tuple [std, oot, dist, oot-dist]
696 confs: !!python/tuple [std, static, python-bindings]
699 - '{job_prefix}babeltrace_{version}_{buildtype}':
700 buildtype: macosbuild
701 platforms: !!python/tuple [macos-amd64, macos-arm64]
702 builds: !!python/tuple [std]
703 confs: !!python/tuple [std]
709 name: babeltrace2-jgalar-staging
710 job_prefix: 'dev_jgalar_'
712 github_name: babeltrace
713 email_to: "jgalar@efficios.com"
718 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
721 - '{job_prefix}babeltrace_{version}_{buildtype}':
723 platforms: !!python/tuple [bionic-amd64]
724 builds: !!python/tuple [std, oot, dist, oot-dist]
725 confs: !!python/tuple [std, static, prod, min]
728 - '{job_prefix}babeltrace_{version}_{buildtype}':
729 buildtype: macosbuild
730 platforms: !!python/tuple [macos-amd64, macos-arm64]
731 builds: !!python/tuple [std]
732 confs: !!python/tuple [std, prod]
737 name: babeltrace-views