1 # {project}_{version}_{jobtype}
2 # librseq_stable-0.8_build
16 <p>Job is managed by Jenkins Job Builder.</p>
18 project-type: freestyle
21 - ansicolor: &librseq_wrapper_ansicolor_defaults
23 - timeout: &librseq_wrapper_timeout_defaults
32 url: https://github.com/{github_user}/{github_name}.git
34 browser-url: https://github.com/{github_user}/{github_name}
50 artifact-num-to-keep: 2
52 url: https://github.com/{github_user}/{github_name}
56 - librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults
57 name: 'librseq_matrix_axes_defaults'
59 node: 'master' # Applies only to matrix flyweight task
65 - axis: &librseq_matrix_axis_platform
68 values: '{obj:platforms}'
69 - axis: &librseq_matrix_axis_conf
73 - axis: &librseq_matrix_axis_build
76 values: '{obj:builds}'
78 - librseq_matrix_axes_cc: &librseq_matrix_axes_cc
79 name: 'librseq_matrix_axes_cc'
81 node: 'master' # Applies only to matrix flyweight task
87 - axis: *librseq_matrix_axis_platform
88 - axis: *librseq_matrix_axis_conf
89 - axis: *librseq_matrix_axis_build
90 - axis: &librseq_matrix_axis_cc
95 - librseq_builders_defaults: &librseq_builders_defaults
96 name: 'librseq_builders_defaults'
100 - scripts/common/print.sh
101 - scripts/librseq/build.sh
103 - librseq_publishers_defaults: &librseq_publishers_defaults
104 name: 'librseq_publishers_defaults'
106 - tap: &librseq_publisher_tap_defaults
107 results: 'tap/**/*.log'
108 fail-if-no-results: true
109 failed-tests-mark-build-as-failure: true
110 todo-is-failure: false
111 - raw: &librseq_publisher_warnings-ng_defaults
113 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
115 <io.jenkins.plugins.analysis.warnings.Gcc4>
118 <jenkins plugin="plugin-util-api"/>
121 <skipSymbolicLinks>false</skipSymbolicLinks>
122 </io.jenkins.plugins.analysis.warnings.Gcc4>
123 <io.jenkins.plugins.analysis.warnings.Clang>
126 <jenkins plugin="plugin-util-api"/>
129 <skipSymbolicLinks>false</skipSymbolicLinks>
130 </io.jenkins.plugins.analysis.warnings.Clang>
132 <sourceCodeEncoding/>
135 <ignoreQualityGate>false</ignoreQualityGate>
136 <ignoreFailedBuilds>true</ignoreFailedBuilds>
137 <failOnError>false</failOnError>
139 <unhealthy>0</unhealthy>
140 <minimumSeverity plugin="analysis-model-api">
144 <isEnabledForFailure>true</isEnabledForFailure>
145 <isAggregatingResults>true</isAggregatingResults>
146 <isBlameDisabled>false</isBlameDisabled>
147 <skipPublishingChecks>true</skipPublishingChecks>
148 <publishAllIssues>false</publishAllIssues>
150 <io.jenkins.plugins.analysis.core.util.QualityGate>
151 <threshold>1</threshold>
153 <status>WARNING</status>
154 </io.jenkins.plugins.analysis.core.util.QualityGate>
156 <trendChartType>AGGREGATION_TOOLS</trendChartType>
158 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
159 - archive: &librseq_publisher_archive_defaults
160 artifacts: 'build/**,tap/**'
162 - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults
165 - email-ext: &librseq_publisher_email-ext_defaults
166 recipients: '{obj:email_to}'
167 reply-to: ci-notification@lists.lttng.org
176 second-failure: false
181 fixed-unhealthy: true
182 still-unstable: false
184 matrix-trigger: only-parent
188 - librseq_publishers_gerrit: &librseq_publishers_gerrit
189 name: 'librseq_publishers_gerrit'
191 - tap: *librseq_publisher_tap_defaults
192 - raw: *librseq_publisher_warnings-ng_defaults
193 - archive: *librseq_publisher_archive_defaults
194 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
199 name: librseq_{version}_{buildtype}
202 <<: *librseq_matrix_axes_defaults
203 <<: *librseq_builders_defaults
204 <<: *librseq_publishers_defaults
207 name: librseq_{version}_{cctype}
210 <<: *librseq_matrix_axes_cc
211 <<: *librseq_builders_defaults
212 <<: *librseq_publishers_defaults
215 name: librseq_{version}_cppcheck
224 rm -f cppcheck-result.xml
225 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml
229 artifacts: 'cppcheck-result.xml'
232 pattern: 'cppcheck-result.xml'
233 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
234 - email-ext: *librseq_publisher_email-ext_defaults
237 name: dev_gerrit_librseq_{buildtype}
243 url: https://review.lttng.org/librseq
244 refspec: 'refs/changes/*:refs/changes/*'
253 - comment-added-event:
254 approval-category: 'CI-Build'
257 - project-compare-type: 'PLAIN'
258 project-pattern: 'librseq'
260 - branch-compare-type: 'ANT'
263 <<: *librseq_matrix_axes_defaults
264 <<: *librseq_builders_defaults
265 <<: *librseq_publishers_gerrit
269 properties-content: |
276 - 'gerrit-{buildtype}'
279 name: librseq_{version}_scan-build
289 !include-raw-escape: scripts/common/scan-build.sh
294 dir: 'scan-build-archive/'
296 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
299 name: librseq_{version}_coverity
308 - ansicolor: *librseq_wrapper_ansicolor_defaults
309 - timeout: *librseq_wrapper_timeout_defaults
312 - credentials-binding:
313 - username-password-separated:
314 credential-id: librseq_coverity_token
315 username: COVERITY_SCAN_PROJECT_NAME
316 password: COVERITY_SCAN_TOKEN
320 !include-raw-escape: scripts/common/coverity.sh
325 artifacts: 'analysis-results.tgz,cov-int/**'
327 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
331 description: 'Restartable sequences'
341 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
345 - 'librseq_{version}_{buildtype}':
346 buildtype: linuxbuild
347 platforms: !!python/tuple [jammy-amd64]
348 builds: !!python/tuple [std, oot, dist, oot-dist]
349 confs: !!python/tuple [std, static]
350 touchstone: '(build == "std") && (conf == "std")'
351 - 'librseq_{version}_{cctype}':
353 platforms: !!python/tuple [jammy-amd64]
354 builds: !!python/tuple [std]
355 confs: !!python/tuple [std, static]
356 ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12]
357 touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")'
358 - 'librseq_{version}_{cctype}':
360 platforms: !!python/tuple [jammy-amd64]
361 builds: !!python/tuple [std]
362 confs: !!python/tuple [std, static]
363 ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14]
364 touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")'
365 - 'librseq_{version}_{buildtype}':
367 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
368 builds: !!python/tuple [std]
369 confs: !!python/tuple [std, static]
370 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
377 - 'dev_gerrit_librseq_{buildtype}':
378 buildtype: linuxbuild
379 platforms: !!python/tuple [jammy-amd64]
380 builds: !!python/tuple [std, oot, dist, oot-dist]
381 confs: !!python/tuple [std, static]
382 touchstone: '(build == "std") && (conf == "std")'