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
45 url: https://github.com/{github_user}/{github_name}
49 - lttng-ust_matrix_axes_defaults: <tng-ust_matrix_axes_defaults
50 name: 'lttng-ust_matrix_axes_defaults'
52 node: 'master' # Applies only to matrix flyweight task
53 execution-strategy: <tng-ust_matrix_execution-strategy_defaults
54 combination-filter: '{filter}'
59 - axis: <tng-ust_matrix_axis_arch
63 - axis: <tng-ust_matrix_axis_conf
67 - axis: <tng-ust_matrix_axis_build
70 values: '{obj:builds}'
71 - axis: <tng-ust_matrix_axis_liburcu_version
74 values: '{obj:liburcu_versions}'
76 - lttng-ust_matrix_axes_gerrit_lttng-tools: <tng-ust_matrix_axes_gerrit_lttng-tools
77 name: 'lttng-ust_matrix_axes_gerrit_lttng-tools'
79 node: 'master' # Applies only to matrix flyweight task
80 execution-strategy: *lttng-ust_matrix_execution-strategy_defaults
82 - axis: *lttng-ust_matrix_axis_arch
83 - axis: *lttng-ust_matrix_axis_conf
84 - axis: *lttng-ust_matrix_axis_build
86 - lttng-ust_steps_copyartifact_defaults:
87 name: 'lttng-ust_steps_copyartifact_defaults'
89 - copyartifact: <tng-ust_steps_copyartifact_defaults
91 which-build: last-successful
95 do-not-fingerprint: true
97 - lttng-ust_builders_defaults: <tng-ust_builders_defaults
98 name: 'lttng-ust_builders_defaults'
100 # Generate a properties file to add additionnal env
104 # Select the liburcu conf based on the current conf
106 debug-rcu|tls_fallback)
113 echo "liburcu_conf=$liburcu_conf" > env.properties
115 # Inject the additionnal env early to use them in the copyartifact step
117 properties-file: env.properties
120 <<: *lttng-ust_steps_copyartifact_defaults
121 project: '{job_prefix}liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{liburcu_conf}},build=std'
126 - scripts/common/print.sh
127 - scripts/lttng-ust/build.sh
129 - lttng-ust_builders_gerrit_lttng-tools: <tng-ust_builders_gerrit_lttng-tools
130 name: 'lttng-ust_builders_gerrit_lttng-tools'
133 # Generate a properties file to add additionnal env
137 # Select the liburcu conf based on the current conf
139 debug-rcu|tls_fallback)
146 echo "liburcu_conf=$liburcu_conf" >> env.properties
147 # Select the liburcu version based on the gerrit branch
148 case "$GERRIT_BRANCH" in
150 liburcu_version=master
153 liburcu_version={liburcu_version}
156 echo "liburcu_version=$liburcu_version" >> env.properties
158 # Inject the additionnal env early to use them in the copyartifact step
160 properties-file: env.properties
163 <<: *lttng-ust_steps_copyartifact_defaults
164 project: 'liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{liburcu_conf}},build=std'
167 <<: *lttng-ust_steps_copyartifact_defaults
168 project: 'babeltrace_{babeltrace_version}_{buildtype}/arch=${{arch}},conf=std,build=std'
173 git clone -b "$GERRIT_BRANCH" https://review.lttng.org/lttng-tools src/lttng-tools
177 - scripts/common/print.sh
178 - scripts/lttng-ust/build.sh
182 - scripts/lttng-tools/gerrit-install-deps.sh
186 - scripts/common/print.sh
187 - scripts/lttng-tools/build.sh
189 - lttng-ust_publishers_defaults: <tng-ust_publishers_defaults
190 name: 'lttng-ust_publishers_defaults'
192 - tap: <tng-ust_publisher_tap_defaults
193 results: 'tap/**/*.log'
194 fail-if-no-results: true
195 failed-tests-mark-build-as-failure: true
196 todo-is-failure: false
197 - raw: <tng-ust_publisher_warnings-ng_defaults
199 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
201 <io.jenkins.plugins.analysis.warnings.Gcc4>
204 <jenkins plugin="plugin-util-api"/>
207 <skipSymbolicLinks>false</skipSymbolicLinks>
208 </io.jenkins.plugins.analysis.warnings.Gcc4>
209 <io.jenkins.plugins.analysis.warnings.Clang>
212 <jenkins plugin="plugin-util-api"/>
215 <skipSymbolicLinks>false</skipSymbolicLinks>
216 </io.jenkins.plugins.analysis.warnings.Clang>
218 <sourceCodeEncoding/>
221 <ignoreQualityGate>false</ignoreQualityGate>
222 <ignoreFailedBuilds>true</ignoreFailedBuilds>
223 <failOnError>false</failOnError>
225 <unhealthy>0</unhealthy>
226 <minimumSeverity plugin="analysis-model-api">
230 <isEnabledForFailure>true</isEnabledForFailure>
231 <isAggregatingResults>true</isAggregatingResults>
232 <isBlameDisabled>false</isBlameDisabled>
233 <skipPublishingChecks>true</skipPublishingChecks>
234 <publishAllIssues>false</publishAllIssues>
236 <io.jenkins.plugins.analysis.core.util.QualityGate>
237 <threshold>1</threshold>
239 <status>WARNING</status>
240 </io.jenkins.plugins.analysis.core.util.QualityGate>
242 <trendChartType>AGGREGATION_TOOLS</trendChartType>
244 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
245 - archive: <tng-ust_publisher_archive_defaults
246 artifacts: 'build/**,tap/**'
248 - workspace-cleanup: <tng-ust_publisher_workspace-cleanup_defaults
251 - email-ext: <tng-ust_publisher_email-ext_defaults
252 recipients: '{obj:email_to}'
253 reply-to: ci-notification@lists.lttng.org
262 second-failure: false
267 fixed-unhealthy: true
268 still-unstable: false
270 matrix-trigger: only-parent
274 - lttng-ust_publishers_gerrit: <tng-ust_publishers_gerrit
275 name: 'lttng-ust_publishers_gerrit'
277 - tap: *lttng-ust_publisher_tap_defaults
278 # Fail job on any compiler warnings
281 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
283 <io.jenkins.plugins.analysis.warnings.Gcc4>
286 <jenkins plugin="plugin-util-api"/>
289 <skipSymbolicLinks>false</skipSymbolicLinks>
290 </io.jenkins.plugins.analysis.warnings.Gcc4>
291 <io.jenkins.plugins.analysis.warnings.Clang>
294 <jenkins plugin="plugin-util-api"/>
297 <skipSymbolicLinks>false</skipSymbolicLinks>
298 </io.jenkins.plugins.analysis.warnings.Clang>
300 <sourceCodeEncoding/>
303 <ignoreQualityGate>false</ignoreQualityGate>
304 <ignoreFailedBuilds>true</ignoreFailedBuilds>
305 <failOnError>false</failOnError>
307 <unhealthy>0</unhealthy>
308 <minimumSeverity plugin="analysis-model-api">
312 <isEnabledForFailure>true</isEnabledForFailure>
313 <isAggregatingResults>true</isAggregatingResults>
314 <isBlameDisabled>false</isBlameDisabled>
315 <skipPublishingChecks>true</skipPublishingChecks>
316 <publishAllIssues>false</publishAllIssues>
318 <io.jenkins.plugins.analysis.core.util.QualityGate>
319 <threshold>1</threshold>
321 <status>FAILED</status>
322 </io.jenkins.plugins.analysis.core.util.QualityGate>
324 <trendChartType>AGGREGATION_TOOLS</trendChartType>
326 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
327 - archive: *lttng-ust_publisher_archive_defaults
328 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
333 name: '{job_prefix}lttng-ust_{version}_{buildtype}'
336 <<: *lttng-ust_matrix_axes_defaults
337 <<: *lttng-ust_builders_defaults
338 <<: *lttng-ust_publishers_defaults
342 name: dev_gerrit_lttng-ust_{buildtype}
348 url: https://review.lttng.org/lttng-ust
349 refspec: 'refs/changes/*:refs/changes/*'
352 basedir: src/lttng-ust
358 - comment-added-event:
359 approval-category: 'CI-Build'
362 - project-compare-type: 'PLAIN'
363 project-pattern: 'lttng-ust'
365 - branch-compare-type: 'ANT'
368 <<: *lttng-ust_matrix_axes_defaults
369 <<: *lttng-ust_builders_defaults
370 <<: *lttng-ust_publishers_gerrit
374 properties-content: |
375 PROJECT_NAME=lttng-ust
381 - 'gerrit-{buildtype}'
385 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
391 url: https://review.lttng.org/lttng-ust
392 refspec: 'refs/changes/*:refs/changes/*'
395 basedir: src/lttng-ust
401 - comment-added-event:
402 approval-category: 'CI-Build'
405 - project-compare-type: 'PLAIN'
406 project-pattern: 'lttng-ust'
408 - branch-compare-type: 'ANT'
411 <<: *lttng-ust_matrix_axes_gerrit_lttng-tools
412 <<: *lttng-ust_builders_gerrit_lttng-tools
413 <<: *lttng-ust_publishers_gerrit
417 properties-content: |
418 PROJECT_NAME=lttng-ust
424 - 'gerrit-{buildtype}'
428 name: lttng-ust_{version}_cppcheck
437 rm -f cppcheck-result.xml
438 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
442 artifacts: 'cppcheck-result.xml'
445 pattern: 'cppcheck-result.xml'
447 recipients: 'ci-notification@lists.lttng.org'
448 notify-every-unstable-build: true
449 send-to-individuals: false
450 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
454 name: lttng-ust_{version}_scan-build
464 <<: *lttng-ust_steps_copyartifact_defaults
465 project: liburcu_master_build/arch=amd64,conf=std,build=std
467 !include-raw-escape: scripts/common/scan-build.sh
472 dir: 'scan-build-archive/'
474 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
478 name: lttng-ust_{version}_coverity
487 - ansicolor: *lttng-ust_wrapper_ansicolor_defaults
488 - timeout: *lttng-ust_wrapper_timeout_defaults
491 - credentials-binding:
492 - username-password-separated:
493 credential-id: lttng-ust_coverity_token
494 username: COVERITY_SCAN_PROJECT_NAME
495 password: COVERITY_SCAN_TOKEN
499 <<: *lttng-ust_steps_copyartifact_defaults
500 project: liburcu_master_build/arch=amd64,conf=std,build=std
502 !include-raw-escape: scripts/common/coverity.sh
506 artifacts: 'analysis-results.tgz,cov-int/**'
508 - workspace-cleanup: *lttng-ust_publisher_workspace-cleanup_defaults
515 regex: 'lttng-ust[-_].*'
523 github_name: lttng-ust
524 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
527 - '{job_prefix}lttng-ust_{version}_{buildtype}':
530 archs: !!python/tuple [amd64]
531 builds: !!python/tuple [std, dist, oot, oot-dist]
532 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
533 liburcu_versions: !!python/tuple [stable-0.13, master]
534 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
536 - '{job_prefix}lttng-ust_{version}_{buildtype}':
539 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
540 builds: !!python/tuple [std]
541 confs: !!python/tuple [std, agents]
542 liburcu_versions: !!python/tuple [stable-0.13, master]
545 - '{job_prefix}lttng-ust_{version}_{buildtype}':
548 archs: !!python/tuple [sles12sp5]
549 builds: !!python/tuple [std]
550 confs: !!python/tuple [agents]
551 liburcu_versions: !!python/tuple [stable-0.13, master]
554 - '{job_prefix}lttng-ust_{version}_{buildtype}':
557 archs: !!python/tuple [el8, el9]
558 builds: !!python/tuple [std]
559 confs: !!python/tuple [std]
560 liburcu_versions: !!python/tuple [stable-0.13, master]
563 - '{job_prefix}lttng-ust_{version}_{buildtype}':
564 buildtype: freebsdbuild
566 archs: !!python/tuple [freebsd]
567 builds: !!python/tuple [std]
568 confs: !!python/tuple [agents]
569 liburcu_versions: !!python/tuple [stable-0.13, master]
572 - 'lttng-ust_{version}_cppcheck':
574 - 'lttng-ust_{version}_scan-build':
576 - 'lttng-ust_{version}_coverity':
580 - '{job_prefix}lttng-ust_{version}_{buildtype}':
583 archs: !!python/tuple [amd64]
584 builds: !!python/tuple [std, dist, oot, oot-dist]
585 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
586 liburcu_versions: !!python/tuple [stable-0.13, master]
587 filter: '(build=="std") || ((liburcu_version=="stable-0.13" && (conf=="std" || conf=="agents")))'
589 - '{job_prefix}lttng-ust_{version}_{buildtype}':
592 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
593 builds: !!python/tuple [std]
594 confs: !!python/tuple [std, agents]
595 liburcu_versions: !!python/tuple [stable-0.13, master]
598 - '{job_prefix}lttng-ust_{version}_{buildtype}':
601 archs: !!python/tuple [sles12sp5]
602 builds: !!python/tuple [std]
603 confs: !!python/tuple [agents]
604 liburcu_versions: !!python/tuple [stable-0.13, master]
607 - '{job_prefix}lttng-ust_{version}_{buildtype}':
610 archs: !!python/tuple [el8, el9]
611 builds: !!python/tuple [std]
612 confs: !!python/tuple [std]
613 liburcu_versions: !!python/tuple [stable-0.13, master]
616 - 'lttng-ust_{version}_cppcheck':
618 - 'lttng-ust_{version}_scan-build':
622 - '{job_prefix}lttng-ust_{version}_{buildtype}':
625 archs: !!python/tuple [amd64]
626 builds: !!python/tuple [std, dist, oot, oot-dist]
627 confs: !!python/tuple [std, agents, debug-rcu, tls_fallback]
628 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13, master]
629 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
631 - '{job_prefix}lttng-ust_{version}_{buildtype}':
634 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
635 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, 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 archs: !!python/tuple [sles12sp5]
645 builds: !!python/tuple [std]
646 confs: !!python/tuple [agents]
647 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13, master]
650 - '{job_prefix}lttng-ust_{version}_{buildtype}':
653 archs: !!python/tuple [el8, el9]
654 builds: !!python/tuple [std]
655 confs: !!python/tuple [std]
656 liburcu_versions: !!python/tuple [stable-0.12, stable-0.13, master]
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 archs: !!python/tuple [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 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, 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 archs: !!python/tuple [sles12sp5]
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 archs: !!python/tuple [el8, el9]
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 archs: !!python/tuple [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 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, 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 archs: !!python/tuple [sles12sp5]
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 archs: !!python/tuple [el8, el9]
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 archs: !!python/tuple [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 archs: !!python/tuple [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 archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, 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 archs: !!python/tuple [freebsd]
783 builds: !!python/tuple [std]
784 confs: !!python/tuple [agents]
785 liburcu_versions: !!python/tuple [stable-0.13]
790 name: lttng-ust-views