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>"
29 - git: &babeltrace_scm_git_default
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 - job-template: &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 - job-template: &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 - job-template: &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 - job-template: &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 - job-template: &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/**,log/**'
220 - workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
223 - ircbot: &babeltrace_publisher_ircbot_defaults
224 strategy: statechange-only
225 message-type: summary-scm
226 matrix-notifier: only-configurations
227 - email-ext: &babeltrace_publisher_email-ext_defaults
228 recipients: '{obj:email_to}'
229 reply-to: ci-notification@lists.lttng.org
238 second-failure: false
243 fixed-unhealthy: true
244 still-unstable: false
246 matrix-trigger: only-parent
250 - job-template: &babeltrace_publishers_review
251 name: 'babeltrace_publishers_review'
253 - tap: *babeltrace_publisher_tap_defaults
254 # Fail job on any compiler warnings
257 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
259 <io.jenkins.plugins.analysis.warnings.Gcc4>
262 <jenkins plugin="plugin-util-api"/>
265 <skipSymbolicLinks>false</skipSymbolicLinks>
266 </io.jenkins.plugins.analysis.warnings.Gcc4>
268 <sourceCodeEncoding/>
271 <ignoreQualityGate>false</ignoreQualityGate>
272 <ignoreFailedBuilds>true</ignoreFailedBuilds>
273 <failOnError>false</failOnError>
275 <unhealthy>0</unhealthy>
276 <minimumSeverity plugin="analysis-model-api">
280 <isEnabledForFailure>true</isEnabledForFailure>
281 <isAggregatingResults>true</isAggregatingResults>
282 <isBlameDisabled>false</isBlameDisabled>
283 <skipPublishingChecks>true</skipPublishingChecks>
284 <publishAllIssues>false</publishAllIssues>
286 <io.jenkins.plugins.analysis.core.util.QualityGate>
287 <threshold>1</threshold>
289 <status>FAILED</status>
290 </io.jenkins.plugins.analysis.core.util.QualityGate>
292 <trendChartType>AGGREGATION_TOOLS</trendChartType>
294 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
295 - archive: *babeltrace_publisher_archive_defaults
296 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
302 name: '{job_prefix}babeltrace_{version}_{buildtype}'
305 <<: *babeltrace_matrix_axes_defaults
306 <<: *babeltrace_builders_defaults
307 <<: *babeltrace_publishers_defaults
310 name: babeltrace_{version}_{cctype}
313 <<: *babeltrace_matrix_axes_cc
314 <<: *babeltrace_builders_defaults
315 <<: *babeltrace_publishers_defaults
318 name: 'dev_review_babeltrace_{version}_{buildtype}'
323 - git: &babeltrace_scm_git_review
324 url: https://review.lttng.org/babeltrace
325 refspec: 'refs/changes/*:refs/changes/*'
328 basedir: src/babeltrace
332 - gerrit: &babeltrace_trigger_gerrit_defaults
334 - comment-added-event:
335 approval-category: 'CI-Build'
338 - project-compare-type: 'PLAIN'
339 project-pattern: 'babeltrace'
341 - branch-compare-type: 'PLAIN'
342 branch-pattern: '{version}'
346 properties-content: |
347 PROJECT_NAME=babeltrace
353 - 'gerrit-{buildtype}'
355 <<: *babeltrace_matrix_axes_defaults
356 <<: *babeltrace_builders_defaults
357 <<: *babeltrace_publishers_review
360 name: 'dev_review_babeltrace_{version}_pylint'
365 - git: *babeltrace_scm_git_review
368 - gerrit: *babeltrace_trigger_gerrit_defaults
374 !include-raw-escape: scripts/babeltrace/pylint.sh
378 properties-content: |
379 PROJECT_NAME=babeltrace
384 name: babeltrace_{version}_release
394 <<: *babeltrace_scm_git_default
395 refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
397 - '*/tags/{version}.*'
401 !include-raw-escape: scripts/babeltrace/release.sh
404 - tap: *babeltrace_publisher_tap_defaults
405 - raw: *babeltrace_publisher_warnings-ng_defaults
406 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
408 artifacts: 'out/**,tap/**'
411 - ircbot: *babeltrace_publisher_ircbot_defaults
414 name: babeltrace_{version}_scan-build
424 !include-raw-escape: scripts/common/scan-build.sh
427 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
430 dir: 'scan-build-archive/'
432 - ircbot: *babeltrace_publisher_ircbot_defaults
435 name: babeltrace_{version}_coverity
444 - ansicolor: *babeltrace_wrapper_ansicolor_defaults
445 - timeout: *babeltrace_wrapper_timeout_defaults
448 - credentials-binding:
449 - username-password-separated:
450 credential-id: babeltrace_coverity_token
451 username: COVERITY_SCAN_PROJECT_NAME
452 password: COVERITY_SCAN_TOKEN
456 !include-raw-escape: scripts/common/coverity.sh
459 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
461 artifacts: 'analysis-results.tgz,cov-int/**'
463 - ircbot: *babeltrace_publisher_ircbot_defaults
466 name: babeltrace_{version}_pylint
476 !include-raw-escape: scripts/babeltrace/pylint.sh
479 - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
481 artifacts: 'black.out,flake8.out'
483 - ircbot: *babeltrace_publisher_ircbot_defaults
484 - email-ext: *babeltrace_publisher_email-ext_defaults
487 name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
491 <<: *babeltrace_builders_glib-2-28-6
492 <<: *babeltrace_publishers_defaults
499 regex: 'babeltrace[-_].*'
506 github_user: efficios
507 github_name: babeltrace
508 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
513 - '{job_prefix}babeltrace_{version}_{buildtype}':
514 buildtype: linuxbuild
515 platforms: !!python/tuple [jammy-amd64]
516 builds: !!python/tuple [std, oot, dist, oot-dist]
517 confs: !!python/tuple [std, static, prod, min, doc, asan]
518 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
519 touchstone: '(build == "std") && (conf == "std")'
520 - '{job_prefix}babeltrace_{version}_{buildtype}':
522 platforms: !!python/tuple [bionic-amd64]
523 builds: !!python/tuple [std, oot, dist, oot-dist]
524 confs: !!python/tuple [std, static, prod, min, doc, asan]
525 filter: '(build=="std") || (conf=="std") || (conf=="doc")'
526 touchstone: '(build == "std") && (conf == "std")'
527 - '{job_prefix}babeltrace_{version}_{buildtype}':
529 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
530 builds: !!python/tuple [std]
531 confs: !!python/tuple [std, prod]
533 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
534 - '{job_prefix}babeltrace_{version}_{buildtype}':
536 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
537 builds: !!python/tuple [std]
538 confs: !!python/tuple [std, prod]
541 - '{job_prefix}babeltrace_{version}_{buildtype}':
543 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
544 builds: !!python/tuple [std]
545 confs: !!python/tuple [std, prod]
548 - '{job_prefix}babeltrace_{version}_{buildtype}':
549 buildtype: yoctobuild
550 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
551 builds: !!python/tuple [std]
552 confs: !!python/tuple [std]
555 - '{job_prefix}babeltrace_{version}_{buildtype}':
556 buildtype: macosbuild
557 platforms: !!python/tuple [macos-amd64, macos-arm64]
558 builds: !!python/tuple [std]
559 confs: !!python/tuple [std, prod]
562 - '{job_prefix}babeltrace_{version}_{buildtype}':
563 buildtype: freebsdbuild
564 platforms: !!python/tuple [freebsd-amd64]
565 builds: !!python/tuple [std]
566 confs: !!python/tuple [std, prod]
569 - '{job_prefix}babeltrace_{version}_{buildtype}':
571 platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
572 builds: !!python/tuple [std]
573 confs: !!python/tuple [std]
576 - 'babeltrace_{version}_{cctype}':
578 platforms: !!python/tuple [bionic-amd64]
579 builds: !!python/tuple [std]
580 confs: !!python/tuple [std, static, prod]
581 ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
584 - 'babeltrace_{version}_release':
586 - 'babeltrace_{version}_scan-build'
587 - 'babeltrace_{version}_pylint'
588 - 'babeltrace_{version}_coverity':
590 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
594 name: review-babeltrace
596 github_user: efficios
597 github_name: babeltrace
602 - 'dev_review_babeltrace_{version}_{buildtype}':
604 platforms: !!python/tuple [bionic-amd64]
605 builds: !!python/tuple [std, oot, dist, oot-dist]
606 confs: !!python/tuple [std, static, prod, min]
609 - 'dev_review_babeltrace_{version}_{buildtype}':
611 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
612 builds: !!python/tuple [std]
613 confs: !!python/tuple [std]
616 - 'dev_review_babeltrace_{version}_{buildtype}':
617 buildtype: macosbuild
618 platforms: !!python/tuple [macos-amd64, macos-arm64]
619 builds: !!python/tuple [std]
620 confs: !!python/tuple [std, prod]
623 - 'dev_review_babeltrace_{version}_{buildtype}':
625 platforms: !!python/tuple [cygwin64, msys2-mingw64]
626 builds: !!python/tuple [std]
627 confs: !!python/tuple [std]
630 - 'dev_review_babeltrace_{version}_pylint'
634 name: dev_upstream_babeltrace
635 job_prefix: dev_upstream_
636 github_user: efficios
637 github_name: babeltrace
638 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
642 - '{job_prefix}babeltrace_{version}_{buildtype}':
643 buildtype: linuxbuild
644 platforms: !!python/tuple [jammy-amd64]
645 builds: !!python/tuple [std, oot, dist, oot-dist]
646 confs: !!python/tuple [std, static, python-bindings]
648 touchstone: '(build == "std") && (conf == "std")'
649 - '{job_prefix}babeltrace_{version}_{buildtype}':
651 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
652 builds: !!python/tuple [std]
653 confs: !!python/tuple [std, python-bindings]
655 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
656 - '{job_prefix}babeltrace_{version}_{buildtype}':
658 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
659 builds: !!python/tuple [std]
660 confs: !!python/tuple [std]
663 - '{job_prefix}babeltrace_{version}_{buildtype}':
665 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
666 builds: !!python/tuple [std]
667 confs: !!python/tuple [std]
670 - 'babeltrace_{version}_release':
675 name: babeltrace-jgalar-staging
676 job_prefix: 'dev_jgalar_'
678 github_name: babeltrace
679 email_to: "jgalar@efficios.com"
683 - '{job_prefix}babeltrace_{version}_{buildtype}':
685 platforms: !!python/tuple [bionic-amd64]
686 builds: !!python/tuple [std, oot, dist, oot-dist]
687 confs: !!python/tuple [std, static, python-bindings]
690 - '{job_prefix}babeltrace_{version}_{buildtype}':
691 buildtype: macosbuild
692 platforms: !!python/tuple [macos-amd64, macos-arm64]
693 builds: !!python/tuple [std]
694 confs: !!python/tuple [std]
700 name: babeltrace2-jgalar-staging
701 job_prefix: 'dev_jgalar_'
703 github_name: babeltrace
704 email_to: "jgalar@efficios.com"
709 - '{job_prefix}babeltrace_{version}_glib-2.28.6':
712 - '{job_prefix}babeltrace_{version}_{buildtype}':
714 platforms: !!python/tuple [bionic-amd64]
715 builds: !!python/tuple [std, oot, dist, oot-dist]
716 confs: !!python/tuple [std, static, prod, min]
719 - '{job_prefix}babeltrace_{version}_{buildtype}':
720 buildtype: macosbuild
721 platforms: !!python/tuple [macos-amd64, macos-arm64]
722 builds: !!python/tuple [std]
723 confs: !!python/tuple [std, prod]
728 name: babeltrace-views