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}
51 url: https://github.com/{github_user}/{github_name}
55 - librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults
56 name: 'librseq_matrix_axes_defaults'
58 node: 'master' # Applies only to matrix flyweight task
64 - axis: &librseq_matrix_axis_platform
67 values: '{obj:platforms}'
68 - axis: &librseq_matrix_axis_conf
72 - axis: &librseq_matrix_axis_build
75 values: '{obj:builds}'
77 - librseq_matrix_axes_cc: &librseq_matrix_axes_cc
78 name: 'librseq_matrix_axes_cc'
80 node: 'master' # Applies only to matrix flyweight task
86 - axis: *librseq_matrix_axis_platform
87 - axis: *librseq_matrix_axis_conf
88 - axis: *librseq_matrix_axis_build
89 - axis: &librseq_matrix_axis_cc
94 - librseq_builders_defaults: &librseq_builders_defaults
95 name: 'librseq_builders_defaults'
99 - scripts/common/print.sh
100 - scripts/librseq/build.sh
102 - librseq_publishers_defaults: &librseq_publishers_defaults
103 name: 'librseq_publishers_defaults'
105 - tap: &librseq_publisher_tap_defaults
106 results: 'tap/**/*.log'
107 fail-if-no-results: true
108 failed-tests-mark-build-as-failure: true
109 todo-is-failure: false
110 - raw: &librseq_publisher_warnings-ng_defaults
112 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
114 <io.jenkins.plugins.analysis.warnings.Gcc4>
117 <jenkins plugin="plugin-util-api"/>
120 <skipSymbolicLinks>false</skipSymbolicLinks>
121 </io.jenkins.plugins.analysis.warnings.Gcc4>
122 <io.jenkins.plugins.analysis.warnings.Clang>
125 <jenkins plugin="plugin-util-api"/>
128 <skipSymbolicLinks>false</skipSymbolicLinks>
129 </io.jenkins.plugins.analysis.warnings.Clang>
131 <sourceCodeEncoding/>
134 <ignoreQualityGate>false</ignoreQualityGate>
135 <ignoreFailedBuilds>true</ignoreFailedBuilds>
136 <failOnError>false</failOnError>
138 <unhealthy>0</unhealthy>
139 <minimumSeverity plugin="analysis-model-api">
143 <isEnabledForFailure>true</isEnabledForFailure>
144 <isAggregatingResults>true</isAggregatingResults>
145 <isBlameDisabled>false</isBlameDisabled>
146 <skipPublishingChecks>true</skipPublishingChecks>
147 <publishAllIssues>false</publishAllIssues>
149 <io.jenkins.plugins.analysis.core.util.QualityGate>
150 <threshold>1</threshold>
152 <status>WARNING</status>
153 </io.jenkins.plugins.analysis.core.util.QualityGate>
155 <trendChartType>AGGREGATION_TOOLS</trendChartType>
157 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
158 - archive: &librseq_publisher_archive_defaults
159 artifacts: 'build/**,tap/**'
161 - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults
164 - email-ext: &librseq_publisher_email-ext_defaults
165 recipients: '{obj:email_to}'
166 reply-to: ci-notification@lists.lttng.org
175 second-failure: false
180 fixed-unhealthy: true
181 still-unstable: false
183 matrix-trigger: only-parent
187 - librseq_publishers_gerrit: &librseq_publishers_gerrit
188 name: 'librseq_publishers_gerrit'
190 - tap: *librseq_publisher_tap_defaults
191 - raw: *librseq_publisher_warnings-ng_defaults
192 - archive: *librseq_publisher_archive_defaults
193 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
198 name: librseq_{version}_{buildtype}
201 <<: *librseq_matrix_axes_defaults
202 <<: *librseq_builders_defaults
203 <<: *librseq_publishers_defaults
206 name: librseq_{version}_{cctype}
209 <<: *librseq_matrix_axes_cc
210 <<: *librseq_builders_defaults
211 <<: *librseq_publishers_defaults
214 name: librseq_{version}_cppcheck
223 rm -f cppcheck-result.xml
224 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml
228 artifacts: 'cppcheck-result.xml'
231 pattern: 'cppcheck-result.xml'
232 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
233 - email-ext: *librseq_publisher_email-ext_defaults
236 name: dev_gerrit_librseq_{buildtype}
242 url: https://review.lttng.org/librseq
243 refspec: 'refs/changes/*:refs/changes/*'
252 - comment-added-event:
253 approval-category: 'CI-Build'
256 - project-compare-type: 'PLAIN'
257 project-pattern: 'librseq'
259 - branch-compare-type: 'ANT'
262 <<: *librseq_matrix_axes_defaults
263 <<: *librseq_builders_defaults
264 <<: *librseq_publishers_gerrit
268 properties-content: |
275 - 'gerrit-{buildtype}'
278 name: librseq_{version}_scan-build
288 !include-raw-escape: scripts/common/scan-build.sh
293 dir: 'scan-build-archive/'
295 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
298 name: librseq_{version}_coverity
307 - ansicolor: *librseq_wrapper_ansicolor_defaults
308 - timeout: *librseq_wrapper_timeout_defaults
311 - credentials-binding:
312 - username-password-separated:
313 credential-id: librseq_coverity_token
314 username: COVERITY_SCAN_PROJECT_NAME
315 password: COVERITY_SCAN_TOKEN
319 !include-raw-escape: scripts/common/coverity.sh
324 artifacts: 'analysis-results.tgz,cov-int/**'
326 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
330 description: 'Restartable sequences'
340 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
344 - 'librseq_{version}_{buildtype}':
345 buildtype: linuxbuild
346 platforms: !!python/tuple [jammy-amd64]
347 builds: !!python/tuple [std, oot, dist, oot-dist]
348 confs: !!python/tuple [std, static]
349 touchstone: '(build == "std") && (conf == "std")'
350 - 'librseq_{version}_{cctype}':
352 platforms: !!python/tuple [jammy-amd64]
353 builds: !!python/tuple [std]
354 confs: !!python/tuple [std, static]
355 ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12]
356 touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")'
357 - 'librseq_{version}_{cctype}':
359 platforms: !!python/tuple [jammy-amd64]
360 builds: !!python/tuple [std]
361 confs: !!python/tuple [std, static]
362 ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14]
363 touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")'
364 - 'librseq_{version}_{buildtype}':
366 platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
367 builds: !!python/tuple [std]
368 confs: !!python/tuple [std, static]
369 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
376 - 'dev_gerrit_librseq_{buildtype}':
377 buildtype: linuxbuild
378 platforms: !!python/tuple [jammy-amd64]
379 builds: !!python/tuple [std, oot, dist, oot-dist]
380 confs: !!python/tuple [std, static]
381 touchstone: '(build == "std") && (conf == "std")'