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 - raw: *babeltrace_publisher_warnings-ng_defaults
256 - archive: *babeltrace_publisher_archive_defaults
257 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
263 name: '{job_prefix}babeltrace_{version}_{buildtype}'
266 <<: *babeltrace_matrix_axes_defaults
267 <<: *babeltrace_builders_defaults
268 <<: *babeltrace_publishers_defaults
271 name: babeltrace_{version}_{cctype}
274 <<: *babeltrace_matrix_axes_cc
275 <<: *babeltrace_builders_defaults
276 <<: *babeltrace_publishers_defaults
279 name: dev_gerrit_babeltrace_{buildtype}
285 url: https://review.lttng.org/babeltrace
286 refspec: 'refs/changes/*:refs/changes/*'
289 basedir: src/babeltrace
295 - comment-added-event:
296 approval-category: 'CI-Build'
299 - project-compare-type: 'PLAIN'
300 project-pattern: 'babeltrace'
302 - branch-compare-type: 'ANT'
307 properties-content: |
308 PROJECT_NAME=babeltrace
314 - 'gerrit-{buildtype}'
316 <<: *babeltrace_matrix_axes_defaults
317 <<: *babeltrace_builders_defaults
318 <<: *babeltrace_publishers_gerrit
321 name: babeltrace_{version}_release
331 url: https://github.com/{github_user}/{github_name}.git
333 browser-url: https://github.com/{github_user}/{github_name}
334 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
336 - '*/tags/{version}.*'
337 basedir: src/babeltrace
341 !include-raw-escape: scripts/babeltrace/release.sh
344 - tap: *babeltrace_publisher_tap_defaults
345 - raw: *babeltrace_publisher_warnings-ng_defaults
346 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
348 artifacts: 'out/**,tap/**'
352 name: dev_gerrit_babeltrace_pylint
358 url: https://review.lttng.org/babeltrace
359 refspec: 'refs/changes/*:refs/changes/*'
362 basedir: src/babeltrace
368 - comment-added-event:
369 approval-category: 'CI-Build'
372 - project-compare-type: 'PLAIN'
373 project-pattern: 'babeltrace'
375 - branch-compare-type: 'ANT'
382 !include-raw-escape: scripts/babeltrace/pylint.sh
386 properties-content: |
387 PROJECT_NAME=babeltrace
392 name: babeltrace_{version}_cppcheck
401 rm -f cppcheck-result.xml
402 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
405 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
407 artifacts: 'cppcheck-result.xml'
410 pattern: 'cppcheck-result.xml'
413 name: babeltrace_{version}_scan-build
423 !include-raw-escape: scripts/common/scan-build.sh
426 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
429 dir: 'scan-build-archive/'
433 name: babeltrace_{version}_coverity
442 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
443 - timeout: *babeltrace_wrapper_timeout_defaults
446 - credentials-binding:
447 - username-password-separated:
448 credential-id: babeltrace_coverity_token
449 username: COVERITY_SCAN_PROJECT_NAME
450 password: COVERITY_SCAN_TOKEN
454 !include-raw-escape: scripts/common/coverity.sh
457 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
459 artifacts: 'analysis-results.tgz,cov-int/**'
463 name: babeltrace_{version}_pylint
473 !include-raw-escape: scripts/babeltrace/pylint.sh
476 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
478 artifacts: 'black.out,flake8.out'
480 - email-ext: *babeltrace_publisher_email-ext_defaults
483 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
487 <<: *babeltrace_builders_glib-2-28-6
488 <<: *babeltrace_publishers_defaults
495 regex: 'babeltrace[-_].*'
502 github_user: efficios
503 github_name: babeltrace
504 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
509 - '{job_prefix}babeltrace_{version}_{buildtype}':
511 archs: !!python/tuple [amd64]
512 builds: !!python/tuple [std, oot, dist, oot-dist]
513 confs: !!python/tuple [std, static, prod, min]
515 touchstone: '(build == "std") && (conf == "std")'
516 - '{job_prefix}babeltrace_{version}_{buildtype}':
518 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
519 builds: !!python/tuple [std]
520 confs: !!python/tuple [std, prod]
522 touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
523 - '{job_prefix}babeltrace_{version}_{buildtype}':
525 archs: !!python/tuple [sles12sp5]
526 builds: !!python/tuple [std]
527 confs: !!python/tuple [std, prod]
530 - '{job_prefix}babeltrace_{version}_{buildtype}':
532 archs: !!python/tuple [el8]
533 builds: !!python/tuple [std]
534 confs: !!python/tuple [std, prod]
537 - '{job_prefix}babeltrace_{version}_{buildtype}':
538 buildtype: macosbuild
539 archs: !!python/tuple [macos-amd64, macos-arm64]
540 builds: !!python/tuple [std]
541 confs: !!python/tuple [std, prod]
544 - '{job_prefix}babeltrace_{version}_{buildtype}':
545 buildtype: freebsdbuild
546 archs: !!python/tuple [freebsd]
547 builds: !!python/tuple [std]
548 confs: !!python/tuple [std, prod]
551 - '{job_prefix}babeltrace_{version}_{buildtype}':
553 archs: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
554 builds: !!python/tuple [std]
555 confs: !!python/tuple [std]
558 - 'babeltrace_{version}_{cctype}':
560 archs: !!python/tuple [amd64]
561 builds: !!python/tuple [std]
562 confs: !!python/tuple [std, static, prod]
563 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
566 - 'babeltrace_{version}_release':
568 - 'babeltrace_{version}_cppcheck'
569 - 'babeltrace_{version}_scan-build'
570 - 'babeltrace_{version}_pylint'
571 - 'babeltrace_{version}_coverity':
573 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
577 name: gerrit-babeltrace
579 github_user: efficios
580 github_name: babeltrace
582 - 'dev_gerrit_babeltrace_{buildtype}':
584 archs: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
585 builds: !!python/tuple [std, oot, dist, oot-dist]
586 confs: !!python/tuple [std, static, prod, min]
587 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
589 - 'dev_gerrit_babeltrace_{buildtype}':
590 buildtype: macosbuild
591 archs: !!python/tuple [macos-amd64, macos-arm64]
592 builds: !!python/tuple [std]
593 confs: !!python/tuple [std, prod]
596 - 'dev_gerrit_babeltrace_{buildtype}':
598 archs: !!python/tuple [cygwin64, msys2-mingw64]
599 builds: !!python/tuple [std]
600 confs: !!python/tuple [std]
603 - 'dev_gerrit_babeltrace_pylint'
607 name: dev_upstream_babeltrace
608 job_prefix: dev_upstream_
609 github_user: efficios
610 github_name: babeltrace
611 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
615 - '{job_prefix}babeltrace_{version}_{buildtype}':
617 archs: !!python/tuple [amd64]
618 builds: !!python/tuple [std, oot, dist, oot-dist]
619 confs: !!python/tuple [std, static, python-bindings]
621 touchstone: '(build == "std") && (conf == "std")'
622 - '{job_prefix}babeltrace_{version}_{buildtype}':
624 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
625 builds: !!python/tuple [std]
626 confs: !!python/tuple [std, python-bindings]
628 touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
629 - '{job_prefix}babeltrace_{version}_{buildtype}':
631 archs: !!python/tuple [sles12sp5]
632 builds: !!python/tuple [std]
633 confs: !!python/tuple [std]
636 - '{job_prefix}babeltrace_{version}_{buildtype}':
638 archs: !!python/tuple [el8]
639 builds: !!python/tuple [std]
640 confs: !!python/tuple [std]
646 name: babeltrace-jgalar-staging
647 job_prefix: 'dev_jgalar_'
649 github_name: babeltrace
650 email_to: "jgalar@efficios.com"
654 - '{job_prefix}babeltrace_{version}_{buildtype}':
656 archs: !!python/tuple [amd64]
657 builds: !!python/tuple [std, oot, dist, oot-dist]
658 confs: !!python/tuple [std, static, python-bindings]
661 - '{job_prefix}babeltrace_{version}_{buildtype}':
662 buildtype: macosbuild
663 archs: !!python/tuple [macos-amd64, macos-arm64]
664 builds: !!python/tuple [std]
665 confs: !!python/tuple [std]
671 name: babeltrace2-jgalar-staging
672 job_prefix: 'dev_jgalar_'
674 github_name: babeltrace
675 email_to: "jgalar@efficios.com"
680 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
683 - '{job_prefix}babeltrace_{version}_{buildtype}':
685 archs: !!python/tuple [amd64]
686 builds: !!python/tuple [std, oot, dist, oot-dist]
687 confs: !!python/tuple [std, static, prod, min]
690 - '{job_prefix}babeltrace_{version}_{buildtype}':
691 buildtype: macosbuild
692 archs: !!python/tuple [macos-amd64, macos-arm64]
693 builds: !!python/tuple [std]
694 confs: !!python/tuple [std, prod]
699 name: babeltrace-views