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}_cppcheck
438 rm -f cppcheck-result.xml
439 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
443 artifacts: 'cppcheck-result.xml'
446 pattern: 'cppcheck-result.xml'
448 recipients: 'ci-notification@lists.lttng.org'
449 notify-every-unstable-build: true
450 send-to-individuals: false
451 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
455 name: lttng-ust_{version}_scan-build
465 <<: *lttng-ust_steps_copyartifact_defaults
466 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
468 !include-raw-escape: scripts/common/scan-build.sh
473 dir: 'scan-build-archive/'
475 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
479 name: lttng-ust_{version}_coverity
488 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
489 - timeout: *lttng-ust_wrapper_timeout_defaults
492 - credentials-binding:
493 - username-password-separated:
494 credential-id: lttng-ust_coverity_token
495 username: COVERITY_SCAN_PROJECT_NAME
496 password: COVERITY_SCAN_TOKEN
500 <<: *lttng-ust_steps_copyartifact_defaults
501 project: liburcu_master_build/platform=bionic-amd64,conf=std,build=std
503 !include-raw-escape: scripts/common/coverity.sh
507 artifacts: 'analysis-results.tgz,cov-int/**'
509 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
516 regex: 'lttng-ust[-_].*'
524 github_name: lttng-ust
525 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
528 - '{job_prefix}lttng-ust_{version}_{buildtype}':
531 platforms: !!python/tuple [bionic-amd64]
532 builds: !!python/tuple [std, dist, oot, oot-dist]
533 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
534 liburcu_versions: !!python/tuple [stable-0.13, master]
535 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
537 - '{job_prefix}lttng-ust_{version}_{buildtype}':
540 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
541 builds: !!python/tuple [std]
542 confs: !!python/tuple [std, agents]
543 liburcu_versions: !!python/tuple [stable-0.13, master]
546 - '{job_prefix}lttng-ust_{version}_{buildtype}':
549 platforms: !!python/tuple [sles12sp5-amd64]
550 builds: !!python/tuple [std]
551 confs: !!python/tuple [agents]
552 liburcu_versions: !!python/tuple [stable-0.13, master]
555 - '{job_prefix}lttng-ust_{version}_{buildtype}':
558 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
559 builds: !!python/tuple [std]
560 confs: !!python/tuple [std]
561 liburcu_versions: !!python/tuple [stable-0.13, master]
564 - '{job_prefix}lttng-ust_{version}_{buildtype}':
565 buildtype: freebsdbuild
567 platforms: !!python/tuple [freebsd-amd64]
568 builds: !!python/tuple [std]
569 confs: !!python/tuple [agents]
570 liburcu_versions: !!python/tuple [stable-0.13, master]
573 - 'lttng-ust_{version}_cppcheck':
575 - 'lttng-ust_{version}_scan-build':
577 - 'lttng-ust_{version}_coverity':
581 - '{job_prefix}lttng-ust_{version}_{buildtype}':
584 platforms: !!python/tuple [bionic-amd64]
585 builds: !!python/tuple [std, dist, oot, oot-dist]
586 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
587 liburcu_versions: !!python/tuple [stable-0.13, master]
588 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
590 - '{job_prefix}lttng-ust_{version}_{buildtype}':
593 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
594 builds: !!python/tuple [std]
595 confs: !!python/tuple [std, agents]
596 liburcu_versions: !!python/tuple [stable-0.13, master]
599 - '{job_prefix}lttng-ust_{version}_{buildtype}':
602 platforms: !!python/tuple [sles12sp5-amd64]
603 builds: !!python/tuple [std]
604 confs: !!python/tuple [agents]
605 liburcu_versions: !!python/tuple [stable-0.13, master]
608 - '{job_prefix}lttng-ust_{version}_{buildtype}':
611 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
612 builds: !!python/tuple [std]
613 confs: !!python/tuple [std]
614 liburcu_versions: !!python/tuple [stable-0.13, master]
617 - 'lttng-ust_{version}_cppcheck':
619 - 'lttng-ust_{version}_scan-build':
623 - '{job_prefix}lttng-ust_{version}_{buildtype}':
626 platforms: !!python/tuple [bionic-amd64]
627 builds: !!python/tuple [std, dist, oot, oot-dist]
628 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
629 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13, master]
630 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
632 - '{job_prefix}lttng-ust_{version}_{buildtype}':
635 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
636 builds: !!python/tuple [std]
637 confs: !!python/tuple [std, agents]
638 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13, master]
641 - '{job_prefix}lttng-ust_{version}_{buildtype}':
644 platforms: !!python/tuple [sles12sp5-amd64]
645 builds: !!python/tuple [std]
646 confs: !!python/tuple [agents]
647 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13]
650 - '{job_prefix}lttng-ust_{version}_{buildtype}':
653 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
654 builds: !!python/tuple [std]
655 confs: !!python/tuple [std]
656 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13]
659 - 'lttng-ust_{version}_cppcheck':
661 - 'lttng-ust_{version}_scan-build':
666 name: lttng-ust-dev-upstream
667 job_prefix: dev_upstream_
669 github_name: lttng-ust
670 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
673 - '{job_prefix}lttng-ust_{version}_{buildtype}':
676 platforms: !!python/tuple [bionic-amd64]
677 builds: !!python/tuple [std, dist, oot, oot-dist]
678 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
679 liburcu_versions: !!python/tuple [stable-0.11]
680 filter: '(build=="std") || (conf=="std" || conf=="agents")'
682 - '{job_prefix}lttng-ust_{version}_{buildtype}':
685 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
686 builds: !!python/tuple [std]
687 confs: !!python/tuple [agents]
688 liburcu_versions: !!python/tuple [stable-0.11]
691 - '{job_prefix}lttng-ust_{version}_{buildtype}':
694 platforms: !!python/tuple [sles12sp5-amd64]
695 builds: !!python/tuple [std]
696 confs: !!python/tuple [agents]
697 liburcu_versions: !!python/tuple [stable-0.11]
700 - '{job_prefix}lttng-ust_{version}_{buildtype}':
703 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
704 builds: !!python/tuple [std]
705 confs: !!python/tuple [std]
706 liburcu_versions: !!python/tuple [stable-0.11]
711 - '{job_prefix}lttng-ust_{version}_{buildtype}':
714 platforms: !!python/tuple [bionic-amd64]
715 builds: !!python/tuple [std, dist, oot, oot-dist]
716 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
717 liburcu_versions: !!python/tuple [stable-0.9]
718 filter: '(build=="std") || (conf=="std" || conf=="agents")'
720 - '{job_prefix}lttng-ust_{version}_{buildtype}':
723 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
724 builds: !!python/tuple [std]
725 confs: !!python/tuple [agents]
726 liburcu_versions: !!python/tuple [stable-0.9]
729 - '{job_prefix}lttng-ust_{version}_{buildtype}':
732 platforms: !!python/tuple [sles12sp5-amd64]
733 builds: !!python/tuple [std]
734 confs: !!python/tuple [agents]
735 liburcu_versions: !!python/tuple [stable-0.9]
738 - '{job_prefix}lttng-ust_{version}_{buildtype}':
741 platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
742 builds: !!python/tuple [std]
743 confs: !!python/tuple [std]
744 liburcu_versions: !!python/tuple [stable-0.9]
750 name: gerrit-lttng-ust
753 github_name: lttng-ust
755 - 'dev_gerrit_lttng-ust_{buildtype}':
757 platforms: !!python/tuple [bionic-amd64]
758 builds: !!python/tuple [std, oot, dist, oot-dist]
759 confs: !!python/tuple [std, agents]
760 liburcu_versions: !!python/tuple [stable-0.13]
763 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
765 platforms: !!python/tuple [bionic-amd64]
766 builds: !!python/tuple [std, oot, dist, oot-dist]
767 confs: !!python/tuple [std, agents]
770 liburcu_version: stable-0.13
771 babeltrace_version: stable-2.0
772 - 'dev_gerrit_lttng-ust_{buildtype}':
774 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
775 builds: !!python/tuple [std]
776 confs: !!python/tuple [agents]
777 liburcu_versions: !!python/tuple [stable-0.13]
780 - 'dev_gerrit_lttng-ust_{buildtype}':
781 buildtype: freebsdbuild
782 platforms: !!python/tuple [freebsd-amd64]
783 builds: !!python/tuple [std]
784 confs: !!python/tuple [agents]
785 liburcu_versions: !!python/tuple [stable-0.13]
790 name: lttng-ust-views