6 LTTng-UST, the Linux Trace Toolkit Next Generation Userspace Tracer, is a
7 port of the low-overhead tracing capabilities of the LTTng kernel tracer
8 to user-space. The library "liblttng-ust" enables tracing of
9 applications and libraries.
11 <p>Job is managed by Jenkins Job Builder.</p>
13 project-type: freestyle
16 - ansicolor: <tng-ust_wrapper_ansicolor_defaults
18 - timeout: <tng-ust_wrapper_timeout_defaults
22 write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>"
28 url: https://github.com/{github_user}/{github_name}.git
30 browser-url: https://github.com/{github_user}/{github_name}
33 basedir: src/lttng-ust
43 PROJECT_NAME=lttng-ust
46 artifact-num-to-keep: 2
48 url: https://github.com/{github_user}/{github_name}
52 - _lttng-ust_matrix_axes_defaults: <tng-ust_matrix_axes_defaults
53 name: 'lttng-ust_matrix_axes_defaults'
55 node: 'master' # Applies only to matrix flyweight task
56 execution-strategy: <tng-ust_matrix_execution-strategy_defaults
57 combination-filter: '{filter}'
62 - axis: <tng-ust_matrix_axis_platform
65 values: '{obj:platforms}'
66 - axis: <tng-ust_matrix_axis_conf
70 - axis: <tng-ust_matrix_axis_build
73 values: '{obj:builds}'
74 - axis: <tng-ust_matrix_axis_liburcu_version
77 values: '{obj:liburcu_versions}'
79 - _lttng-ust_matrix_axes_review_lttng-tools: <tng-ust_matrix_axes_review_lttng-tools
80 name: 'lttng-ust_matrix_axes_review_lttng-tools'
82 node: 'master' # Applies only to matrix flyweight task
83 execution-strategy: *lttng-ust_matrix_execution-strategy_defaults
85 - axis: *lttng-ust_matrix_axis_platform
86 - axis: *lttng-ust_matrix_axis_conf
87 - axis: *lttng-ust_matrix_axis_build
89 - _lttng-ust_steps_copyartifact_defaults:
90 name: 'lttng-ust_steps_copyartifact_defaults'
92 - copyartifact: <tng-ust_steps_copyartifact_defaults
94 which-build: last-successful
98 do-not-fingerprint: true
100 - _lttng-ust_builders_defaults: <tng-ust_builders_defaults
101 name: 'lttng-ust_builders_defaults'
103 # Generate a properties file to add additionnal env
107 # Select the liburcu conf based on the current conf
109 debug-rcu|tls_fallback)
116 echo "liburcu_conf=$liburcu_conf" > env.properties
118 # Inject the additionnal env early to use them in the copyartifact step
120 properties-file: env.properties
123 <<: *lttng-ust_steps_copyartifact_defaults
124 project: '{job_prefix}liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
129 - scripts/common/print.sh
130 - scripts/lttng-ust/build.sh
132 - _lttng-ust_builders_review_lttng-tools: <tng-ust_builders_review_lttng-tools
133 name: 'lttng-ust_builders_review_lttng-tools'
136 # Generate a properties file to add additionnal env
140 # Select the liburcu conf based on the current conf
142 debug-rcu|tls_fallback)
149 echo "liburcu_conf=$liburcu_conf" >> env.properties
150 # Select the liburcu version based on the gerrit branch
151 case "$GERRIT_BRANCH" in
153 liburcu_version=master
156 liburcu_version={liburcu_version}
159 echo "liburcu_version=$liburcu_version" >> env.properties
161 # Inject the additionnal env early to use them in the copyartifact step
163 properties-file: env.properties
166 <<: *lttng-ust_steps_copyartifact_defaults
167 project: 'liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
170 <<: *lttng-ust_steps_copyartifact_defaults
171 project: 'babeltrace_{babeltrace_version}_{buildtype}/platform=${{platform}},conf=std,build=std'
176 git clone -b "$GERRIT_BRANCH" https://review.lttng.org/lttng-tools src/lttng-tools
180 - scripts/common/print.sh
181 - scripts/lttng-ust/build.sh
185 - scripts/lttng-tools/gerrit-install-deps.sh
189 - scripts/common/print.sh
190 - scripts/lttng-tools/build.sh
192 - _lttng-ust_publishers_defaults: <tng-ust_publishers_defaults
193 name: 'lttng-ust_publishers_defaults'
195 - tap: <tng-ust_publisher_tap_defaults
196 results: 'tap/**/*.log'
197 fail-if-no-results: true
198 failed-tests-mark-build-as-failure: true
199 include-comment-diagnostics: true
200 output-tap-to-console: false
201 todo-is-failure: false
202 - raw: <tng-ust_publisher_warnings-ng_defaults
204 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
206 <io.jenkins.plugins.analysis.warnings.Gcc4>
209 <jenkins plugin="plugin-util-api"/>
212 <skipSymbolicLinks>false</skipSymbolicLinks>
213 </io.jenkins.plugins.analysis.warnings.Gcc4>
215 <sourceCodeEncoding/>
218 <ignoreQualityGate>false</ignoreQualityGate>
219 <ignoreFailedBuilds>true</ignoreFailedBuilds>
220 <failOnError>false</failOnError>
222 <unhealthy>0</unhealthy>
223 <minimumSeverity plugin="analysis-model-api">
227 <isEnabledForFailure>true</isEnabledForFailure>
228 <isAggregatingResults>true</isAggregatingResults>
229 <isBlameDisabled>false</isBlameDisabled>
230 <skipPublishingChecks>true</skipPublishingChecks>
231 <publishAllIssues>false</publishAllIssues>
233 <io.jenkins.plugins.analysis.core.util.QualityGate>
234 <threshold>1</threshold>
236 <status>WARNING</status>
237 </io.jenkins.plugins.analysis.core.util.QualityGate>
239 <trendChartType>AGGREGATION_TOOLS</trendChartType>
241 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
242 - archive: <tng-ust_publisher_archive_defaults
243 artifacts: 'build/**,tap/**,log/**'
244 follow-symlinks: true
246 - workspace-cleanup: <tng-ust_publisher_workspace-cleanup_defaults
249 - ircbot: <tng-ust_publisher_ircbot_defaults
250 strategy: statechange-only
251 message-type: summary
252 matrix-notifier: only-parent
253 - email-ext: <tng-ust_publisher_email-ext_defaults
254 recipients: '{obj:email_to}'
255 reply-to: ci-notification@lists.lttng.org
264 second-failure: false
269 fixed-unhealthy: true
270 still-unstable: false
272 matrix-trigger: only-parent
276 - _lttng-ust_publishers_review: <tng-ust_publishers_review
277 name: 'lttng-ust_publishers_review'
279 - tap: *lttng-ust_publisher_tap_defaults
280 # Fail job on any compiler warnings
283 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
285 <io.jenkins.plugins.analysis.warnings.Gcc4>
288 <jenkins plugin="plugin-util-api"/>
291 <skipSymbolicLinks>false</skipSymbolicLinks>
292 </io.jenkins.plugins.analysis.warnings.Gcc4>
294 <sourceCodeEncoding/>
297 <ignoreQualityGate>false</ignoreQualityGate>
298 <ignoreFailedBuilds>true</ignoreFailedBuilds>
299 <failOnError>false</failOnError>
301 <unhealthy>0</unhealthy>
302 <minimumSeverity plugin="analysis-model-api">
306 <isEnabledForFailure>true</isEnabledForFailure>
307 <isAggregatingResults>true</isAggregatingResults>
308 <isBlameDisabled>false</isBlameDisabled>
309 <skipPublishingChecks>true</skipPublishingChecks>
310 <publishAllIssues>false</publishAllIssues>
312 <io.jenkins.plugins.analysis.core.util.QualityGate>
313 <threshold>1</threshold>
315 <status>FAILED</status>
316 </io.jenkins.plugins.analysis.core.util.QualityGate>
318 <trendChartType>AGGREGATION_TOOLS</trendChartType>
320 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
321 - archive: *lttng-ust_publisher_archive_defaults
322 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
327 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
330 <<: *lttng-ust_matrix_axes_defaults
331 <<: *lttng-ust_builders_defaults
332 <<: *lttng-ust_publishers_defaults
336 name: dev_review_lttng-ust_{version}_{buildtype}
342 url: https://review.lttng.org/lttng-ust
343 refspec: 'refs/changes/*:refs/changes/*'
346 basedir: src/lttng-ust
350 - gerrit: <tng-ust_trigger_gerrit_defaults
352 - comment-added-event:
353 approval-category: 'CI-Build'
356 - project-compare-type: 'PLAIN'
357 project-pattern: 'lttng-ust'
359 - branch-compare-type: 'PLAIN'
360 branch-pattern: '{version}'
362 <<: *lttng-ust_matrix_axes_defaults
363 <<: *lttng-ust_builders_defaults
364 <<: *lttng-ust_publishers_review
368 properties-content: |
369 PROJECT_NAME=lttng-ust
375 - 'gerrit-{buildtype}'
379 name: dev_review_lttng-ust_lttng-tools_{version}_{buildtype}
385 url: https://review.lttng.org/lttng-ust
386 refspec: 'refs/changes/*:refs/changes/*'
389 basedir: src/lttng-ust
393 - gerrit: *lttng-ust_trigger_gerrit_defaults
395 <<: *lttng-ust_matrix_axes_review_lttng-tools
396 <<: *lttng-ust_builders_review_lttng-tools
397 <<: *lttng-ust_publishers_review
401 properties-content: |
402 PROJECT_NAME=lttng-ust
408 - 'gerrit-{buildtype}'
412 name: lttng-ust_{version}_scan-build
422 <<: *lttng-ust_steps_copyartifact_defaults
423 project: liburcu_master_linuxbuild/platform=deb12-amd64,conf=std,build=std
425 !include-raw-escape: scripts/common/scan-build.sh
430 dir: 'scan-build-archive/'
432 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
433 - ircbot: *lttng-ust_publisher_ircbot_defaults
437 name: lttng-ust_{version}_coverity
446 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
447 - timeout: *lttng-ust_wrapper_timeout_defaults
450 - credentials-binding:
451 - username-password-separated:
452 credential-id: lttng-ust_coverity_token
453 username: COVERITY_SCAN_PROJECT_NAME
454 password: COVERITY_SCAN_TOKEN
458 <<: *lttng-ust_steps_copyartifact_defaults
459 project: liburcu_master_linuxbuild/platform=deb12-amd64,conf=std,build=std
461 !include-raw-escape: scripts/common/coverity.sh
465 artifacts: 'analysis-results.tgz,cov-int/**'
467 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
468 - ircbot: *lttng-ust_publisher_ircbot_defaults
475 regex: 'lttng-ust[-_].*'
483 github_name: lttng-ust
484 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
487 - '{job_prefix}lttng-ust_{version}_{buildtype}':
488 buildtype: linuxbuild
490 platforms: !!python/tuple [deb12-amd64]
491 builds: !!python/tuple [std, dist, oot, oot-dist]
492 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
493 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
494 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
496 - '{job_prefix}lttng-ust_{version}_{buildtype}':
499 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
500 builds: !!python/tuple [std]
501 confs: !!python/tuple [std, agents]
502 liburcu_versions: !!python/tuple [stable-0.13, master]
505 - '{job_prefix}lttng-ust_{version}_{buildtype}':
508 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
509 builds: !!python/tuple [std]
510 confs: !!python/tuple [agents]
511 liburcu_versions: !!python/tuple [stable-0.13, master]
514 - '{job_prefix}lttng-ust_{version}_{buildtype}':
517 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
518 builds: !!python/tuple [std]
519 confs: !!python/tuple [std]
520 liburcu_versions: !!python/tuple [stable-0.13, master]
523 - '{job_prefix}lttng-ust_{version}_{buildtype}':
524 buildtype: yoctobuild
526 platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
527 builds: !!python/tuple [std]
528 confs: !!python/tuple [std]
529 liburcu_versions: !!python/tuple [stable-0.13, master]
532 - '{job_prefix}lttng-ust_{version}_{buildtype}':
533 buildtype: freebsdbuild
535 platforms: !!python/tuple [freebsd-amd64]
536 builds: !!python/tuple [std]
537 confs: !!python/tuple [agents]
538 liburcu_versions: !!python/tuple [stable-0.13, master]
541 - 'lttng-ust_{version}_scan-build':
543 - 'lttng-ust_{version}_coverity':
547 - '{job_prefix}lttng-ust_{version}_{buildtype}':
548 buildtype: linuxbuild
550 platforms: !!python/tuple [deb12-amd64]
551 builds: !!python/tuple [std, dist, oot, oot-dist]
552 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
553 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
554 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
556 - '{job_prefix}lttng-ust_{version}_{buildtype}':
559 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
560 builds: !!python/tuple [std]
561 confs: !!python/tuple [std, agents]
562 liburcu_versions: !!python/tuple [stable-0.13, master]
565 - '{job_prefix}lttng-ust_{version}_{buildtype}':
568 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
569 builds: !!python/tuple [std]
570 confs: !!python/tuple [agents]
571 liburcu_versions: !!python/tuple [stable-0.13, master]
574 - '{job_prefix}lttng-ust_{version}_{buildtype}':
577 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
578 builds: !!python/tuple [std]
579 confs: !!python/tuple [std]
580 liburcu_versions: !!python/tuple [stable-0.13, master]
583 - '{job_prefix}lttng-ust_{version}_{buildtype}':
584 buildtype: yoctobuild
586 platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
587 builds: !!python/tuple [std]
588 confs: !!python/tuple [std]
589 liburcu_versions: !!python/tuple [stable-0.13, master]
592 - 'lttng-ust_{version}_scan-build':
596 - '{job_prefix}lttng-ust_{version}_{buildtype}':
597 buildtype: linuxbuild
599 platforms: !!python/tuple [deb12-amd64]
600 builds: !!python/tuple [std, dist, oot, oot-dist]
601 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
602 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
603 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
605 - '{job_prefix}lttng-ust_{version}_{buildtype}':
608 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
609 builds: !!python/tuple [std]
610 confs: !!python/tuple [std, agents]
611 liburcu_versions: !!python/tuple [stable-0.13, master]
614 - '{job_prefix}lttng-ust_{version}_{buildtype}':
617 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
618 builds: !!python/tuple [std]
619 confs: !!python/tuple [agents]
620 liburcu_versions: !!python/tuple [stable-0.13]
623 - '{job_prefix}lttng-ust_{version}_{buildtype}':
626 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
627 builds: !!python/tuple [std]
628 confs: !!python/tuple [std]
629 liburcu_versions: !!python/tuple [stable-0.13]
632 - '{job_prefix}lttng-ust_{version}_{buildtype}':
633 buildtype: yoctobuild
635 platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
636 builds: !!python/tuple [std]
637 confs: !!python/tuple [std]
638 liburcu_versions: !!python/tuple [stable-0.13]
641 - 'lttng-ust_{version}_scan-build':
645 name: review-lttng-ust
648 github_name: lttng-ust
651 - 'dev_review_lttng-ust_{version}_{buildtype}':
653 buildtype: linuxbuild
654 platforms: !!python/tuple [deb12-amd64]
655 builds: !!python/tuple [std, oot, dist, oot-dist]
656 confs: !!python/tuple [std, agents]
657 liburcu_versions: !!python/tuple [stable-0.14]
659 touchstone: '(build == "std") && (conf == "std")'
660 - 'dev_review_lttng-ust_lttng-tools_{version}_{buildtype}':
662 buildtype: linuxbuild
663 platforms: !!python/tuple [deb12-amd64]
664 builds: !!python/tuple [std, oot, dist, oot-dist]
665 confs: !!python/tuple [std, agents]
668 liburcu_version: stable-0.14
669 babeltrace_version: stable-2.0
670 - 'dev_review_lttng-ust_{version}_{buildtype}':
673 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
674 builds: !!python/tuple [std]
675 confs: !!python/tuple [agents]
676 liburcu_versions: !!python/tuple [stable-0.14]
678 touchstone: '(platform == "deb12-i386")'
679 - 'dev_review_lttng-ust_{version}_{buildtype}':
681 buildtype: freebsdbuild
682 platforms: !!python/tuple [freebsd-amd64]
683 builds: !!python/tuple [std]
684 confs: !!python/tuple [agents]
685 liburcu_versions: !!python/tuple [stable-0.14]
690 - 'dev_review_lttng-ust_{version}_{buildtype}':
692 buildtype: linuxbuild
693 platforms: !!python/tuple [deb12-amd64]
694 builds: !!python/tuple [std, oot, dist, oot-dist]
695 confs: !!python/tuple [std, agents]
696 liburcu_versions: !!python/tuple [stable-0.13]
698 touchstone: '(build == "std") && (conf == "std")'
699 - 'dev_review_lttng-ust_lttng-tools_{version}_{buildtype}':
701 buildtype: linuxbuild
702 platforms: !!python/tuple [deb12-amd64]
703 builds: !!python/tuple [std, oot, dist, oot-dist]
704 confs: !!python/tuple [std, agents]
707 liburcu_version: stable-0.13
708 babeltrace_version: stable-2.0
709 - 'dev_review_lttng-ust_{version}_{buildtype}':
712 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
713 builds: !!python/tuple [std]
714 confs: !!python/tuple [agents]
715 liburcu_versions: !!python/tuple [stable-0.13]
717 touchstone: '(platform == "deb12-i386")'
720 - 'dev_review_lttng-ust_{version}_{buildtype}':
722 buildtype: linuxbuild
723 platforms: !!python/tuple [deb12-amd64]
724 builds: !!python/tuple [std, oot, dist, oot-dist]
725 confs: !!python/tuple [std, agents]
726 liburcu_versions: !!python/tuple [stable-0.13]
728 touchstone: '(build == "std") && (conf == "std")'
729 - 'dev_review_lttng-ust_lttng-tools_{version}_{buildtype}':
731 buildtype: linuxbuild
732 platforms: !!python/tuple [deb12-amd64]
733 builds: !!python/tuple [std, oot, dist, oot-dist]
734 confs: !!python/tuple [std, agents]
737 liburcu_version: stable-0.13
738 babeltrace_version: stable-2.0
739 - 'dev_review_lttng-ust_{version}_{buildtype}':
742 platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
743 builds: !!python/tuple [std]
744 confs: !!python/tuple [agents]
745 liburcu_versions: !!python/tuple [stable-0.13]
747 touchstone: '(platform == "deb12-i386")'
750 name: lttng-ust-views