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>
188 <sourceCodeEncoding/>
191 <ignoreQualityGate>false</ignoreQualityGate>
192 <ignoreFailedBuilds>true</ignoreFailedBuilds>
193 <failOnError>false</failOnError>
195 <unhealthy>0</unhealthy>
196 <minimumSeverity plugin="analysis-model-api">
200 <isEnabledForFailure>true</isEnabledForFailure>
201 <isAggregatingResults>true</isAggregatingResults>
202 <isBlameDisabled>false</isBlameDisabled>
203 <skipPublishingChecks>true</skipPublishingChecks>
204 <publishAllIssues>false</publishAllIssues>
206 <io.jenkins.plugins.analysis.core.util.QualityGate>
207 <threshold>1</threshold>
209 <status>WARNING</status>
210 </io.jenkins.plugins.analysis.core.util.QualityGate>
212 <trendChartType>AGGREGATION_TOOLS</trendChartType>
214 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
215 - archive: &babeltrace_publisher_archive_defaults
216 artifacts: 'build/**,tap/**'
218 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
221 - email-ext: &babeltrace_publisher_email-ext_defaults
222 recipients: '{obj:email_to}'
223 reply-to: ci-notification@lists.lttng.org
232 second-failure: false
237 fixed-unhealthy: true
238 still-unstable: false
240 matrix-trigger: only-parent
244 - babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
245 name: 'babeltrace_publishers_gerrit'
247 - tap: *babeltrace_publisher_tap_defaults
248 # Fail job on any compiler warnings
251 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
253 <io.jenkins.plugins.analysis.warnings.Gcc4>
256 <jenkins plugin="plugin-util-api"/>
259 <skipSymbolicLinks>false</skipSymbolicLinks>
260 </io.jenkins.plugins.analysis.warnings.Gcc4>
262 <sourceCodeEncoding/>
265 <ignoreQualityGate>false</ignoreQualityGate>
266 <ignoreFailedBuilds>true</ignoreFailedBuilds>
267 <failOnError>false</failOnError>
269 <unhealthy>0</unhealthy>
270 <minimumSeverity plugin="analysis-model-api">
274 <isEnabledForFailure>true</isEnabledForFailure>
275 <isAggregatingResults>true</isAggregatingResults>
276 <isBlameDisabled>false</isBlameDisabled>
277 <skipPublishingChecks>true</skipPublishingChecks>
278 <publishAllIssues>false</publishAllIssues>
280 <io.jenkins.plugins.analysis.core.util.QualityGate>
281 <threshold>1</threshold>
283 <status>FAILED</status>
284 </io.jenkins.plugins.analysis.core.util.QualityGate>
286 <trendChartType>AGGREGATION_TOOLS</trendChartType>
288 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
289 - archive: *babeltrace_publisher_archive_defaults
290 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
296 name: '{job_prefix}babeltrace_{version}_{buildtype}'
299 <<: *babeltrace_matrix_axes_defaults
300 <<: *babeltrace_builders_defaults
301 <<: *babeltrace_publishers_defaults
304 name: babeltrace_{version}_{cctype}
307 <<: *babeltrace_matrix_axes_cc
308 <<: *babeltrace_builders_defaults
309 <<: *babeltrace_publishers_defaults
312 name: dev_gerrit_babeltrace_{buildtype}
318 url: https://review.lttng.org/babeltrace
319 refspec: 'refs/changes/*:refs/changes/*'
322 basedir: src/babeltrace
328 - comment-added-event:
329 approval-category: 'CI-Build'
332 - project-compare-type: 'PLAIN'
333 project-pattern: 'babeltrace'
335 - branch-compare-type: 'ANT'
340 properties-content: |
341 PROJECT_NAME=babeltrace
347 - 'gerrit-{buildtype}'
349 <<: *babeltrace_matrix_axes_defaults
350 <<: *babeltrace_builders_defaults
351 <<: *babeltrace_publishers_gerrit
354 name: babeltrace_{version}_release
364 url: https://github.com/{github_user}/{github_name}.git
366 browser-url: https://github.com/{github_user}/{github_name}
367 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
369 - '*/tags/{version}.*'
370 basedir: src/babeltrace
374 !include-raw-escape: scripts/babeltrace/release.sh
377 - tap: *babeltrace_publisher_tap_defaults
378 - raw: *babeltrace_publisher_warnings-ng_defaults
379 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
381 artifacts: 'out/**,tap/**'
386 name: dev_gerrit_babeltrace_pylint
392 url: https://review.lttng.org/babeltrace
393 refspec: 'refs/changes/*:refs/changes/*'
396 basedir: src/babeltrace
402 - comment-added-event:
403 approval-category: 'CI-Build'
406 - project-compare-type: 'PLAIN'
407 project-pattern: 'babeltrace'
409 - branch-compare-type: 'ANT'
416 !include-raw-escape: scripts/babeltrace/pylint.sh
420 properties-content: |
421 PROJECT_NAME=babeltrace
426 name: babeltrace_{version}_scan-build
436 !include-raw-escape: scripts/common/scan-build.sh
439 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
442 dir: 'scan-build-archive/'
446 name: babeltrace_{version}_coverity
455 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
456 - timeout: *babeltrace_wrapper_timeout_defaults
459 - credentials-binding:
460 - username-password-separated:
461 credential-id: babeltrace_coverity_token
462 username: COVERITY_SCAN_PROJECT_NAME
463 password: COVERITY_SCAN_TOKEN
467 !include-raw-escape: scripts/common/coverity.sh
470 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
472 artifacts: 'analysis-results.tgz,cov-int/**'
476 name: babeltrace_{version}_pylint
486 !include-raw-escape: scripts/babeltrace/pylint.sh
489 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
491 artifacts: 'black.out,flake8.out'
493 - email-ext: *babeltrace_publisher_email-ext_defaults
496 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
500 <<: *babeltrace_builders_glib-2-28-6
501 <<: *babeltrace_publishers_defaults
508 regex: 'babeltrace[-_].*'
515 github_user: efficios
516 github_name: babeltrace
517 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
522 - '{job_prefix}babeltrace_{version}_{buildtype}':
523 buildtype: linuxbuild
524 platforms: !!python/tuple [jammy-amd64]
525 builds: !!python/tuple [std, oot, dist, oot-dist]
526 confs: !!python/tuple [std, static, prod, min, doc]
528 touchstone: '(build == "std") && (conf == "std")'
529 - '{job_prefix}babeltrace_{version}_{buildtype}':
531 platforms: !!python/tuple [bionic-amd64]
532 builds: !!python/tuple [std, oot, dist, oot-dist]
533 confs: !!python/tuple [std, static, prod, min, doc]
535 touchstone: '(build == "std") && (conf == "std")'
536 - '{job_prefix}babeltrace_{version}_{buildtype}':
538 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
539 builds: !!python/tuple [std]
540 confs: !!python/tuple [std, prod]
542 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
543 - '{job_prefix}babeltrace_{version}_{buildtype}':
545 platforms: !!python/tuple [sles12sp5-amd64]
546 builds: !!python/tuple [std]
547 confs: !!python/tuple [std, prod]
550 - '{job_prefix}babeltrace_{version}_{buildtype}':
552 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
553 builds: !!python/tuple [std]
554 confs: !!python/tuple [std, prod]
557 - '{job_prefix}babeltrace_{version}_{buildtype}':
558 buildtype: macosbuild
559 platforms: !!python/tuple [macos-amd64, macos-arm64]
560 builds: !!python/tuple [std]
561 confs: !!python/tuple [std, prod]
564 - '{job_prefix}babeltrace_{version}_{buildtype}':
565 buildtype: freebsdbuild
566 platforms: !!python/tuple [freebsd-amd64]
567 builds: !!python/tuple [std]
568 confs: !!python/tuple [std, prod]
571 - '{job_prefix}babeltrace_{version}_{buildtype}':
573 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
574 builds: !!python/tuple [std]
575 confs: !!python/tuple [std]
578 - 'babeltrace_{version}_{cctype}':
580 platforms: !!python/tuple [bionic-amd64]
581 builds: !!python/tuple [std]
582 confs: !!python/tuple [std, static, prod]
583 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
586 - 'babeltrace_{version}_release':
588 - 'babeltrace_{version}_scan-build'
589 - 'babeltrace_{version}_pylint'
590 - 'babeltrace_{version}_coverity':
592 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
596 name: gerrit-babeltrace
598 github_user: efficios
599 github_name: babeltrace
601 - 'dev_gerrit_babeltrace_{buildtype}':
603 platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
604 builds: !!python/tuple [std, oot, dist, oot-dist]
605 confs: !!python/tuple [std, static, prod, min]
606 filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
608 - 'dev_gerrit_babeltrace_{buildtype}':
609 buildtype: macosbuild
610 platforms: !!python/tuple [macos-amd64, macos-arm64]
611 builds: !!python/tuple [std]
612 confs: !!python/tuple [std, prod]
615 - 'dev_gerrit_babeltrace_{buildtype}':
617 platforms: !!python/tuple [cygwin64, msys2-mingw64]
618 builds: !!python/tuple [std]
619 confs: !!python/tuple [std]
622 - 'dev_gerrit_babeltrace_pylint'
626 name: dev_upstream_babeltrace
627 job_prefix: dev_upstream_
628 github_user: efficios
629 github_name: babeltrace
630 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
634 - '{job_prefix}babeltrace_{version}_{buildtype}':
635 buildtype: linuxbuild
636 platforms: !!python/tuple [jammy-amd64]
637 builds: !!python/tuple [std, oot, dist, oot-dist]
638 confs: !!python/tuple [std, static, python-bindings]
640 touchstone: '(build == "std") && (conf == "std")'
641 - '{job_prefix}babeltrace_{version}_{buildtype}':
643 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
644 builds: !!python/tuple [std]
645 confs: !!python/tuple [std, python-bindings]
647 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
648 - '{job_prefix}babeltrace_{version}_{buildtype}':
650 platforms: !!python/tuple [sles12sp5-amd64]
651 builds: !!python/tuple [std]
652 confs: !!python/tuple [std]
655 - '{job_prefix}babeltrace_{version}_{buildtype}':
657 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
658 builds: !!python/tuple [std]
659 confs: !!python/tuple [std]
662 - 'babeltrace_{version}_release':
667 name: babeltrace-jgalar-staging
668 job_prefix: 'dev_jgalar_'
670 github_name: babeltrace
671 email_to: "jgalar@efficios.com"
675 - '{job_prefix}babeltrace_{version}_{buildtype}':
677 platforms: !!python/tuple [bionic-amd64]
678 builds: !!python/tuple [std, oot, dist, oot-dist]
679 confs: !!python/tuple [std, static, python-bindings]
682 - '{job_prefix}babeltrace_{version}_{buildtype}':
683 buildtype: macosbuild
684 platforms: !!python/tuple [macos-amd64, macos-arm64]
685 builds: !!python/tuple [std]
686 confs: !!python/tuple [std]
692 name: babeltrace2-jgalar-staging
693 job_prefix: 'dev_jgalar_'
695 github_name: babeltrace
696 email_to: "jgalar@efficios.com"
701 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
704 - '{job_prefix}babeltrace_{version}_{buildtype}':
706 platforms: !!python/tuple [bionic-amd64]
707 builds: !!python/tuple [std, oot, dist, oot-dist]
708 confs: !!python/tuple [std, static, prod, min]
711 - '{job_prefix}babeltrace_{version}_{buildtype}':
712 buildtype: macosbuild
713 platforms: !!python/tuple [macos-amd64, macos-arm64]
714 builds: !!python/tuple [std]
715 confs: !!python/tuple [std, prod]
720 name: babeltrace-views