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
49 url: https://github.com/{github_user}/{github_name}
53 - babeltrace_matrix_axes_defaults: &babeltrace_matrix_axes_defaults
54 name: 'babeltrace_matrix_axes_defaults'
56 node: 'master' # Applies only to matrix flyweight task
58 combination-filter: '{filter}'
63 - axis: &babeltrace_matrix_axis_arch
67 - axis: &babeltrace_matrix_axis_conf
71 - axis: &babeltrace_matrix_axis_build
74 values: '{obj:builds}'
76 - babeltrace_matrix_axes_cc: &babeltrace_matrix_axes_cc
77 name: 'babeltrace_matrix_axes_cc'
79 <<: *babeltrace_matrix_axes_defaults
82 - axis: *babeltrace_matrix_axis_arch
83 - axis: *babeltrace_matrix_axis_conf
84 - axis: *babeltrace_matrix_axis_build
85 - axis: &babeltrace_matrix_axis_cc
90 - babeltrace_builders_defaults: &babeltrace_builders_defaults
91 name: 'babeltrace_builders_defaults'
94 {% if buildtype is defined and buildtype == 'winbuild' %}
96 condition-kind: strings-match
97 on-evaluation-failure: run
98 condition-string1: {{ '${{arch}}' }}
99 condition-string2: 'cygwin64'
103 - scripts/common/cygwin64-shebang
104 - scripts/common/cygpath-prefix
105 - scripts/common/print.sh
106 - scripts/babeltrace/build.sh
108 condition-kind: strings-match
109 on-evaluation-failure: run
110 condition-string1: {{ '${{arch}}' }}
111 condition-string2: 'msys2-mingw32'
114 properties-content: 'MSYSTEM=MINGW32'
117 - scripts/common/msys2-shebang
118 - scripts/common/cygpath-prefix
119 - scripts/common/print.sh
120 - scripts/babeltrace/build.sh
122 condition-kind: strings-match
123 on-evaluation-failure: run
124 condition-string1: {{ '${{arch}}' }}
125 condition-string2: 'msys2-mingw64'
128 properties-content: 'MSYSTEM=MINGW64'
131 - scripts/common/msys2-shebang
132 - scripts/common/cygpath-prefix
133 - scripts/common/print.sh
134 - scripts/babeltrace/build.sh
138 - scripts/common/print.sh
139 - scripts/babeltrace/build.sh
142 # Use - in version number since yaml anchor do not support dot
143 - babeltrace_builders_glib-2-28-6: &babeltrace_builders_glib-2-28-6
144 name: 'babeltrace_builders_glib-2-28-6'
147 properties-content: |
148 LD_LIBRARY_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib
149 PKG_CONFIG_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib/pkgconfig
154 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz
155 tar xvf glib-2.28.6.tar.gz
158 ./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
159 make -j `nproc` >/dev/null 2>&1 # Hide warnings
163 - scripts/common/print.sh
164 - scripts/babeltrace/build.sh
166 - babeltrace_publishers_defaults: &babeltrace_publishers_defaults
167 name: 'babeltrace_publishers_defaults'
169 - tap: &babeltrace_publisher_tap_defaults
170 results: 'tap/**/*.log'
171 fail-if-no-results: true
172 failed-tests-mark-build-as-failure: true
173 todo-is-failure: false
174 - raw: &babeltrace_publisher_warnings-ng_defaults
176 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
178 <io.jenkins.plugins.analysis.warnings.Gcc4>
181 <jenkins plugin="plugin-util-api"/>
184 <skipSymbolicLinks>false</skipSymbolicLinks>
185 </io.jenkins.plugins.analysis.warnings.Gcc4>
186 <io.jenkins.plugins.analysis.warnings.Clang>
189 <jenkins plugin="plugin-util-api"/>
192 <skipSymbolicLinks>false</skipSymbolicLinks>
193 </io.jenkins.plugins.analysis.warnings.Clang>
195 <sourceCodeEncoding/>
198 <ignoreQualityGate>false</ignoreQualityGate>
199 <ignoreFailedBuilds>true</ignoreFailedBuilds>
200 <failOnError>false</failOnError>
202 <unhealthy>0</unhealthy>
203 <minimumSeverity plugin="analysis-model-api">
207 <isEnabledForFailure>true</isEnabledForFailure>
208 <isAggregatingResults>true</isAggregatingResults>
209 <isBlameDisabled>false</isBlameDisabled>
210 <skipPublishingChecks>true</skipPublishingChecks>
211 <publishAllIssues>false</publishAllIssues>
213 <io.jenkins.plugins.analysis.core.util.QualityGate>
214 <threshold>1</threshold>
216 <status>WARNING</status>
217 </io.jenkins.plugins.analysis.core.util.QualityGate>
219 <trendChartType>AGGREGATION_TOOLS</trendChartType>
221 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
222 - archive: &babeltrace_publisher_archive_defaults
223 artifacts: 'build/**,tap/**'
225 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
228 - email-ext: &babeltrace_publisher_email-ext_defaults
229 recipients: '{obj:email_to}'
230 reply-to: ci-notification@lists.lttng.org
239 second-failure: false
244 fixed-unhealthy: true
245 still-unstable: false
247 matrix-trigger: only-parent
251 - babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
252 name: 'babeltrace_publishers_gerrit'
254 - tap: *babeltrace_publisher_tap_defaults
255 # Fail job on any compiler warnings
258 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
260 <io.jenkins.plugins.analysis.warnings.Gcc4>
263 <jenkins plugin="plugin-util-api"/>
266 <skipSymbolicLinks>false</skipSymbolicLinks>
267 </io.jenkins.plugins.analysis.warnings.Gcc4>
268 <io.jenkins.plugins.analysis.warnings.Clang>
271 <jenkins plugin="plugin-util-api"/>
274 <skipSymbolicLinks>false</skipSymbolicLinks>
275 </io.jenkins.plugins.analysis.warnings.Clang>
277 <sourceCodeEncoding/>
280 <ignoreQualityGate>false</ignoreQualityGate>
281 <ignoreFailedBuilds>true</ignoreFailedBuilds>
282 <failOnError>false</failOnError>
284 <unhealthy>0</unhealthy>
285 <minimumSeverity plugin="analysis-model-api">
289 <isEnabledForFailure>true</isEnabledForFailure>
290 <isAggregatingResults>true</isAggregatingResults>
291 <isBlameDisabled>false</isBlameDisabled>
292 <skipPublishingChecks>true</skipPublishingChecks>
293 <publishAllIssues>false</publishAllIssues>
295 <io.jenkins.plugins.analysis.core.util.QualityGate>
296 <threshold>1</threshold>
298 <status>FAILED</status>
299 </io.jenkins.plugins.analysis.core.util.QualityGate>
301 <trendChartType>AGGREGATION_TOOLS</trendChartType>
303 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
304 - archive: *babeltrace_publisher_archive_defaults
305 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
311 name: '{job_prefix}babeltrace_{version}_{buildtype}'
314 <<: *babeltrace_matrix_axes_defaults
315 <<: *babeltrace_builders_defaults
316 <<: *babeltrace_publishers_defaults
319 name: babeltrace_{version}_{cctype}
322 <<: *babeltrace_matrix_axes_cc
323 <<: *babeltrace_builders_defaults
324 <<: *babeltrace_publishers_defaults
327 name: dev_gerrit_babeltrace_{buildtype}
333 url: https://review.lttng.org/babeltrace
334 refspec: 'refs/changes/*:refs/changes/*'
337 basedir: src/babeltrace
343 - comment-added-event:
344 approval-category: 'CI-Build'
347 - project-compare-type: 'PLAIN'
348 project-pattern: 'babeltrace'
350 - branch-compare-type: 'ANT'
355 properties-content: |
356 PROJECT_NAME=babeltrace
362 - 'gerrit-{buildtype}'
364 <<: *babeltrace_matrix_axes_defaults
365 <<: *babeltrace_builders_defaults
366 <<: *babeltrace_publishers_gerrit
369 name: babeltrace_{version}_release
379 url: https://github.com/{github_user}/{github_name}.git
381 browser-url: https://github.com/{github_user}/{github_name}
382 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
384 - '*/tags/{version}.*'
385 basedir: src/babeltrace
389 !include-raw-escape: scripts/babeltrace/release.sh
392 - tap: *babeltrace_publisher_tap_defaults
393 - raw: *babeltrace_publisher_warnings-ng_defaults
394 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
396 artifacts: 'out/**,tap/**'
400 name: dev_gerrit_babeltrace_pylint
406 url: https://review.lttng.org/babeltrace
407 refspec: 'refs/changes/*:refs/changes/*'
410 basedir: src/babeltrace
416 - comment-added-event:
417 approval-category: 'CI-Build'
420 - project-compare-type: 'PLAIN'
421 project-pattern: 'babeltrace'
423 - branch-compare-type: 'ANT'
430 !include-raw-escape: scripts/babeltrace/pylint.sh
434 properties-content: |
435 PROJECT_NAME=babeltrace
440 name: babeltrace_{version}_cppcheck
449 rm -f cppcheck-result.xml
450 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
453 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
455 artifacts: 'cppcheck-result.xml'
458 pattern: 'cppcheck-result.xml'
461 name: babeltrace_{version}_scan-build
471 !include-raw-escape: scripts/common/scan-build.sh
474 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
477 dir: 'scan-build-archive/'
481 name: babeltrace_{version}_coverity
490 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
491 - timeout: *babeltrace_wrapper_timeout_defaults
494 - credentials-binding:
495 - username-password-separated:
496 credential-id: babeltrace_coverity_token
497 username: COVERITY_SCAN_PROJECT_NAME
498 password: COVERITY_SCAN_TOKEN
502 !include-raw-escape: scripts/common/coverity.sh
505 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
507 artifacts: 'analysis-results.tgz,cov-int/**'
511 name: babeltrace_{version}_pylint
521 !include-raw-escape: scripts/babeltrace/pylint.sh
524 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
526 artifacts: 'black.out,flake8.out'
528 - email-ext: *babeltrace_publisher_email-ext_defaults
531 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
535 <<: *babeltrace_builders_glib-2-28-6
536 <<: *babeltrace_publishers_defaults
543 regex: 'babeltrace[-_].*'
550 github_user: efficios
551 github_name: babeltrace
552 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
557 - '{job_prefix}babeltrace_{version}_{buildtype}':
559 archs: !!python/tuple [amd64]
560 builds: !!python/tuple [std, oot, dist, oot-dist]
561 confs: !!python/tuple [std, static, prod, min]
563 touchstone: '(build == "std") && (conf == "std")'
564 - '{job_prefix}babeltrace_{version}_{buildtype}':
566 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
567 builds: !!python/tuple [std]
568 confs: !!python/tuple [std, prod]
570 touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
571 - '{job_prefix}babeltrace_{version}_{buildtype}':
573 archs: !!python/tuple [sles12sp5]
574 builds: !!python/tuple [std]
575 confs: !!python/tuple [std, prod]
578 - '{job_prefix}babeltrace_{version}_{buildtype}':
580 archs: !!python/tuple [el8, el9]
581 builds: !!python/tuple [std]
582 confs: !!python/tuple [std, prod]
585 - '{job_prefix}babeltrace_{version}_{buildtype}':
586 buildtype: macosbuild
587 archs: !!python/tuple [macos-amd64, macos-arm64]
588 builds: !!python/tuple [std]
589 confs: !!python/tuple [std, prod]
592 - '{job_prefix}babeltrace_{version}_{buildtype}':
593 buildtype: freebsdbuild
594 archs: !!python/tuple [freebsd]
595 builds: !!python/tuple [std]
596 confs: !!python/tuple [std, prod]
599 - '{job_prefix}babeltrace_{version}_{buildtype}':
601 archs: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
602 builds: !!python/tuple [std]
603 confs: !!python/tuple [std]
606 - 'babeltrace_{version}_{cctype}':
608 archs: !!python/tuple [amd64]
609 builds: !!python/tuple [std]
610 confs: !!python/tuple [std, static, prod]
611 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
614 - 'babeltrace_{version}_release':
616 - 'babeltrace_{version}_cppcheck'
617 - 'babeltrace_{version}_scan-build'
618 - 'babeltrace_{version}_pylint'
619 - 'babeltrace_{version}_coverity':
621 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
625 name: gerrit-babeltrace
627 github_user: efficios
628 github_name: babeltrace
630 - 'dev_gerrit_babeltrace_{buildtype}':
632 archs: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
633 builds: !!python/tuple [std, oot, dist, oot-dist]
634 confs: !!python/tuple [std, static, prod, min]
635 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
637 - 'dev_gerrit_babeltrace_{buildtype}':
638 buildtype: macosbuild
639 archs: !!python/tuple [macos-amd64, macos-arm64]
640 builds: !!python/tuple [std]
641 confs: !!python/tuple [std, prod]
644 - 'dev_gerrit_babeltrace_{buildtype}':
646 archs: !!python/tuple [cygwin64, msys2-mingw64]
647 builds: !!python/tuple [std]
648 confs: !!python/tuple [std]
651 - 'dev_gerrit_babeltrace_pylint'
655 name: dev_upstream_babeltrace
656 job_prefix: dev_upstream_
657 github_user: efficios
658 github_name: babeltrace
659 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
663 - '{job_prefix}babeltrace_{version}_{buildtype}':
665 archs: !!python/tuple [amd64]
666 builds: !!python/tuple [std, oot, dist, oot-dist]
667 confs: !!python/tuple [std, static, python-bindings]
669 touchstone: '(build == "std") && (conf == "std")'
670 - '{job_prefix}babeltrace_{version}_{buildtype}':
672 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
673 builds: !!python/tuple [std]
674 confs: !!python/tuple [std, python-bindings]
676 touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
677 - '{job_prefix}babeltrace_{version}_{buildtype}':
679 archs: !!python/tuple [sles12sp5]
680 builds: !!python/tuple [std]
681 confs: !!python/tuple [std]
684 - '{job_prefix}babeltrace_{version}_{buildtype}':
686 archs: !!python/tuple [el8, el9]
687 builds: !!python/tuple [std]
688 confs: !!python/tuple [std]
694 name: babeltrace-jgalar-staging
695 job_prefix: 'dev_jgalar_'
697 github_name: babeltrace
698 email_to: "jgalar@efficios.com"
702 - '{job_prefix}babeltrace_{version}_{buildtype}':
704 archs: !!python/tuple [amd64]
705 builds: !!python/tuple [std, oot, dist, oot-dist]
706 confs: !!python/tuple [std, static, python-bindings]
709 - '{job_prefix}babeltrace_{version}_{buildtype}':
710 buildtype: macosbuild
711 archs: !!python/tuple [macos-amd64, macos-arm64]
712 builds: !!python/tuple [std]
713 confs: !!python/tuple [std]
719 name: babeltrace2-jgalar-staging
720 job_prefix: 'dev_jgalar_'
722 github_name: babeltrace
723 email_to: "jgalar@efficios.com"
728 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
731 - '{job_prefix}babeltrace_{version}_{buildtype}':
733 archs: !!python/tuple [amd64]
734 builds: !!python/tuple [std, oot, dist, oot-dist]
735 confs: !!python/tuple [std, static, prod, min]
738 - '{job_prefix}babeltrace_{version}_{buildtype}':
739 buildtype: macosbuild
740 archs: !!python/tuple [macos-amd64, macos-arm64]
741 builds: !!python/tuple [std]
742 confs: !!python/tuple [std, prod]
747 name: babeltrace-views