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 - email-ext: <tng-ust_publisher_email-ext_defaults
247 recipients: '{obj:email_to}'
248 reply-to: ci-notification@lists.lttng.org
257 second-failure: false
262 fixed-unhealthy: true
263 still-unstable: false
265 matrix-trigger: only-parent
269 - lttng-ust_publishers_gerrit: <tng-ust_publishers_gerrit
270 name: 'lttng-ust_publishers_gerrit'
272 - tap: *lttng-ust_publisher_tap_defaults
273 # Fail job on any compiler warnings
276 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
278 <io.jenkins.plugins.analysis.warnings.Gcc4>
281 <jenkins plugin="plugin-util-api"/>
284 <skipSymbolicLinks>false</skipSymbolicLinks>
285 </io.jenkins.plugins.analysis.warnings.Gcc4>
287 <sourceCodeEncoding/>
290 <ignoreQualityGate>false</ignoreQualityGate>
291 <ignoreFailedBuilds>true</ignoreFailedBuilds>
292 <failOnError>false</failOnError>
294 <unhealthy>0</unhealthy>
295 <minimumSeverity plugin="analysis-model-api">
299 <isEnabledForFailure>true</isEnabledForFailure>
300 <isAggregatingResults>true</isAggregatingResults>
301 <isBlameDisabled>false</isBlameDisabled>
302 <skipPublishingChecks>true</skipPublishingChecks>
303 <publishAllIssues>false</publishAllIssues>
305 <io.jenkins.plugins.analysis.core.util.QualityGate>
306 <threshold>1</threshold>
308 <status>FAILED</status>
309 </io.jenkins.plugins.analysis.core.util.QualityGate>
311 <trendChartType>AGGREGATION_TOOLS</trendChartType>
313 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
314 - archive: *lttng-ust_publisher_archive_defaults
315 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
320 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
323 <<: *lttng-ust_matrix_axes_defaults
324 <<: *lttng-ust_builders_defaults
325 <<: *lttng-ust_publishers_defaults
329 name: dev_gerrit_lttng-ust_{buildtype}
335 url: https://review.lttng.org/lttng-ust
336 refspec: 'refs/changes/*:refs/changes/*'
339 basedir: src/lttng-ust
345 - comment-added-event:
346 approval-category: 'CI-Build'
349 - project-compare-type: 'PLAIN'
350 project-pattern: 'lttng-ust'
352 - branch-compare-type: 'ANT'
355 <<: *lttng-ust_matrix_axes_defaults
356 <<: *lttng-ust_builders_defaults
357 <<: *lttng-ust_publishers_gerrit
361 properties-content: |
362 PROJECT_NAME=lttng-ust
368 - 'gerrit-{buildtype}'
372 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
378 url: https://review.lttng.org/lttng-ust
379 refspec: 'refs/changes/*:refs/changes/*'
382 basedir: src/lttng-ust
388 - comment-added-event:
389 approval-category: 'CI-Build'
392 - project-compare-type: 'PLAIN'
393 project-pattern: 'lttng-ust'
395 - branch-compare-type: 'ANT'
398 <<: *lttng-ust_matrix_axes_gerrit_lttng-tools
399 <<: *lttng-ust_builders_gerrit_lttng-tools
400 <<: *lttng-ust_publishers_gerrit
404 properties-content: |
405 PROJECT_NAME=lttng-ust
411 - 'gerrit-{buildtype}'
415 name: lttng-ust_{version}_scan-build
425 <<: *lttng-ust_steps_copyartifact_defaults
426 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
428 !include-raw-escape: scripts/common/scan-build.sh
433 dir: 'scan-build-archive/'
435 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
439 name: lttng-ust_{version}_coverity
448 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
449 - timeout: *lttng-ust_wrapper_timeout_defaults
452 - credentials-binding:
453 - username-password-separated:
454 credential-id: lttng-ust_coverity_token
455 username: COVERITY_SCAN_PROJECT_NAME
456 password: COVERITY_SCAN_TOKEN
460 <<: *lttng-ust_steps_copyartifact_defaults
461 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
463 !include-raw-escape: scripts/common/coverity.sh
467 artifacts: 'analysis-results.tgz,cov-int/**'
469 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
476 regex: 'lttng-ust[-_].*'
484 github_name: lttng-ust
485 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
488 - '{job_prefix}lttng-ust_{version}_{buildtype}':
489 buildtype: linuxbuild
491 platforms: !!python/tuple [jammy-amd64]
492 builds: !!python/tuple [std, dist, oot, oot-dist]
493 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
494 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
495 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
497 - '{job_prefix}lttng-ust_{version}_{buildtype}':
500 platforms: !!python/tuple [bionic-amd64]
501 builds: !!python/tuple [std, dist, oot, oot-dist]
502 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
503 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
504 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
506 - '{job_prefix}lttng-ust_{version}_{buildtype}':
509 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
510 builds: !!python/tuple [std]
511 confs: !!python/tuple [std, agents]
512 liburcu_versions: !!python/tuple [stable-0.13, master]
515 - '{job_prefix}lttng-ust_{version}_{buildtype}':
518 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
519 builds: !!python/tuple [std]
520 confs: !!python/tuple [agents]
521 liburcu_versions: !!python/tuple [stable-0.13, master]
524 - '{job_prefix}lttng-ust_{version}_{buildtype}':
527 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
528 builds: !!python/tuple [std]
529 confs: !!python/tuple [std]
530 liburcu_versions: !!python/tuple [stable-0.13, master]
533 - '{job_prefix}lttng-ust_{version}_{buildtype}':
534 buildtype: yoctobuild
536 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
537 builds: !!python/tuple [std]
538 confs: !!python/tuple [std]
539 liburcu_versions: !!python/tuple [stable-0.13, master]
542 - '{job_prefix}lttng-ust_{version}_{buildtype}':
543 buildtype: freebsdbuild
545 platforms: !!python/tuple [freebsd-amd64]
546 builds: !!python/tuple [std]
547 confs: !!python/tuple [agents]
548 liburcu_versions: !!python/tuple [stable-0.13, master]
551 - 'lttng-ust_{version}_scan-build':
553 - 'lttng-ust_{version}_coverity':
557 - '{job_prefix}lttng-ust_{version}_{buildtype}':
558 buildtype: linuxbuild
560 platforms: !!python/tuple [jammy-amd64]
561 builds: !!python/tuple [std, dist, oot, oot-dist]
562 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
563 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
564 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
566 - '{job_prefix}lttng-ust_{version}_{buildtype}':
569 platforms: !!python/tuple [bionic-amd64]
570 builds: !!python/tuple [std, dist, oot, oot-dist]
571 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
572 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
573 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
575 - '{job_prefix}lttng-ust_{version}_{buildtype}':
578 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
579 builds: !!python/tuple [std]
580 confs: !!python/tuple [std, agents]
581 liburcu_versions: !!python/tuple [stable-0.13, master]
584 - '{job_prefix}lttng-ust_{version}_{buildtype}':
587 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
588 builds: !!python/tuple [std]
589 confs: !!python/tuple [agents]
590 liburcu_versions: !!python/tuple [stable-0.13, master]
593 - '{job_prefix}lttng-ust_{version}_{buildtype}':
596 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
597 builds: !!python/tuple [std]
598 confs: !!python/tuple [std]
599 liburcu_versions: !!python/tuple [stable-0.13, master]
602 - '{job_prefix}lttng-ust_{version}_{buildtype}':
603 buildtype: yoctobuild
605 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
606 builds: !!python/tuple [std]
607 confs: !!python/tuple [std]
608 liburcu_versions: !!python/tuple [stable-0.13, master]
611 - 'lttng-ust_{version}_scan-build':
615 - '{job_prefix}lttng-ust_{version}_{buildtype}':
616 buildtype: linuxbuild
618 platforms: !!python/tuple [jammy-amd64]
619 builds: !!python/tuple [std, dist, oot, oot-dist]
620 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
621 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
622 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
624 - '{job_prefix}lttng-ust_{version}_{buildtype}':
627 platforms: !!python/tuple [bionic-amd64]
628 builds: !!python/tuple [std, dist, oot, oot-dist]
629 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
630 liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
631 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
633 - '{job_prefix}lttng-ust_{version}_{buildtype}':
636 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
637 builds: !!python/tuple [std]
638 confs: !!python/tuple [std, agents]
639 liburcu_versions: !!python/tuple [stable-0.13, master]
642 - '{job_prefix}lttng-ust_{version}_{buildtype}':
645 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
646 builds: !!python/tuple [std]
647 confs: !!python/tuple [agents]
648 liburcu_versions: !!python/tuple [stable-0.13]
651 - '{job_prefix}lttng-ust_{version}_{buildtype}':
654 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
655 builds: !!python/tuple [std]
656 confs: !!python/tuple [std]
657 liburcu_versions: !!python/tuple [stable-0.13]
660 - '{job_prefix}lttng-ust_{version}_{buildtype}':
661 buildtype: yoctobuild
663 platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
664 builds: !!python/tuple [std]
665 confs: !!python/tuple [std]
666 liburcu_versions: !!python/tuple [stable-0.13]
669 - 'lttng-ust_{version}_scan-build':
674 name: lttng-ust-dev-upstream
675 job_prefix: dev_upstream_
677 github_name: lttng-ust
678 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
681 - '{job_prefix}lttng-ust_{version}_{buildtype}':
682 buildtype: linuxbuild
684 platforms: !!python/tuple [jammy-amd64]
685 builds: !!python/tuple [std, dist, oot, oot-dist]
686 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
687 liburcu_versions: !!python/tuple [stable-0.11]
688 filter: '(build=="std") || (conf=="std" || conf=="agents")'
690 - '{job_prefix}lttng-ust_{version}_{buildtype}':
693 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
694 builds: !!python/tuple [std]
695 confs: !!python/tuple [agents]
696 liburcu_versions: !!python/tuple [stable-0.11]
699 - '{job_prefix}lttng-ust_{version}_{buildtype}':
702 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
703 builds: !!python/tuple [std]
704 confs: !!python/tuple [agents]
705 liburcu_versions: !!python/tuple [stable-0.11]
708 - '{job_prefix}lttng-ust_{version}_{buildtype}':
711 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
712 builds: !!python/tuple [std]
713 confs: !!python/tuple [std]
714 liburcu_versions: !!python/tuple [stable-0.11]
719 - '{job_prefix}lttng-ust_{version}_{buildtype}':
720 buildtype: linuxbuild
722 platforms: !!python/tuple [jammy-amd64]
723 builds: !!python/tuple [std, dist, oot, oot-dist]
724 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
725 liburcu_versions: !!python/tuple [stable-0.9]
726 filter: '(build=="std") || (conf=="std" || conf=="agents")'
728 - '{job_prefix}lttng-ust_{version}_{buildtype}':
731 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
732 builds: !!python/tuple [std]
733 confs: !!python/tuple [agents]
734 liburcu_versions: !!python/tuple [stable-0.9]
737 - '{job_prefix}lttng-ust_{version}_{buildtype}':
740 platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
741 builds: !!python/tuple [std]
742 confs: !!python/tuple [agents]
743 liburcu_versions: !!python/tuple [stable-0.9]
746 - '{job_prefix}lttng-ust_{version}_{buildtype}':
749 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
750 builds: !!python/tuple [std]
751 confs: !!python/tuple [std]
752 liburcu_versions: !!python/tuple [stable-0.9]
758 name: gerrit-lttng-ust
761 github_name: lttng-ust
763 - 'dev_gerrit_lttng-ust_{buildtype}':
765 platforms: !!python/tuple [bionic-amd64]
766 builds: !!python/tuple [std, oot, dist, oot-dist]
767 confs: !!python/tuple [std, agents]
768 liburcu_versions: !!python/tuple [stable-0.14]
771 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
773 platforms: !!python/tuple [bionic-amd64]
774 builds: !!python/tuple [std, oot, dist, oot-dist]
775 confs: !!python/tuple [std, agents]
778 liburcu_version: stable-0.14
779 babeltrace_version: stable-2.0
780 - 'dev_gerrit_lttng-ust_{buildtype}':
782 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
783 builds: !!python/tuple [std]
784 confs: !!python/tuple [agents]
785 liburcu_versions: !!python/tuple [stable-0.14]
788 - 'dev_gerrit_lttng-ust_{buildtype}':
789 buildtype: freebsdbuild
790 platforms: !!python/tuple [freebsd-amd64]
791 builds: !!python/tuple [std]
792 confs: !!python/tuple [agents]
793 liburcu_versions: !!python/tuple [stable-0.14]
798 name: lttng-ust-views