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>
211 <sourceCodeEncoding/>
214 <ignoreQualityGate>false</ignoreQualityGate>
215 <ignoreFailedBuilds>true</ignoreFailedBuilds>
216 <failOnError>false</failOnError>
218 <unhealthy>0</unhealthy>
219 <minimumSeverity plugin="analysis-model-api">
223 <isEnabledForFailure>true</isEnabledForFailure>
224 <isAggregatingResults>true</isAggregatingResults>
225 <isBlameDisabled>false</isBlameDisabled>
226 <skipPublishingChecks>true</skipPublishingChecks>
227 <publishAllIssues>false</publishAllIssues>
229 <io.jenkins.plugins.analysis.core.util.QualityGate>
230 <threshold>1</threshold>
232 <status>WARNING</status>
233 </io.jenkins.plugins.analysis.core.util.QualityGate>
235 <trendChartType>AGGREGATION_TOOLS</trendChartType>
237 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
238 - archive: <tng-ust_publisher_archive_defaults
239 artifacts: 'build/**,tap/**'
241 - workspace-cleanup: <tng-ust_publisher_workspace-cleanup_defaults
244 - email-ext: <tng-ust_publisher_email-ext_defaults
245 recipients: '{obj:email_to}'
246 reply-to: ci-notification@lists.lttng.org
255 second-failure: false
260 fixed-unhealthy: true
261 still-unstable: false
263 matrix-trigger: only-parent
267 - lttng-ust_publishers_gerrit: <tng-ust_publishers_gerrit
268 name: 'lttng-ust_publishers_gerrit'
270 - tap: *lttng-ust_publisher_tap_defaults
271 # Fail job on any compiler warnings
274 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
276 <io.jenkins.plugins.analysis.warnings.Gcc4>
279 <jenkins plugin="plugin-util-api"/>
282 <skipSymbolicLinks>false</skipSymbolicLinks>
283 </io.jenkins.plugins.analysis.warnings.Gcc4>
285 <sourceCodeEncoding/>
288 <ignoreQualityGate>false</ignoreQualityGate>
289 <ignoreFailedBuilds>true</ignoreFailedBuilds>
290 <failOnError>false</failOnError>
292 <unhealthy>0</unhealthy>
293 <minimumSeverity plugin="analysis-model-api">
297 <isEnabledForFailure>true</isEnabledForFailure>
298 <isAggregatingResults>true</isAggregatingResults>
299 <isBlameDisabled>false</isBlameDisabled>
300 <skipPublishingChecks>true</skipPublishingChecks>
301 <publishAllIssues>false</publishAllIssues>
303 <io.jenkins.plugins.analysis.core.util.QualityGate>
304 <threshold>1</threshold>
306 <status>FAILED</status>
307 </io.jenkins.plugins.analysis.core.util.QualityGate>
309 <trendChartType>AGGREGATION_TOOLS</trendChartType>
311 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
312 - archive: *lttng-ust_publisher_archive_defaults
313 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
318 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
321 <<: *lttng-ust_matrix_axes_defaults
322 <<: *lttng-ust_builders_defaults
323 <<: *lttng-ust_publishers_defaults
327 name: dev_gerrit_lttng-ust_{buildtype}
333 url: https://review.lttng.org/lttng-ust
334 refspec: 'refs/changes/*:refs/changes/*'
337 basedir: src/lttng-ust
343 - comment-added-event:
344 approval-category: 'CI-Build'
347 - project-compare-type: 'PLAIN'
348 project-pattern: 'lttng-ust'
350 - branch-compare-type: 'ANT'
353 <<: *lttng-ust_matrix_axes_defaults
354 <<: *lttng-ust_builders_defaults
355 <<: *lttng-ust_publishers_gerrit
359 properties-content: |
360 PROJECT_NAME=lttng-ust
366 - 'gerrit-{buildtype}'
370 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
376 url: https://review.lttng.org/lttng-ust
377 refspec: 'refs/changes/*:refs/changes/*'
380 basedir: src/lttng-ust
386 - comment-added-event:
387 approval-category: 'CI-Build'
390 - project-compare-type: 'PLAIN'
391 project-pattern: 'lttng-ust'
393 - branch-compare-type: 'ANT'
396 <<: *lttng-ust_matrix_axes_gerrit_lttng-tools
397 <<: *lttng-ust_builders_gerrit_lttng-tools
398 <<: *lttng-ust_publishers_gerrit
402 properties-content: |
403 PROJECT_NAME=lttng-ust
409 - 'gerrit-{buildtype}'
413 name: lttng-ust_{version}_scan-build
423 <<: *lttng-ust_steps_copyartifact_defaults
424 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
426 !include-raw-escape: scripts/common/scan-build.sh
431 dir: 'scan-build-archive/'
433 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_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_build/platform=bionic-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
474 regex: 'lttng-ust[-_].*'
482 github_name: lttng-ust
483 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
486 - '{job_prefix}lttng-ust_{version}_{buildtype}':
487 buildtype: linuxbuild
489 platforms: !!python/tuple [jammy-amd64]
490 builds: !!python/tuple [std, dist, oot, oot-dist]
491 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
492 liburcu_versions: !!python/tuple [stable-0.13, master]
493 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
495 - '{job_prefix}lttng-ust_{version}_{buildtype}':
498 platforms: !!python/tuple [bionic-amd64]
499 builds: !!python/tuple [std, dist, oot, oot-dist]
500 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
501 liburcu_versions: !!python/tuple [stable-0.13, master]
502 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
504 - '{job_prefix}lttng-ust_{version}_{buildtype}':
507 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
508 builds: !!python/tuple [std]
509 confs: !!python/tuple [std, agents]
510 liburcu_versions: !!python/tuple [stable-0.13, master]
513 - '{job_prefix}lttng-ust_{version}_{buildtype}':
516 platforms: !!python/tuple [sles12sp5-amd64]
517 builds: !!python/tuple [std]
518 confs: !!python/tuple [agents]
519 liburcu_versions: !!python/tuple [stable-0.13, master]
522 - '{job_prefix}lttng-ust_{version}_{buildtype}':
525 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
526 builds: !!python/tuple [std]
527 confs: !!python/tuple [std]
528 liburcu_versions: !!python/tuple [stable-0.13, master]
531 - '{job_prefix}lttng-ust_{version}_{buildtype}':
532 buildtype: freebsdbuild
534 platforms: !!python/tuple [freebsd-amd64]
535 builds: !!python/tuple [std]
536 confs: !!python/tuple [agents]
537 liburcu_versions: !!python/tuple [stable-0.13, master]
540 - 'lttng-ust_{version}_scan-build':
542 - 'lttng-ust_{version}_coverity':
546 - '{job_prefix}lttng-ust_{version}_{buildtype}':
547 buildtype: linuxbuild
549 platforms: !!python/tuple [jammy-amd64]
550 builds: !!python/tuple [std, dist, oot, oot-dist]
551 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
552 liburcu_versions: !!python/tuple [stable-0.13, master]
553 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
555 - '{job_prefix}lttng-ust_{version}_{buildtype}':
558 platforms: !!python/tuple [bionic-amd64]
559 builds: !!python/tuple [std, dist, oot, oot-dist]
560 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
561 liburcu_versions: !!python/tuple [stable-0.13, master]
562 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
564 - '{job_prefix}lttng-ust_{version}_{buildtype}':
567 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
568 builds: !!python/tuple [std]
569 confs: !!python/tuple [std, agents]
570 liburcu_versions: !!python/tuple [stable-0.13, master]
573 - '{job_prefix}lttng-ust_{version}_{buildtype}':
576 platforms: !!python/tuple [sles12sp5-amd64]
577 builds: !!python/tuple [std]
578 confs: !!python/tuple [agents]
579 liburcu_versions: !!python/tuple [stable-0.13, master]
582 - '{job_prefix}lttng-ust_{version}_{buildtype}':
585 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
586 builds: !!python/tuple [std]
587 confs: !!python/tuple [std]
588 liburcu_versions: !!python/tuple [stable-0.13, master]
591 - 'lttng-ust_{version}_scan-build':
595 - '{job_prefix}lttng-ust_{version}_{buildtype}':
596 buildtype: linuxbuild
598 platforms: !!python/tuple [jammy-amd64]
599 builds: !!python/tuple [std, dist, oot, oot-dist]
600 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
601 liburcu_versions: !!python/tuple [stable-0.13, master]
602 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
604 - '{job_prefix}lttng-ust_{version}_{buildtype}':
607 platforms: !!python/tuple [bionic-amd64]
608 builds: !!python/tuple [std, dist, oot, oot-dist]
609 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
610 liburcu_versions: !!python/tuple [stable-0.13, master]
611 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
613 - '{job_prefix}lttng-ust_{version}_{buildtype}':
616 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
617 builds: !!python/tuple [std]
618 confs: !!python/tuple [std, agents]
619 liburcu_versions: !!python/tuple [stable-0.13, master]
622 - '{job_prefix}lttng-ust_{version}_{buildtype}':
625 platforms: !!python/tuple [sles12sp5-amd64]
626 builds: !!python/tuple [std]
627 confs: !!python/tuple [agents]
628 liburcu_versions: !!python/tuple [stable-0.13]
631 - '{job_prefix}lttng-ust_{version}_{buildtype}':
634 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
635 builds: !!python/tuple [std]
636 confs: !!python/tuple [std]
637 liburcu_versions: !!python/tuple [stable-0.13]
640 - 'lttng-ust_{version}_scan-build':
645 name: lttng-ust-dev-upstream
646 job_prefix: dev_upstream_
648 github_name: lttng-ust
649 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
652 - '{job_prefix}lttng-ust_{version}_{buildtype}':
655 platforms: !!python/tuple [bionic-amd64]
656 builds: !!python/tuple [std, dist, oot, oot-dist]
657 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
658 liburcu_versions: !!python/tuple [stable-0.11]
659 filter: '(build=="std") || (conf=="std" || conf=="agents")'
661 - '{job_prefix}lttng-ust_{version}_{buildtype}':
664 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
665 builds: !!python/tuple [std]
666 confs: !!python/tuple [agents]
667 liburcu_versions: !!python/tuple [stable-0.11]
670 - '{job_prefix}lttng-ust_{version}_{buildtype}':
673 platforms: !!python/tuple [sles12sp5-amd64]
674 builds: !!python/tuple [std]
675 confs: !!python/tuple [agents]
676 liburcu_versions: !!python/tuple [stable-0.11]
679 - '{job_prefix}lttng-ust_{version}_{buildtype}':
682 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
683 builds: !!python/tuple [std]
684 confs: !!python/tuple [std]
685 liburcu_versions: !!python/tuple [stable-0.11]
690 - '{job_prefix}lttng-ust_{version}_{buildtype}':
693 platforms: !!python/tuple [bionic-amd64]
694 builds: !!python/tuple [std, dist, oot, oot-dist]
695 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
696 liburcu_versions: !!python/tuple [stable-0.9]
697 filter: '(build=="std") || (conf=="std" || conf=="agents")'
699 - '{job_prefix}lttng-ust_{version}_{buildtype}':
702 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
703 builds: !!python/tuple [std]
704 confs: !!python/tuple [agents]
705 liburcu_versions: !!python/tuple [stable-0.9]
708 - '{job_prefix}lttng-ust_{version}_{buildtype}':
711 platforms: !!python/tuple [sles12sp5-amd64]
712 builds: !!python/tuple [std]
713 confs: !!python/tuple [agents]
714 liburcu_versions: !!python/tuple [stable-0.9]
717 - '{job_prefix}lttng-ust_{version}_{buildtype}':
720 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
721 builds: !!python/tuple [std]
722 confs: !!python/tuple [std]
723 liburcu_versions: !!python/tuple [stable-0.9]
729 name: gerrit-lttng-ust
732 github_name: lttng-ust
734 - 'dev_gerrit_lttng-ust_{buildtype}':
736 platforms: !!python/tuple [bionic-amd64]
737 builds: !!python/tuple [std, oot, dist, oot-dist]
738 confs: !!python/tuple [std, agents]
739 liburcu_versions: !!python/tuple [stable-0.13]
742 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
744 platforms: !!python/tuple [bionic-amd64]
745 builds: !!python/tuple [std, oot, dist, oot-dist]
746 confs: !!python/tuple [std, agents]
749 liburcu_version: stable-0.13
750 babeltrace_version: stable-2.0
751 - 'dev_gerrit_lttng-ust_{buildtype}':
753 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
754 builds: !!python/tuple [std]
755 confs: !!python/tuple [agents]
756 liburcu_versions: !!python/tuple [stable-0.13]
759 - 'dev_gerrit_lttng-ust_{buildtype}':
760 buildtype: freebsdbuild
761 platforms: !!python/tuple [freebsd-amd64]
762 builds: !!python/tuple [std]
763 confs: !!python/tuple [agents]
764 liburcu_versions: !!python/tuple [stable-0.13]
769 name: lttng-ust-views