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/**'
220 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
223 - email-ext: &babeltrace_publisher_email-ext_defaults
224 recipients: '{obj:email_to}'
225 reply-to: ci-notification@lists.lttng.org
234 second-failure: false
239 fixed-unhealthy: true
240 still-unstable: false
242 matrix-trigger: only-parent
246 - babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
247 name: 'babeltrace_publishers_gerrit'
249 - tap: *babeltrace_publisher_tap_defaults
250 # Fail job on any compiler warnings
253 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
255 <io.jenkins.plugins.analysis.warnings.Gcc4>
258 <jenkins plugin="plugin-util-api"/>
261 <skipSymbolicLinks>false</skipSymbolicLinks>
262 </io.jenkins.plugins.analysis.warnings.Gcc4>
264 <sourceCodeEncoding/>
267 <ignoreQualityGate>false</ignoreQualityGate>
268 <ignoreFailedBuilds>true</ignoreFailedBuilds>
269 <failOnError>false</failOnError>
271 <unhealthy>0</unhealthy>
272 <minimumSeverity plugin="analysis-model-api">
276 <isEnabledForFailure>true</isEnabledForFailure>
277 <isAggregatingResults>true</isAggregatingResults>
278 <isBlameDisabled>false</isBlameDisabled>
279 <skipPublishingChecks>true</skipPublishingChecks>
280 <publishAllIssues>false</publishAllIssues>
282 <io.jenkins.plugins.analysis.core.util.QualityGate>
283 <threshold>1</threshold>
285 <status>FAILED</status>
286 </io.jenkins.plugins.analysis.core.util.QualityGate>
288 <trendChartType>AGGREGATION_TOOLS</trendChartType>
290 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
291 - archive: *babeltrace_publisher_archive_defaults
292 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
298 name: '{job_prefix}babeltrace_{version}_{buildtype}'
301 <<: *babeltrace_matrix_axes_defaults
302 <<: *babeltrace_builders_defaults
303 <<: *babeltrace_publishers_defaults
306 name: babeltrace_{version}_{cctype}
309 <<: *babeltrace_matrix_axes_cc
310 <<: *babeltrace_builders_defaults
311 <<: *babeltrace_publishers_defaults
314 name: dev_gerrit_babeltrace_{buildtype}
320 url: https://review.lttng.org/babeltrace
321 refspec: 'refs/changes/*:refs/changes/*'
324 basedir: src/babeltrace
330 - comment-added-event:
331 approval-category: 'CI-Build'
334 - project-compare-type: 'PLAIN'
335 project-pattern: 'babeltrace'
337 - branch-compare-type: 'ANT'
342 properties-content: |
343 PROJECT_NAME=babeltrace
349 - 'gerrit-{buildtype}'
351 <<: *babeltrace_matrix_axes_defaults
352 <<: *babeltrace_builders_defaults
353 <<: *babeltrace_publishers_gerrit
356 name: babeltrace_{version}_release
366 url: https://github.com/{github_user}/{github_name}.git
368 browser-url: https://github.com/{github_user}/{github_name}
369 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
371 - '*/tags/{version}.*'
372 basedir: src/babeltrace
376 !include-raw-escape: scripts/babeltrace/release.sh
379 - tap: *babeltrace_publisher_tap_defaults
380 - raw: *babeltrace_publisher_warnings-ng_defaults
381 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
383 artifacts: 'out/**,tap/**'
388 name: dev_gerrit_babeltrace_pylint
394 url: https://review.lttng.org/babeltrace
395 refspec: 'refs/changes/*:refs/changes/*'
398 basedir: src/babeltrace
404 - comment-added-event:
405 approval-category: 'CI-Build'
408 - project-compare-type: 'PLAIN'
409 project-pattern: 'babeltrace'
411 - branch-compare-type: 'ANT'
418 !include-raw-escape: scripts/babeltrace/pylint.sh
422 properties-content: |
423 PROJECT_NAME=babeltrace
428 name: babeltrace_{version}_scan-build
438 !include-raw-escape: scripts/common/scan-build.sh
441 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
444 dir: 'scan-build-archive/'
448 name: babeltrace_{version}_coverity
457 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
458 - timeout: *babeltrace_wrapper_timeout_defaults
461 - credentials-binding:
462 - username-password-separated:
463 credential-id: babeltrace_coverity_token
464 username: COVERITY_SCAN_PROJECT_NAME
465 password: COVERITY_SCAN_TOKEN
469 !include-raw-escape: scripts/common/coverity.sh
472 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
474 artifacts: 'analysis-results.tgz,cov-int/**'
478 name: babeltrace_{version}_pylint
488 !include-raw-escape: scripts/babeltrace/pylint.sh
491 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
493 artifacts: 'black.out,flake8.out'
495 - email-ext: *babeltrace_publisher_email-ext_defaults
498 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
502 <<: *babeltrace_builders_glib-2-28-6
503 <<: *babeltrace_publishers_defaults
510 regex: 'babeltrace[-_].*'
517 github_user: efficios
518 github_name: babeltrace
519 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
524 - '{job_prefix}babeltrace_{version}_{buildtype}':
525 buildtype: linuxbuild
526 platforms: !!python/tuple [jammy-amd64]
527 builds: !!python/tuple [std, oot, dist, oot-dist]
528 confs: !!python/tuple [std, static, prod, min, doc, asan]
529 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
530 touchstone: '(build == "std") && (conf == "std")'
531 - '{job_prefix}babeltrace_{version}_{buildtype}':
533 platforms: !!python/tuple [bionic-amd64]
534 builds: !!python/tuple [std, oot, dist, oot-dist]
535 confs: !!python/tuple [std, static, prod, min, doc, asan]
536 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
537 touchstone: '(build == "std") && (conf == "std")'
538 - '{job_prefix}babeltrace_{version}_{buildtype}':
540 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
541 builds: !!python/tuple [std]
542 confs: !!python/tuple [std, prod]
544 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
545 - '{job_prefix}babeltrace_{version}_{buildtype}':
547 platforms: !!python/tuple [sles12sp5-amd64]
548 builds: !!python/tuple [std]
549 confs: !!python/tuple [std, prod]
552 - '{job_prefix}babeltrace_{version}_{buildtype}':
554 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
555 builds: !!python/tuple [std]
556 confs: !!python/tuple [std, prod]
559 - '{job_prefix}babeltrace_{version}_{buildtype}':
560 buildtype: macosbuild
561 platforms: !!python/tuple [macos-amd64, macos-arm64]
562 builds: !!python/tuple [std]
563 confs: !!python/tuple [std, prod]
566 - '{job_prefix}babeltrace_{version}_{buildtype}':
567 buildtype: freebsdbuild
568 platforms: !!python/tuple [freebsd-amd64]
569 builds: !!python/tuple [std]
570 confs: !!python/tuple [std, prod]
573 - '{job_prefix}babeltrace_{version}_{buildtype}':
575 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
576 builds: !!python/tuple [std]
577 confs: !!python/tuple [std]
580 - 'babeltrace_{version}_{cctype}':
582 platforms: !!python/tuple [bionic-amd64]
583 builds: !!python/tuple [std]
584 confs: !!python/tuple [std, static, prod]
585 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
588 - 'babeltrace_{version}_release':
590 - 'babeltrace_{version}_scan-build'
591 - 'babeltrace_{version}_pylint'
592 - 'babeltrace_{version}_coverity':
594 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
598 name: gerrit-babeltrace
600 github_user: efficios
601 github_name: babeltrace
603 - 'dev_gerrit_babeltrace_{buildtype}':
605 platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
606 builds: !!python/tuple [std, oot, dist, oot-dist]
607 confs: !!python/tuple [std, static, prod, min]
608 filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
610 - 'dev_gerrit_babeltrace_{buildtype}':
611 buildtype: macosbuild
612 platforms: !!python/tuple [macos-amd64, macos-arm64]
613 builds: !!python/tuple [std]
614 confs: !!python/tuple [std, prod]
617 - 'dev_gerrit_babeltrace_{buildtype}':
619 platforms: !!python/tuple [cygwin64, msys2-mingw64]
620 builds: !!python/tuple [std]
621 confs: !!python/tuple [std]
624 - 'dev_gerrit_babeltrace_pylint'
628 name: dev_upstream_babeltrace
629 job_prefix: dev_upstream_
630 github_user: efficios
631 github_name: babeltrace
632 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
636 - '{job_prefix}babeltrace_{version}_{buildtype}':
637 buildtype: linuxbuild
638 platforms: !!python/tuple [jammy-amd64]
639 builds: !!python/tuple [std, oot, dist, oot-dist]
640 confs: !!python/tuple [std, static, python-bindings]
642 touchstone: '(build == "std") && (conf == "std")'
643 - '{job_prefix}babeltrace_{version}_{buildtype}':
645 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
646 builds: !!python/tuple [std]
647 confs: !!python/tuple [std, python-bindings]
649 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
650 - '{job_prefix}babeltrace_{version}_{buildtype}':
652 platforms: !!python/tuple [sles12sp5-amd64]
653 builds: !!python/tuple [std]
654 confs: !!python/tuple [std]
657 - '{job_prefix}babeltrace_{version}_{buildtype}':
659 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
660 builds: !!python/tuple [std]
661 confs: !!python/tuple [std]
664 - 'babeltrace_{version}_release':
669 name: babeltrace-jgalar-staging
670 job_prefix: 'dev_jgalar_'
672 github_name: babeltrace
673 email_to: "jgalar@efficios.com"
677 - '{job_prefix}babeltrace_{version}_{buildtype}':
679 platforms: !!python/tuple [bionic-amd64]
680 builds: !!python/tuple [std, oot, dist, oot-dist]
681 confs: !!python/tuple [std, static, python-bindings]
684 - '{job_prefix}babeltrace_{version}_{buildtype}':
685 buildtype: macosbuild
686 platforms: !!python/tuple [macos-amd64, macos-arm64]
687 builds: !!python/tuple [std]
688 confs: !!python/tuple [std]
694 name: babeltrace2-jgalar-staging
695 job_prefix: 'dev_jgalar_'
697 github_name: babeltrace
698 email_to: "jgalar@efficios.com"
703 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
706 - '{job_prefix}babeltrace_{version}_{buildtype}':
708 platforms: !!python/tuple [bionic-amd64]
709 builds: !!python/tuple [std, oot, dist, oot-dist]
710 confs: !!python/tuple [std, static, prod, min]
713 - '{job_prefix}babeltrace_{version}_{buildtype}':
714 buildtype: macosbuild
715 platforms: !!python/tuple [macos-amd64, macos-arm64]
716 builds: !!python/tuple [std]
717 confs: !!python/tuple [std, prod]
722 name: babeltrace-views