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 todo-is-failure: false
198 - raw: <tng-ust_publisher_warnings-ng_defaults
200 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
202 <io.jenkins.plugins.analysis.warnings.Gcc4>
205 <jenkins plugin="plugin-util-api"/>
208 <skipSymbolicLinks>false</skipSymbolicLinks>
209 </io.jenkins.plugins.analysis.warnings.Gcc4>
210 <io.jenkins.plugins.analysis.warnings.Clang>
213 <jenkins plugin="plugin-util-api"/>
216 <skipSymbolicLinks>false</skipSymbolicLinks>
217 </io.jenkins.plugins.analysis.warnings.Clang>
219 <sourceCodeEncoding/>
222 <ignoreQualityGate>false</ignoreQualityGate>
223 <ignoreFailedBuilds>true</ignoreFailedBuilds>
224 <failOnError>false</failOnError>
226 <unhealthy>0</unhealthy>
227 <minimumSeverity plugin="analysis-model-api">
231 <isEnabledForFailure>true</isEnabledForFailure>
232 <isAggregatingResults>true</isAggregatingResults>
233 <isBlameDisabled>false</isBlameDisabled>
234 <skipPublishingChecks>true</skipPublishingChecks>
235 <publishAllIssues>false</publishAllIssues>
237 <io.jenkins.plugins.analysis.core.util.QualityGate>
238 <threshold>1</threshold>
240 <status>WARNING</status>
241 </io.jenkins.plugins.analysis.core.util.QualityGate>
243 <trendChartType>AGGREGATION_TOOLS</trendChartType>
245 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
246 - archive: <tng-ust_publisher_archive_defaults
247 artifacts: 'build/**,tap/**'
249 - workspace-cleanup: <tng-ust_publisher_workspace-cleanup_defaults
252 - email-ext: <tng-ust_publisher_email-ext_defaults
253 recipients: '{obj:email_to}'
254 reply-to: ci-notification@lists.lttng.org
263 second-failure: false
268 fixed-unhealthy: true
269 still-unstable: false
271 matrix-trigger: only-parent
275 - lttng-ust_publishers_gerrit: <tng-ust_publishers_gerrit
276 name: 'lttng-ust_publishers_gerrit'
278 - tap: *lttng-ust_publisher_tap_defaults
279 # Fail job on any compiler warnings
282 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
284 <io.jenkins.plugins.analysis.warnings.Gcc4>
287 <jenkins plugin="plugin-util-api"/>
290 <skipSymbolicLinks>false</skipSymbolicLinks>
291 </io.jenkins.plugins.analysis.warnings.Gcc4>
292 <io.jenkins.plugins.analysis.warnings.Clang>
295 <jenkins plugin="plugin-util-api"/>
298 <skipSymbolicLinks>false</skipSymbolicLinks>
299 </io.jenkins.plugins.analysis.warnings.Clang>
301 <sourceCodeEncoding/>
304 <ignoreQualityGate>false</ignoreQualityGate>
305 <ignoreFailedBuilds>true</ignoreFailedBuilds>
306 <failOnError>false</failOnError>
308 <unhealthy>0</unhealthy>
309 <minimumSeverity plugin="analysis-model-api">
313 <isEnabledForFailure>true</isEnabledForFailure>
314 <isAggregatingResults>true</isAggregatingResults>
315 <isBlameDisabled>false</isBlameDisabled>
316 <skipPublishingChecks>true</skipPublishingChecks>
317 <publishAllIssues>false</publishAllIssues>
319 <io.jenkins.plugins.analysis.core.util.QualityGate>
320 <threshold>1</threshold>
322 <status>FAILED</status>
323 </io.jenkins.plugins.analysis.core.util.QualityGate>
325 <trendChartType>AGGREGATION_TOOLS</trendChartType>
327 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
328 - archive: *lttng-ust_publisher_archive_defaults
329 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
334 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
337 <<: *lttng-ust_matrix_axes_defaults
338 <<: *lttng-ust_builders_defaults
339 <<: *lttng-ust_publishers_defaults
343 name: dev_gerrit_lttng-ust_{buildtype}
349 url: https://review.lttng.org/lttng-ust
350 refspec: 'refs/changes/*:refs/changes/*'
353 basedir: src/lttng-ust
359 - comment-added-event:
360 approval-category: 'CI-Build'
363 - project-compare-type: 'PLAIN'
364 project-pattern: 'lttng-ust'
366 - branch-compare-type: 'ANT'
369 <<: *lttng-ust_matrix_axes_defaults
370 <<: *lttng-ust_builders_defaults
371 <<: *lttng-ust_publishers_gerrit
375 properties-content: |
376 PROJECT_NAME=lttng-ust
382 - 'gerrit-{buildtype}'
386 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
392 url: https://review.lttng.org/lttng-ust
393 refspec: 'refs/changes/*:refs/changes/*'
396 basedir: src/lttng-ust
402 - comment-added-event:
403 approval-category: 'CI-Build'
406 - project-compare-type: 'PLAIN'
407 project-pattern: 'lttng-ust'
409 - branch-compare-type: 'ANT'
412 <<: *lttng-ust_matrix_axes_gerrit_lttng-tools
413 <<: *lttng-ust_builders_gerrit_lttng-tools
414 <<: *lttng-ust_publishers_gerrit
418 properties-content: |
419 PROJECT_NAME=lttng-ust
425 - 'gerrit-{buildtype}'
429 name: lttng-ust_{version}_scan-build
439 <<: *lttng-ust_steps_copyartifact_defaults
440 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
442 !include-raw-escape: scripts/common/scan-build.sh
447 dir: 'scan-build-archive/'
449 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
453 name: lttng-ust_{version}_coverity
462 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
463 - timeout: *lttng-ust_wrapper_timeout_defaults
466 - credentials-binding:
467 - username-password-separated:
468 credential-id: lttng-ust_coverity_token
469 username: COVERITY_SCAN_PROJECT_NAME
470 password: COVERITY_SCAN_TOKEN
474 <<: *lttng-ust_steps_copyartifact_defaults
475 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
477 !include-raw-escape: scripts/common/coverity.sh
481 artifacts: 'analysis-results.tgz,cov-int/**'
483 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
490 regex: 'lttng-ust[-_].*'
498 github_name: lttng-ust
499 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
502 - '{job_prefix}lttng-ust_{version}_{buildtype}':
503 buildtype: linuxbuild
505 platforms: !!python/tuple [jammy-amd64]
506 builds: !!python/tuple [std, dist, oot, oot-dist]
507 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
508 liburcu_versions: !!python/tuple [stable-0.13, master]
509 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
511 - '{job_prefix}lttng-ust_{version}_{buildtype}':
514 platforms: !!python/tuple [bionic-amd64]
515 builds: !!python/tuple [std, dist, oot, oot-dist]
516 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
517 liburcu_versions: !!python/tuple [stable-0.13, master]
518 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
520 - '{job_prefix}lttng-ust_{version}_{buildtype}':
523 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
524 builds: !!python/tuple [std]
525 confs: !!python/tuple [std, agents]
526 liburcu_versions: !!python/tuple [stable-0.13, master]
529 - '{job_prefix}lttng-ust_{version}_{buildtype}':
532 platforms: !!python/tuple [sles12sp5-amd64]
533 builds: !!python/tuple [std]
534 confs: !!python/tuple [agents]
535 liburcu_versions: !!python/tuple [stable-0.13, master]
538 - '{job_prefix}lttng-ust_{version}_{buildtype}':
541 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
542 builds: !!python/tuple [std]
543 confs: !!python/tuple [std]
544 liburcu_versions: !!python/tuple [stable-0.13, master]
547 - '{job_prefix}lttng-ust_{version}_{buildtype}':
548 buildtype: freebsdbuild
550 platforms: !!python/tuple [freebsd-amd64]
551 builds: !!python/tuple [std]
552 confs: !!python/tuple [agents]
553 liburcu_versions: !!python/tuple [stable-0.13, master]
556 - 'lttng-ust_{version}_scan-build':
558 - 'lttng-ust_{version}_coverity':
562 - '{job_prefix}lttng-ust_{version}_{buildtype}':
563 buildtype: linuxbuild
565 platforms: !!python/tuple [jammy-amd64]
566 builds: !!python/tuple [std, dist, oot, oot-dist]
567 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
568 liburcu_versions: !!python/tuple [stable-0.13, master]
569 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
571 - '{job_prefix}lttng-ust_{version}_{buildtype}':
574 platforms: !!python/tuple [bionic-amd64]
575 builds: !!python/tuple [std, dist, oot, oot-dist]
576 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
577 liburcu_versions: !!python/tuple [stable-0.13, master]
578 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
580 - '{job_prefix}lttng-ust_{version}_{buildtype}':
583 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
584 builds: !!python/tuple [std]
585 confs: !!python/tuple [std, agents]
586 liburcu_versions: !!python/tuple [stable-0.13, master]
589 - '{job_prefix}lttng-ust_{version}_{buildtype}':
592 platforms: !!python/tuple [sles12sp5-amd64]
593 builds: !!python/tuple [std]
594 confs: !!python/tuple [agents]
595 liburcu_versions: !!python/tuple [stable-0.13, master]
598 - '{job_prefix}lttng-ust_{version}_{buildtype}':
601 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
602 builds: !!python/tuple [std]
603 confs: !!python/tuple [std]
604 liburcu_versions: !!python/tuple [stable-0.13, master]
607 - 'lttng-ust_{version}_scan-build':
611 - '{job_prefix}lttng-ust_{version}_{buildtype}':
612 buildtype: linuxbuild
614 platforms: !!python/tuple [jammy-amd64]
615 builds: !!python/tuple [std, dist, oot, oot-dist]
616 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
617 liburcu_versions: !!python/tuple [stable-0.13, master]
618 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
620 - '{job_prefix}lttng-ust_{version}_{buildtype}':
623 platforms: !!python/tuple [bionic-amd64]
624 builds: !!python/tuple [std, dist, oot, oot-dist]
625 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
626 liburcu_versions: !!python/tuple [stable-0.13, master]
627 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
629 - '{job_prefix}lttng-ust_{version}_{buildtype}':
632 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
633 builds: !!python/tuple [std]
634 confs: !!python/tuple [std, agents]
635 liburcu_versions: !!python/tuple [stable-0.13, master]
638 - '{job_prefix}lttng-ust_{version}_{buildtype}':
641 platforms: !!python/tuple [sles12sp5-amd64]
642 builds: !!python/tuple [std]
643 confs: !!python/tuple [agents]
644 liburcu_versions: !!python/tuple [stable-0.13]
647 - '{job_prefix}lttng-ust_{version}_{buildtype}':
650 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
651 builds: !!python/tuple [std]
652 confs: !!python/tuple [std]
653 liburcu_versions: !!python/tuple [stable-0.13]
656 - 'lttng-ust_{version}_scan-build':
661 name: lttng-ust-dev-upstream
662 job_prefix: dev_upstream_
664 github_name: lttng-ust
665 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
668 - '{job_prefix}lttng-ust_{version}_{buildtype}':
671 platforms: !!python/tuple [bionic-amd64]
672 builds: !!python/tuple [std, dist, oot, oot-dist]
673 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
674 liburcu_versions: !!python/tuple [stable-0.11]
675 filter: '(build=="std") || (conf=="std" || conf=="agents")'
677 - '{job_prefix}lttng-ust_{version}_{buildtype}':
680 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
681 builds: !!python/tuple [std]
682 confs: !!python/tuple [agents]
683 liburcu_versions: !!python/tuple [stable-0.11]
686 - '{job_prefix}lttng-ust_{version}_{buildtype}':
689 platforms: !!python/tuple [sles12sp5-amd64]
690 builds: !!python/tuple [std]
691 confs: !!python/tuple [agents]
692 liburcu_versions: !!python/tuple [stable-0.11]
695 - '{job_prefix}lttng-ust_{version}_{buildtype}':
698 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
699 builds: !!python/tuple [std]
700 confs: !!python/tuple [std]
701 liburcu_versions: !!python/tuple [stable-0.11]
706 - '{job_prefix}lttng-ust_{version}_{buildtype}':
709 platforms: !!python/tuple [bionic-amd64]
710 builds: !!python/tuple [std, dist, oot, oot-dist]
711 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
712 liburcu_versions: !!python/tuple [stable-0.9]
713 filter: '(build=="std") || (conf=="std" || conf=="agents")'
715 - '{job_prefix}lttng-ust_{version}_{buildtype}':
718 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
719 builds: !!python/tuple [std]
720 confs: !!python/tuple [agents]
721 liburcu_versions: !!python/tuple [stable-0.9]
724 - '{job_prefix}lttng-ust_{version}_{buildtype}':
727 platforms: !!python/tuple [sles12sp5-amd64]
728 builds: !!python/tuple [std]
729 confs: !!python/tuple [agents]
730 liburcu_versions: !!python/tuple [stable-0.9]
733 - '{job_prefix}lttng-ust_{version}_{buildtype}':
736 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
737 builds: !!python/tuple [std]
738 confs: !!python/tuple [std]
739 liburcu_versions: !!python/tuple [stable-0.9]
745 name: gerrit-lttng-ust
748 github_name: lttng-ust
750 - 'dev_gerrit_lttng-ust_{buildtype}':
752 platforms: !!python/tuple [bionic-amd64]
753 builds: !!python/tuple [std, oot, dist, oot-dist]
754 confs: !!python/tuple [std, agents]
755 liburcu_versions: !!python/tuple [stable-0.13]
758 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
760 platforms: !!python/tuple [bionic-amd64]
761 builds: !!python/tuple [std, oot, dist, oot-dist]
762 confs: !!python/tuple [std, agents]
765 liburcu_version: stable-0.13
766 babeltrace_version: stable-2.0
767 - 'dev_gerrit_lttng-ust_{buildtype}':
769 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
770 builds: !!python/tuple [std]
771 confs: !!python/tuple [agents]
772 liburcu_versions: !!python/tuple [stable-0.13]
775 - 'dev_gerrit_lttng-ust_{buildtype}':
776 buildtype: freebsdbuild
777 platforms: !!python/tuple [freebsd-amd64]
778 builds: !!python/tuple [std]
779 confs: !!python/tuple [agents]
780 liburcu_versions: !!python/tuple [stable-0.13]
785 name: lttng-ust-views