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 todo-is-failure: false
175 - raw: &babeltrace_publisher_warnings-ng_defaults
177 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
179 <io.jenkins.plugins.analysis.warnings.Gcc4>
182 <jenkins plugin="plugin-util-api"/>
185 <skipSymbolicLinks>false</skipSymbolicLinks>
186 </io.jenkins.plugins.analysis.warnings.Gcc4>
187 <io.jenkins.plugins.analysis.warnings.Clang>
190 <jenkins plugin="plugin-util-api"/>
193 <skipSymbolicLinks>false</skipSymbolicLinks>
194 </io.jenkins.plugins.analysis.warnings.Clang>
196 <sourceCodeEncoding/>
199 <ignoreQualityGate>false</ignoreQualityGate>
200 <ignoreFailedBuilds>true</ignoreFailedBuilds>
201 <failOnError>false</failOnError>
203 <unhealthy>0</unhealthy>
204 <minimumSeverity plugin="analysis-model-api">
208 <isEnabledForFailure>true</isEnabledForFailure>
209 <isAggregatingResults>true</isAggregatingResults>
210 <isBlameDisabled>false</isBlameDisabled>
211 <skipPublishingChecks>true</skipPublishingChecks>
212 <publishAllIssues>false</publishAllIssues>
214 <io.jenkins.plugins.analysis.core.util.QualityGate>
215 <threshold>1</threshold>
217 <status>WARNING</status>
218 </io.jenkins.plugins.analysis.core.util.QualityGate>
220 <trendChartType>AGGREGATION_TOOLS</trendChartType>
222 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
223 - archive: &babeltrace_publisher_archive_defaults
224 artifacts: 'build/**,tap/**'
226 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
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 - babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
253 name: 'babeltrace_publishers_gerrit'
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>
269 <io.jenkins.plugins.analysis.warnings.Clang>
272 <jenkins plugin="plugin-util-api"/>
275 <skipSymbolicLinks>false</skipSymbolicLinks>
276 </io.jenkins.plugins.analysis.warnings.Clang>
278 <sourceCodeEncoding/>
281 <ignoreQualityGate>false</ignoreQualityGate>
282 <ignoreFailedBuilds>true</ignoreFailedBuilds>
283 <failOnError>false</failOnError>
285 <unhealthy>0</unhealthy>
286 <minimumSeverity plugin="analysis-model-api">
290 <isEnabledForFailure>true</isEnabledForFailure>
291 <isAggregatingResults>true</isAggregatingResults>
292 <isBlameDisabled>false</isBlameDisabled>
293 <skipPublishingChecks>true</skipPublishingChecks>
294 <publishAllIssues>false</publishAllIssues>
296 <io.jenkins.plugins.analysis.core.util.QualityGate>
297 <threshold>1</threshold>
299 <status>FAILED</status>
300 </io.jenkins.plugins.analysis.core.util.QualityGate>
302 <trendChartType>AGGREGATION_TOOLS</trendChartType>
304 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
305 - archive: *babeltrace_publisher_archive_defaults
306 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
312 name: '{job_prefix}babeltrace_{version}_{buildtype}'
315 <<: *babeltrace_matrix_axes_defaults
316 <<: *babeltrace_builders_defaults
317 <<: *babeltrace_publishers_defaults
320 name: babeltrace_{version}_{cctype}
323 <<: *babeltrace_matrix_axes_cc
324 <<: *babeltrace_builders_defaults
325 <<: *babeltrace_publishers_defaults
328 name: dev_gerrit_babeltrace_{buildtype}
334 url: https://review.lttng.org/babeltrace
335 refspec: 'refs/changes/*:refs/changes/*'
338 basedir: src/babeltrace
344 - comment-added-event:
345 approval-category: 'CI-Build'
348 - project-compare-type: 'PLAIN'
349 project-pattern: 'babeltrace'
351 - branch-compare-type: 'ANT'
356 properties-content: |
357 PROJECT_NAME=babeltrace
363 - 'gerrit-{buildtype}'
365 <<: *babeltrace_matrix_axes_defaults
366 <<: *babeltrace_builders_defaults
367 <<: *babeltrace_publishers_gerrit
370 name: babeltrace_{version}_release
380 url: https://github.com/{github_user}/{github_name}.git
382 browser-url: https://github.com/{github_user}/{github_name}
383 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
385 - '*/tags/{version}.*'
386 basedir: src/babeltrace
390 !include-raw-escape: scripts/babeltrace/release.sh
393 - tap: *babeltrace_publisher_tap_defaults
394 - raw: *babeltrace_publisher_warnings-ng_defaults
395 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
397 artifacts: 'out/**,tap/**'
401 name: dev_gerrit_babeltrace_pylint
407 url: https://review.lttng.org/babeltrace
408 refspec: 'refs/changes/*:refs/changes/*'
411 basedir: src/babeltrace
417 - comment-added-event:
418 approval-category: 'CI-Build'
421 - project-compare-type: 'PLAIN'
422 project-pattern: 'babeltrace'
424 - branch-compare-type: 'ANT'
431 !include-raw-escape: scripts/babeltrace/pylint.sh
435 properties-content: |
436 PROJECT_NAME=babeltrace
441 name: babeltrace_{version}_cppcheck
450 rm -f cppcheck-result.xml
451 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
454 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
456 artifacts: 'cppcheck-result.xml'
459 pattern: 'cppcheck-result.xml'
462 name: babeltrace_{version}_scan-build
472 !include-raw-escape: scripts/common/scan-build.sh
475 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
478 dir: 'scan-build-archive/'
482 name: babeltrace_{version}_coverity
491 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
492 - timeout: *babeltrace_wrapper_timeout_defaults
495 - credentials-binding:
496 - username-password-separated:
497 credential-id: babeltrace_coverity_token
498 username: COVERITY_SCAN_PROJECT_NAME
499 password: COVERITY_SCAN_TOKEN
503 !include-raw-escape: scripts/common/coverity.sh
506 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
508 artifacts: 'analysis-results.tgz,cov-int/**'
512 name: babeltrace_{version}_pylint
522 !include-raw-escape: scripts/babeltrace/pylint.sh
525 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
527 artifacts: 'black.out,flake8.out'
529 - email-ext: *babeltrace_publisher_email-ext_defaults
532 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
536 <<: *babeltrace_builders_glib-2-28-6
537 <<: *babeltrace_publishers_defaults
544 regex: 'babeltrace[-_].*'
551 github_user: efficios
552 github_name: babeltrace
553 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
558 - '{job_prefix}babeltrace_{version}_{buildtype}':
559 buildtype: linuxbuild
560 platforms: !!python/tuple [jammy-amd64]
561 builds: !!python/tuple [std, oot, dist, oot-dist]
562 confs: !!python/tuple [std, static, prod, min, doc]
564 touchstone: '(build == "std") && (conf == "std")'
565 - '{job_prefix}babeltrace_{version}_{buildtype}':
567 platforms: !!python/tuple [bionic-amd64]
568 builds: !!python/tuple [std, oot, dist, oot-dist]
569 confs: !!python/tuple [std, static, prod, min, doc]
571 touchstone: '(build == "std") && (conf == "std")'
572 - '{job_prefix}babeltrace_{version}_{buildtype}':
574 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
575 builds: !!python/tuple [std]
576 confs: !!python/tuple [std, prod]
578 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
579 - '{job_prefix}babeltrace_{version}_{buildtype}':
581 platforms: !!python/tuple [sles12sp5-amd64]
582 builds: !!python/tuple [std]
583 confs: !!python/tuple [std, prod]
586 - '{job_prefix}babeltrace_{version}_{buildtype}':
588 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
589 builds: !!python/tuple [std]
590 confs: !!python/tuple [std, prod]
593 - '{job_prefix}babeltrace_{version}_{buildtype}':
594 buildtype: macosbuild
595 platforms: !!python/tuple [macos-amd64, macos-arm64]
596 builds: !!python/tuple [std]
597 confs: !!python/tuple [std, prod]
600 - '{job_prefix}babeltrace_{version}_{buildtype}':
601 buildtype: freebsdbuild
602 platforms: !!python/tuple [freebsd-amd64]
603 builds: !!python/tuple [std]
604 confs: !!python/tuple [std, prod]
607 - '{job_prefix}babeltrace_{version}_{buildtype}':
609 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
610 builds: !!python/tuple [std]
611 confs: !!python/tuple [std]
614 - 'babeltrace_{version}_{cctype}':
616 platforms: !!python/tuple [bionic-amd64]
617 builds: !!python/tuple [std]
618 confs: !!python/tuple [std, static, prod]
619 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
622 - 'babeltrace_{version}_release':
624 - 'babeltrace_{version}_cppcheck'
625 - 'babeltrace_{version}_scan-build'
626 - 'babeltrace_{version}_pylint'
627 - 'babeltrace_{version}_coverity':
629 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
633 name: gerrit-babeltrace
635 github_user: efficios
636 github_name: babeltrace
638 - 'dev_gerrit_babeltrace_{buildtype}':
640 platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
641 builds: !!python/tuple [std, oot, dist, oot-dist]
642 confs: !!python/tuple [std, static, prod, min]
643 filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
645 - 'dev_gerrit_babeltrace_{buildtype}':
646 buildtype: macosbuild
647 platforms: !!python/tuple [macos-amd64, macos-arm64]
648 builds: !!python/tuple [std]
649 confs: !!python/tuple [std, prod]
652 - 'dev_gerrit_babeltrace_{buildtype}':
654 platforms: !!python/tuple [cygwin64, msys2-mingw64]
655 builds: !!python/tuple [std]
656 confs: !!python/tuple [std]
659 - 'dev_gerrit_babeltrace_pylint'
663 name: dev_upstream_babeltrace
664 job_prefix: dev_upstream_
665 github_user: efficios
666 github_name: babeltrace
667 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
671 - '{job_prefix}babeltrace_{version}_{buildtype}':
672 buildtype: linuxbuild
673 platforms: !!python/tuple [jammy-amd64]
674 builds: !!python/tuple [std, oot, dist, oot-dist]
675 confs: !!python/tuple [std, static, python-bindings]
677 touchstone: '(build == "std") && (conf == "std")'
678 - '{job_prefix}babeltrace_{version}_{buildtype}':
680 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
681 builds: !!python/tuple [std]
682 confs: !!python/tuple [std, python-bindings]
684 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
685 - '{job_prefix}babeltrace_{version}_{buildtype}':
687 platforms: !!python/tuple [sles12sp5-amd64]
688 builds: !!python/tuple [std]
689 confs: !!python/tuple [std]
692 - '{job_prefix}babeltrace_{version}_{buildtype}':
694 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
695 builds: !!python/tuple [std]
696 confs: !!python/tuple [std]
702 name: babeltrace-jgalar-staging
703 job_prefix: 'dev_jgalar_'
705 github_name: babeltrace
706 email_to: "jgalar@efficios.com"
710 - '{job_prefix}babeltrace_{version}_{buildtype}':
712 platforms: !!python/tuple [bionic-amd64]
713 builds: !!python/tuple [std, oot, dist, oot-dist]
714 confs: !!python/tuple [std, static, python-bindings]
717 - '{job_prefix}babeltrace_{version}_{buildtype}':
718 buildtype: macosbuild
719 platforms: !!python/tuple [macos-amd64, macos-arm64]
720 builds: !!python/tuple [std]
721 confs: !!python/tuple [std]
727 name: babeltrace2-jgalar-staging
728 job_prefix: 'dev_jgalar_'
730 github_name: babeltrace
731 email_to: "jgalar@efficios.com"
736 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
739 - '{job_prefix}babeltrace_{version}_{buildtype}':
741 platforms: !!python/tuple [bionic-amd64]
742 builds: !!python/tuple [std, oot, dist, oot-dist]
743 confs: !!python/tuple [std, static, prod, min]
746 - '{job_prefix}babeltrace_{version}_{buildtype}':
747 buildtype: macosbuild
748 platforms: !!python/tuple [macos-amd64, macos-arm64]
749 builds: !!python/tuple [std]
750 confs: !!python/tuple [std, prod]
755 name: babeltrace-views