4 LTTng-UST, the Linux Trace Toolkit Next Generation Userspace Tracer, is a
5 port of the low-overhead tracing capabilities of the LTTng kernel tracer
6 to user-space. The library "liblttng-ust" enables tracing of
7 applications and libraries.
9 <p>Job is managed by Jenkins Job Builder.</p>
11 project-type: freestyle
14 - ansicolor: <tng-ust_wrapper_ansicolor_defaults
16 - timeout: <tng-ust_wrapper_timeout_defaults
20 write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>"
26 url: https://github.com/{github_user}/{github_name}.git
28 browser-url: https://github.com/{github_user}/{github_name}
31 basedir: src/lttng-ust
41 PROJECT_NAME=lttng-ust
44 artifact-num-to-keep: 2
46 url: https://github.com/{github_user}/{github_name}
50 - lttng-ust_matrix_axes_defaults: <tng-ust_matrix_axes_defaults
51 name: 'lttng-ust_matrix_axes_defaults'
53 node: 'master' # Applies only to matrix flyweight task
54 execution-strategy: <tng-ust_matrix_execution-strategy_defaults
55 combination-filter: '{filter}'
60 - axis: <tng-ust_matrix_axis_platform
63 values: '{obj:platforms}'
64 - axis: <tng-ust_matrix_axis_conf
68 - axis: <tng-ust_matrix_axis_build
71 values: '{obj:builds}'
72 - axis: <tng-ust_matrix_axis_liburcu_version
75 values: '{obj:liburcu_versions}'
77 - lttng-ust_matrix_axes_gerrit_lttng-tools: <tng-ust_matrix_axes_gerrit_lttng-tools
78 name: 'lttng-ust_matrix_axes_gerrit_lttng-tools'
80 node: 'master' # Applies only to matrix flyweight task
81 execution-strategy: *lttng-ust_matrix_execution-strategy_defaults
83 - axis: *lttng-ust_matrix_axis_platform
84 - axis: *lttng-ust_matrix_axis_conf
85 - axis: *lttng-ust_matrix_axis_build
87 - lttng-ust_steps_copyartifact_defaults:
88 name: 'lttng-ust_steps_copyartifact_defaults'
90 - copyartifact: <tng-ust_steps_copyartifact_defaults
92 which-build: last-successful
96 do-not-fingerprint: true
98 - lttng-ust_builders_defaults: <tng-ust_builders_defaults
99 name: 'lttng-ust_builders_defaults'
101 # Generate a properties file to add additionnal env
105 # Select the liburcu conf based on the current conf
107 debug-rcu|tls_fallback)
114 echo "liburcu_conf=$liburcu_conf" > env.properties
116 # Inject the additionnal env early to use them in the copyartifact step
118 properties-file: env.properties
121 <<: *lttng-ust_steps_copyartifact_defaults
122 project: '{job_prefix}liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
127 - scripts/common/print.sh
128 - scripts/lttng-ust/build.sh
130 - lttng-ust_builders_gerrit_lttng-tools: <tng-ust_builders_gerrit_lttng-tools
131 name: 'lttng-ust_builders_gerrit_lttng-tools'
134 # Generate a properties file to add additionnal env
138 # Select the liburcu conf based on the current conf
140 debug-rcu|tls_fallback)
147 echo "liburcu_conf=$liburcu_conf" >> env.properties
148 # Select the liburcu version based on the gerrit branch
149 case "$GERRIT_BRANCH" in
151 liburcu_version=master
154 liburcu_version={liburcu_version}
157 echo "liburcu_version=$liburcu_version" >> env.properties
159 # Inject the additionnal env early to use them in the copyartifact step
161 properties-file: env.properties
164 <<: *lttng-ust_steps_copyartifact_defaults
165 project: 'liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
168 <<: *lttng-ust_steps_copyartifact_defaults
169 project: 'babeltrace_{babeltrace_version}_{buildtype}/platform=${{platform}},conf=std,build=std'
174 git clone -b "$GERRIT_BRANCH" https://review.lttng.org/lttng-tools src/lttng-tools
178 - scripts/common/print.sh
179 - scripts/lttng-ust/build.sh
183 - scripts/lttng-tools/gerrit-install-deps.sh
187 - scripts/common/print.sh
188 - scripts/lttng-tools/build.sh
190 - lttng-ust_publishers_defaults: <tng-ust_publishers_defaults
191 name: 'lttng-ust_publishers_defaults'
193 - tap: <tng-ust_publisher_tap_defaults
194 results: 'tap/**/*.log'
195 fail-if-no-results: true
196 failed-tests-mark-build-as-failure: true
197 include-comment-diagnostics: true
198 output-tap-to-console: false
199 todo-is-failure: false
200 - raw: <tng-ust_publisher_warnings-ng_defaults
202 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
204 <io.jenkins.plugins.analysis.warnings.Gcc4>
207 <jenkins plugin="plugin-util-api"/>
210 <skipSymbolicLinks>false</skipSymbolicLinks>
211 </io.jenkins.plugins.analysis.warnings.Gcc4>
213 <sourceCodeEncoding/>
216 <ignoreQualityGate>false</ignoreQualityGate>
217 <ignoreFailedBuilds>true</ignoreFailedBuilds>
218 <failOnError>false</failOnError>
220 <unhealthy>0</unhealthy>
221 <minimumSeverity plugin="analysis-model-api">
225 <isEnabledForFailure>true</isEnabledForFailure>
226 <isAggregatingResults>true</isAggregatingResults>
227 <isBlameDisabled>false</isBlameDisabled>
228 <skipPublishingChecks>true</skipPublishingChecks>
229 <publishAllIssues>false</publishAllIssues>
231 <io.jenkins.plugins.analysis.core.util.QualityGate>
232 <threshold>1</threshold>
234 <status>WARNING</status>
235 </io.jenkins.plugins.analysis.core.util.QualityGate>
237 <trendChartType>AGGREGATION_TOOLS</trendChartType>
239 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
240 - archive: <tng-ust_publisher_archive_defaults
241 artifacts: 'build/**,tap/**,log/**'
243 - workspace-cleanup: <tng-ust_publisher_workspace-cleanup_defaults
246 - ircbot: <tng-ust_publisher_ircbot_defaults
247 strategy: statechange-only
248 message-type: summary-scm
249 matrix-notifier: only-configurations
250 - email-ext: <tng-ust_publisher_email-ext_defaults
251 recipients: '{obj:email_to}'
252 reply-to: ci-notification@lists.lttng.org
261 second-failure: false
266 fixed-unhealthy: true
267 still-unstable: false
269 matrix-trigger: only-parent
273 - lttng-ust_publishers_gerrit: <tng-ust_publishers_gerrit
274 name: 'lttng-ust_publishers_gerrit'
276 - tap: *lttng-ust_publisher_tap_defaults
277 # Fail job on any compiler warnings
280 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
282 <io.jenkins.plugins.analysis.warnings.Gcc4>
285 <jenkins plugin="plugin-util-api"/>
288 <skipSymbolicLinks>false</skipSymbolicLinks>
289 </io.jenkins.plugins.analysis.warnings.Gcc4>
291 <sourceCodeEncoding/>
294 <ignoreQualityGate>false</ignoreQualityGate>
295 <ignoreFailedBuilds>true</ignoreFailedBuilds>
296 <failOnError>false</failOnError>
298 <unhealthy>0</unhealthy>
299 <minimumSeverity plugin="analysis-model-api">
303 <isEnabledForFailure>true</isEnabledForFailure>
304 <isAggregatingResults>true</isAggregatingResults>
305 <isBlameDisabled>false</isBlameDisabled>
306 <skipPublishingChecks>true</skipPublishingChecks>
307 <publishAllIssues>false</publishAllIssues>
309 <io.jenkins.plugins.analysis.core.util.QualityGate>
310 <threshold>1</threshold>
312 <status>FAILED</status>
313 </io.jenkins.plugins.analysis.core.util.QualityGate>
315 <trendChartType>AGGREGATION_TOOLS</trendChartType>
317 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
318 - archive: *lttng-ust_publisher_archive_defaults
319 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
324 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
327 <<: *lttng-ust_matrix_axes_defaults
328 <<: *lttng-ust_builders_defaults
329 <<: *lttng-ust_publishers_defaults
333 name: dev_gerrit_lttng-ust_{buildtype}
339 url: https://review.lttng.org/lttng-ust
340 refspec: 'refs/changes/*:refs/changes/*'
343 basedir: src/lttng-ust
349 - comment-added-event:
350 approval-category: 'CI-Build'
353 - project-compare-type: 'PLAIN'
354 project-pattern: 'lttng-ust'
356 - branch-compare-type: 'ANT'
359 <<: *lttng-ust_matrix_axes_defaults
360 <<: *lttng-ust_builders_defaults
361 <<: *lttng-ust_publishers_gerrit
365 properties-content: |
366 PROJECT_NAME=lttng-ust
372 - 'gerrit-{buildtype}'
376 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
382 url: https://review.lttng.org/lttng-ust
383 refspec: 'refs/changes/*:refs/changes/*'
386 basedir: src/lttng-ust
392 - comment-added-event:
393 approval-category: 'CI-Build'
396 - project-compare-type: 'PLAIN'
397 project-pattern: 'lttng-ust'
399 - branch-compare-type: 'ANT'
402 <<: *lttng-ust_matrix_axes_gerrit_lttng-tools
403 <<: *lttng-ust_builders_gerrit_lttng-tools
404 <<: *lttng-ust_publishers_gerrit
408 properties-content: |
409 PROJECT_NAME=lttng-ust
415 - 'gerrit-{buildtype}'
419 name: lttng-ust_{version}_scan-build
429 <<: *lttng-ust_steps_copyartifact_defaults
430 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
432 !include-raw-escape: scripts/common/scan-build.sh
437 dir: 'scan-build-archive/'
439 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
440 - ircbot: *lttng-ust_publisher_ircbot_defaults
444 name: lttng-ust_{version}_coverity
453 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
454 - timeout: *lttng-ust_wrapper_timeout_defaults
457 - credentials-binding:
458 - username-password-separated:
459 credential-id: lttng-ust_coverity_token
460 username: COVERITY_SCAN_PROJECT_NAME
461 password: COVERITY_SCAN_TOKEN
465 <<: *lttng-ust_steps_copyartifact_defaults
466 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
468 !include-raw-escape: scripts/common/coverity.sh
472 artifacts: 'analysis-results.tgz,cov-int/**'
474 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
475 - ircbot: *lttng-ust_publisher_ircbot_defaults
482 regex: 'lttng-ust[-_].*'
490 github_name: lttng-ust
491 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
494 - '{job_prefix}lttng-ust_{version}_{buildtype}':
495 buildtype: linuxbuild
497 platforms: !!python/tuple [jammy-amd64]
498 builds: !!python/tuple [std, dist, oot, oot-dist]
499 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
500 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
501 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
503 - '{job_prefix}lttng-ust_{version}_{buildtype}':
506 platforms: !!python/tuple [bionic-amd64]
507 builds: !!python/tuple [std, dist, oot, oot-dist]
508 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
509 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
510 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
512 - '{job_prefix}lttng-ust_{version}_{buildtype}':
515 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
516 builds: !!python/tuple [std]
517 confs: !!python/tuple [std, agents]
518 liburcu_versions: !!python/tuple [stable-0.13, master]
521 - '{job_prefix}lttng-ust_{version}_{buildtype}':
524 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
525 builds: !!python/tuple [std]
526 confs: !!python/tuple [agents]
527 liburcu_versions: !!python/tuple [stable-0.13, master]
530 - '{job_prefix}lttng-ust_{version}_{buildtype}':
533 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
534 builds: !!python/tuple [std]
535 confs: !!python/tuple [std]
536 liburcu_versions: !!python/tuple [stable-0.13, master]
539 - '{job_prefix}lttng-ust_{version}_{buildtype}':
540 buildtype: yoctobuild
542 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
543 builds: !!python/tuple [std]
544 confs: !!python/tuple [std]
545 liburcu_versions: !!python/tuple [stable-0.13, master]
548 - '{job_prefix}lttng-ust_{version}_{buildtype}':
549 buildtype: freebsdbuild
551 platforms: !!python/tuple [freebsd-amd64]
552 builds: !!python/tuple [std]
553 confs: !!python/tuple [agents]
554 liburcu_versions: !!python/tuple [stable-0.13, master]
557 - 'lttng-ust_{version}_scan-build':
559 - 'lttng-ust_{version}_coverity':
563 - '{job_prefix}lttng-ust_{version}_{buildtype}':
564 buildtype: linuxbuild
566 platforms: !!python/tuple [jammy-amd64]
567 builds: !!python/tuple [std, dist, oot, oot-dist]
568 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
569 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
570 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
572 - '{job_prefix}lttng-ust_{version}_{buildtype}':
575 platforms: !!python/tuple [bionic-amd64]
576 builds: !!python/tuple [std, dist, oot, oot-dist]
577 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
578 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
579 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
581 - '{job_prefix}lttng-ust_{version}_{buildtype}':
584 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
585 builds: !!python/tuple [std]
586 confs: !!python/tuple [std, agents]
587 liburcu_versions: !!python/tuple [stable-0.13, master]
590 - '{job_prefix}lttng-ust_{version}_{buildtype}':
593 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
594 builds: !!python/tuple [std]
595 confs: !!python/tuple [agents]
596 liburcu_versions: !!python/tuple [stable-0.13, master]
599 - '{job_prefix}lttng-ust_{version}_{buildtype}':
602 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
603 builds: !!python/tuple [std]
604 confs: !!python/tuple [std]
605 liburcu_versions: !!python/tuple [stable-0.13, master]
608 - '{job_prefix}lttng-ust_{version}_{buildtype}':
609 buildtype: yoctobuild
611 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
612 builds: !!python/tuple [std]
613 confs: !!python/tuple [std]
614 liburcu_versions: !!python/tuple [stable-0.13, master]
617 - 'lttng-ust_{version}_scan-build':
621 - '{job_prefix}lttng-ust_{version}_{buildtype}':
622 buildtype: linuxbuild
624 platforms: !!python/tuple [jammy-amd64]
625 builds: !!python/tuple [std, dist, oot, oot-dist]
626 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
627 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
628 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
630 - '{job_prefix}lttng-ust_{version}_{buildtype}':
633 platforms: !!python/tuple [bionic-amd64]
634 builds: !!python/tuple [std, dist, oot, oot-dist]
635 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
636 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
637 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
639 - '{job_prefix}lttng-ust_{version}_{buildtype}':
642 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
643 builds: !!python/tuple [std]
644 confs: !!python/tuple [std, agents]
645 liburcu_versions: !!python/tuple [stable-0.13, master]
648 - '{job_prefix}lttng-ust_{version}_{buildtype}':
651 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
652 builds: !!python/tuple [std]
653 confs: !!python/tuple [agents]
654 liburcu_versions: !!python/tuple [stable-0.13]
657 - '{job_prefix}lttng-ust_{version}_{buildtype}':
660 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
661 builds: !!python/tuple [std]
662 confs: !!python/tuple [std]
663 liburcu_versions: !!python/tuple [stable-0.13]
666 - '{job_prefix}lttng-ust_{version}_{buildtype}':
667 buildtype: yoctobuild
669 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
670 builds: !!python/tuple [std]
671 confs: !!python/tuple [std]
672 liburcu_versions: !!python/tuple [stable-0.13]
675 - 'lttng-ust_{version}_scan-build':
680 name: lttng-ust-dev-upstream
681 job_prefix: dev_upstream_
683 github_name: lttng-ust
684 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
687 - '{job_prefix}lttng-ust_{version}_{buildtype}':
688 buildtype: linuxbuild
690 platforms: !!python/tuple [jammy-amd64]
691 builds: !!python/tuple [std, dist, oot, oot-dist]
692 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
693 liburcu_versions: !!python/tuple [stable-0.11]
694 filter: '(build=="std") || (conf=="std" || conf=="agents")'
696 - '{job_prefix}lttng-ust_{version}_{buildtype}':
699 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
700 builds: !!python/tuple [std]
701 confs: !!python/tuple [agents]
702 liburcu_versions: !!python/tuple [stable-0.11]
705 - '{job_prefix}lttng-ust_{version}_{buildtype}':
708 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
709 builds: !!python/tuple [std]
710 confs: !!python/tuple [agents]
711 liburcu_versions: !!python/tuple [stable-0.11]
714 - '{job_prefix}lttng-ust_{version}_{buildtype}':
717 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
718 builds: !!python/tuple [std]
719 confs: !!python/tuple [std]
720 liburcu_versions: !!python/tuple [stable-0.11]
725 - '{job_prefix}lttng-ust_{version}_{buildtype}':
726 buildtype: linuxbuild
728 platforms: !!python/tuple [jammy-amd64]
729 builds: !!python/tuple [std, dist, oot, oot-dist]
730 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
731 liburcu_versions: !!python/tuple [stable-0.9]
732 filter: '(build=="std") || (conf=="std" || conf=="agents")'
734 - '{job_prefix}lttng-ust_{version}_{buildtype}':
737 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
738 builds: !!python/tuple [std]
739 confs: !!python/tuple [agents]
740 liburcu_versions: !!python/tuple [stable-0.9]
743 - '{job_prefix}lttng-ust_{version}_{buildtype}':
746 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
747 builds: !!python/tuple [std]
748 confs: !!python/tuple [agents]
749 liburcu_versions: !!python/tuple [stable-0.9]
752 - '{job_prefix}lttng-ust_{version}_{buildtype}':
755 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
756 builds: !!python/tuple [std]
757 confs: !!python/tuple [std]
758 liburcu_versions: !!python/tuple [stable-0.9]
764 name: gerrit-lttng-ust
767 github_name: lttng-ust
769 - 'dev_gerrit_lttng-ust_{buildtype}':
771 platforms: !!python/tuple [bionic-amd64]
772 builds: !!python/tuple [std, oot, dist, oot-dist]
773 confs: !!python/tuple [std, agents]
774 liburcu_versions: !!python/tuple [stable-0.14]
777 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
779 platforms: !!python/tuple [bionic-amd64]
780 builds: !!python/tuple [std, oot, dist, oot-dist]
781 confs: !!python/tuple [std, agents]
784 liburcu_version: stable-0.14
785 babeltrace_version: stable-2.0
786 - 'dev_gerrit_lttng-ust_{buildtype}':
788 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
789 builds: !!python/tuple [std]
790 confs: !!python/tuple [agents]
791 liburcu_versions: !!python/tuple [stable-0.14]
794 - 'dev_gerrit_lttng-ust_{buildtype}':
795 buildtype: freebsdbuild
796 platforms: !!python/tuple [freebsd-amd64]
797 builds: !!python/tuple [std]
798 confs: !!python/tuple [agents]
799 liburcu_versions: !!python/tuple [stable-0.14]
804 name: lttng-ust-views