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/**'
402 name: dev_gerrit_babeltrace_pylint
408 url: https://review.lttng.org/babeltrace
409 refspec: 'refs/changes/*:refs/changes/*'
412 basedir: src/babeltrace
418 - comment-added-event:
419 approval-category: 'CI-Build'
422 - project-compare-type: 'PLAIN'
423 project-pattern: 'babeltrace'
425 - branch-compare-type: 'ANT'
432 !include-raw-escape: scripts/babeltrace/pylint.sh
436 properties-content: |
437 PROJECT_NAME=babeltrace
442 name: babeltrace_{version}_cppcheck
451 rm -f cppcheck-result.xml
452 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
455 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
457 artifacts: 'cppcheck-result.xml'
460 pattern: 'cppcheck-result.xml'
463 name: babeltrace_{version}_scan-build
473 !include-raw-escape: scripts/common/scan-build.sh
476 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
479 dir: 'scan-build-archive/'
483 name: babeltrace_{version}_coverity
492 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
493 - timeout: *babeltrace_wrapper_timeout_defaults
496 - credentials-binding:
497 - username-password-separated:
498 credential-id: babeltrace_coverity_token
499 username: COVERITY_SCAN_PROJECT_NAME
500 password: COVERITY_SCAN_TOKEN
504 !include-raw-escape: scripts/common/coverity.sh
507 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
509 artifacts: 'analysis-results.tgz,cov-int/**'
513 name: babeltrace_{version}_pylint
523 !include-raw-escape: scripts/babeltrace/pylint.sh
526 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
528 artifacts: 'black.out,flake8.out'
530 - email-ext: *babeltrace_publisher_email-ext_defaults
533 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
537 <<: *babeltrace_builders_glib-2-28-6
538 <<: *babeltrace_publishers_defaults
545 regex: 'babeltrace[-_].*'
552 github_user: efficios
553 github_name: babeltrace
554 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
559 - '{job_prefix}babeltrace_{version}_{buildtype}':
560 buildtype: linuxbuild
561 platforms: !!python/tuple [jammy-amd64]
562 builds: !!python/tuple [std, oot, dist, oot-dist]
563 confs: !!python/tuple [std, static, prod, min, doc]
565 touchstone: '(build == "std") && (conf == "std")'
566 - '{job_prefix}babeltrace_{version}_{buildtype}':
568 platforms: !!python/tuple [bionic-amd64]
569 builds: !!python/tuple [std, oot, dist, oot-dist]
570 confs: !!python/tuple [std, static, prod, min, doc]
572 touchstone: '(build == "std") && (conf == "std")'
573 - '{job_prefix}babeltrace_{version}_{buildtype}':
575 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
576 builds: !!python/tuple [std]
577 confs: !!python/tuple [std, prod]
579 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
580 - '{job_prefix}babeltrace_{version}_{buildtype}':
582 platforms: !!python/tuple [sles12sp5-amd64]
583 builds: !!python/tuple [std]
584 confs: !!python/tuple [std, prod]
587 - '{job_prefix}babeltrace_{version}_{buildtype}':
589 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
590 builds: !!python/tuple [std]
591 confs: !!python/tuple [std, prod]
594 - '{job_prefix}babeltrace_{version}_{buildtype}':
595 buildtype: macosbuild
596 platforms: !!python/tuple [macos-amd64, macos-arm64]
597 builds: !!python/tuple [std]
598 confs: !!python/tuple [std, prod]
601 - '{job_prefix}babeltrace_{version}_{buildtype}':
602 buildtype: freebsdbuild
603 platforms: !!python/tuple [freebsd-amd64]
604 builds: !!python/tuple [std]
605 confs: !!python/tuple [std, prod]
608 - '{job_prefix}babeltrace_{version}_{buildtype}':
610 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
611 builds: !!python/tuple [std]
612 confs: !!python/tuple [std]
615 - 'babeltrace_{version}_{cctype}':
617 platforms: !!python/tuple [bionic-amd64]
618 builds: !!python/tuple [std]
619 confs: !!python/tuple [std, static, prod]
620 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
623 - 'babeltrace_{version}_release':
625 - 'babeltrace_{version}_cppcheck'
626 - 'babeltrace_{version}_scan-build'
627 - 'babeltrace_{version}_pylint'
628 - 'babeltrace_{version}_coverity':
630 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
634 name: gerrit-babeltrace
636 github_user: efficios
637 github_name: babeltrace
639 - 'dev_gerrit_babeltrace_{buildtype}':
641 platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
642 builds: !!python/tuple [std, oot, dist, oot-dist]
643 confs: !!python/tuple [std, static, prod, min]
644 filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
646 - 'dev_gerrit_babeltrace_{buildtype}':
647 buildtype: macosbuild
648 platforms: !!python/tuple [macos-amd64, macos-arm64]
649 builds: !!python/tuple [std]
650 confs: !!python/tuple [std, prod]
653 - 'dev_gerrit_babeltrace_{buildtype}':
655 platforms: !!python/tuple [cygwin64, msys2-mingw64]
656 builds: !!python/tuple [std]
657 confs: !!python/tuple [std]
660 - 'dev_gerrit_babeltrace_pylint'
664 name: dev_upstream_babeltrace
665 job_prefix: dev_upstream_
666 github_user: efficios
667 github_name: babeltrace
668 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
672 - '{job_prefix}babeltrace_{version}_{buildtype}':
673 buildtype: linuxbuild
674 platforms: !!python/tuple [jammy-amd64]
675 builds: !!python/tuple [std, oot, dist, oot-dist]
676 confs: !!python/tuple [std, static, python-bindings]
678 touchstone: '(build == "std") && (conf == "std")'
679 - '{job_prefix}babeltrace_{version}_{buildtype}':
681 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
682 builds: !!python/tuple [std]
683 confs: !!python/tuple [std, python-bindings]
685 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
686 - '{job_prefix}babeltrace_{version}_{buildtype}':
688 platforms: !!python/tuple [sles12sp5-amd64]
689 builds: !!python/tuple [std]
690 confs: !!python/tuple [std]
693 - '{job_prefix}babeltrace_{version}_{buildtype}':
695 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
696 builds: !!python/tuple [std]
697 confs: !!python/tuple [std]
700 - 'babeltrace_{version}_release':
705 name: babeltrace-jgalar-staging
706 job_prefix: 'dev_jgalar_'
708 github_name: babeltrace
709 email_to: "jgalar@efficios.com"
713 - '{job_prefix}babeltrace_{version}_{buildtype}':
715 platforms: !!python/tuple [bionic-amd64]
716 builds: !!python/tuple [std, oot, dist, oot-dist]
717 confs: !!python/tuple [std, static, python-bindings]
720 - '{job_prefix}babeltrace_{version}_{buildtype}':
721 buildtype: macosbuild
722 platforms: !!python/tuple [macos-amd64, macos-arm64]
723 builds: !!python/tuple [std]
724 confs: !!python/tuple [std]
730 name: babeltrace2-jgalar-staging
731 job_prefix: 'dev_jgalar_'
733 github_name: babeltrace
734 email_to: "jgalar@efficios.com"
739 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
742 - '{job_prefix}babeltrace_{version}_{buildtype}':
744 platforms: !!python/tuple [bionic-amd64]
745 builds: !!python/tuple [std, oot, dist, oot-dist]
746 confs: !!python/tuple [std, static, prod, min]
749 - '{job_prefix}babeltrace_{version}_{buildtype}':
750 buildtype: macosbuild
751 platforms: !!python/tuple [macos-amd64, macos-arm64]
752 builds: !!python/tuple [std]
753 confs: !!python/tuple [std, prod]
758 name: babeltrace-views