Commit | Line | Data |
---|---|---|
ae855ba1 MJ |
1 | # {project}_{version}_{jobtype} |
2 | # librseq_stable-0.8_build | |
3 | # | |
4 | # jobtypes: | |
5 | # - build | |
6 | # - portbuild | |
7 | # - cppcheck | |
8 | # - coverity | |
9 | # - scan-build | |
10 | # - pylint | |
11 | ||
12 | - defaults: | |
13 | name: librseq | |
14 | description: | | |
15 | ||
16 | <p>Job is managed by Jenkins Job Builder.</p> | |
17 | ||
18 | project-type: freestyle | |
19 | ||
20 | wrappers: | |
5745cfaa MJ |
21 | - ansicolor: &librseq_wrapper_ansicolor_defaults |
22 | colormap: xterm | |
23 | - timeout: &librseq_wrapper_timeout_defaults | |
ae855ba1 MJ |
24 | timeout: 10 |
25 | fail: true | |
733146f2 | 26 | type: no-activity |
ae855ba1 | 27 | - timestamps |
5745cfaa | 28 | - workspace-cleanup |
ae855ba1 MJ |
29 | |
30 | scm: | |
31 | - git: | |
4d27af8f | 32 | url: https://github.com/{github_user}/{github_name}.git |
ae855ba1 MJ |
33 | browser: githubweb |
34 | browser-url: https://github.com/{github_user}/{github_name} | |
35 | branches: | |
36 | - origin/{version} | |
37 | basedir: src/librseq | |
38 | skip-tag: true | |
39 | ||
40 | triggers: | |
41 | - pollscm: | |
42 | cron: "@hourly" | |
43 | ||
44 | properties: | |
45 | - inject: | |
46 | properties-content: | | |
47 | PROJECT_NAME=librseq | |
48 | - build-discarder: | |
49 | num-to-keep: 2 | |
50 | - github: | |
51 | url: https://github.com/{github_user}/{github_name} | |
52 | ||
53 | ||
54 | ## Anchors | |
5745cfaa MJ |
55 | - librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults |
56 | name: 'librseq_matrix_axes_defaults' | |
ae855ba1 MJ |
57 | project-type: matrix |
58 | node: 'master' # Applies only to matrix flyweight task | |
9a07183c MJ |
59 | execution-strategy: |
60 | touchstone: | |
61 | expr: '{touchstone}' | |
62 | result: unstable | |
ae855ba1 | 63 | axes: |
5745cfaa | 64 | - axis: &librseq_matrix_axis_platform |
ae855ba1 | 65 | type: slave |
9a07183c MJ |
66 | name: platform |
67 | values: '{obj:platforms}' | |
5745cfaa | 68 | - axis: &librseq_matrix_axis_conf |
ae855ba1 MJ |
69 | type: user-defined |
70 | name: conf | |
9a07183c | 71 | values: '{obj:confs}' |
5745cfaa | 72 | - axis: &librseq_matrix_axis_build |
ae855ba1 MJ |
73 | type: user-defined |
74 | name: build | |
9a07183c | 75 | values: '{obj:builds}' |
ae855ba1 | 76 | |
5745cfaa MJ |
77 | - librseq_matrix_axes_cc: &librseq_matrix_axes_cc |
78 | name: 'librseq_matrix_axes_cc' | |
ae855ba1 MJ |
79 | project-type: matrix |
80 | node: 'master' # Applies only to matrix flyweight task | |
9a07183c MJ |
81 | execution-strategy: |
82 | touchstone: | |
83 | expr: '{touchstone}' | |
84 | result: unstable | |
ae855ba1 | 85 | axes: |
5745cfaa MJ |
86 | - axis: *librseq_matrix_axis_platform |
87 | - axis: *librseq_matrix_axis_conf | |
88 | - axis: *librseq_matrix_axis_build | |
89 | - axis: &librseq_matrix_axis_cc | |
ae855ba1 MJ |
90 | type: user-defined |
91 | name: cc | |
9a07183c | 92 | values: '{obj:ccs}' |
ae855ba1 | 93 | |
5745cfaa MJ |
94 | - librseq_builders_defaults: &librseq_builders_defaults |
95 | name: 'librseq_builders_defaults' | |
ae855ba1 MJ |
96 | builders: |
97 | - shell: | |
51c9c62d MJ |
98 | !include-raw-escape: |
99 | - scripts/common/print.sh | |
100 | - scripts/librseq/build.sh | |
ae855ba1 | 101 | |
5745cfaa MJ |
102 | - librseq_publishers_defaults: &librseq_publishers_defaults |
103 | name: 'librseq_publishers_defaults' | |
ae855ba1 | 104 | publishers: |
5745cfaa | 105 | - tap: &librseq_publisher_tap_defaults |
10c9bf80 MJ |
106 | results: 'tap/**/*.log' |
107 | fail-if-no-results: true | |
108 | failed-tests-mark-build-as-failure: true | |
109 | todo-is-failure: false | |
5745cfaa MJ |
110 | - raw: &librseq_publisher_warnings-ng_defaults |
111 | xml: | | |
112 | <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng"> | |
113 | <analysisTools> | |
114 | <io.jenkins.plugins.analysis.warnings.Gcc4> | |
115 | <id/> | |
116 | <name/> | |
117 | <jenkins plugin="plugin-util-api"/> | |
118 | <pattern/> | |
119 | <reportEncoding/> | |
120 | <skipSymbolicLinks>false</skipSymbolicLinks> | |
121 | </io.jenkins.plugins.analysis.warnings.Gcc4> | |
122 | <io.jenkins.plugins.analysis.warnings.Clang> | |
123 | <id/> | |
124 | <name/> | |
125 | <jenkins plugin="plugin-util-api"/> | |
126 | <pattern/> | |
127 | <reportEncoding/> | |
128 | <skipSymbolicLinks>false</skipSymbolicLinks> | |
129 | </io.jenkins.plugins.analysis.warnings.Clang> | |
130 | </analysisTools> | |
131 | <sourceCodeEncoding/> | |
132 | <sourceDirectory/> | |
133 | <sourceDirectories/> | |
134 | <ignoreQualityGate>false</ignoreQualityGate> | |
135 | <ignoreFailedBuilds>true</ignoreFailedBuilds> | |
136 | <failOnError>false</failOnError> | |
137 | <healthy>0</healthy> | |
138 | <unhealthy>0</unhealthy> | |
139 | <minimumSeverity plugin="analysis-model-api"> | |
140 | <name>LOW</name> | |
141 | </minimumSeverity> | |
142 | <filters/> | |
143 | <isEnabledForFailure>true</isEnabledForFailure> | |
144 | <isAggregatingResults>true</isAggregatingResults> | |
145 | <isBlameDisabled>false</isBlameDisabled> | |
146 | <skipPublishingChecks>true</skipPublishingChecks> | |
147 | <publishAllIssues>false</publishAllIssues> | |
148 | <qualityGates> | |
149 | <io.jenkins.plugins.analysis.core.util.QualityGate> | |
150 | <threshold>1</threshold> | |
151 | <type>TOTAL</type> | |
152 | <status>WARNING</status> | |
153 | </io.jenkins.plugins.analysis.core.util.QualityGate> | |
154 | </qualityGates> | |
155 | <trendChartType>AGGREGATION_TOOLS</trendChartType> | |
156 | <scm/> | |
157 | </io.jenkins.plugins.analysis.core.steps.IssuesRecorder> | |
158 | - archive: &librseq_publisher_archive_defaults | |
10c9bf80 | 159 | artifacts: 'build/**,tap/**' |
ae855ba1 | 160 | allow-empty: false |
5745cfaa MJ |
161 | - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults |
162 | clean-if: | |
163 | - failure: false | |
164 | - email-ext: &librseq_publisher_email-ext_defaults | |
ae855ba1 MJ |
165 | recipients: '{obj:email_to}' |
166 | reply-to: ci-notification@lists.lttng.org | |
167 | always: false | |
168 | unstable: false | |
169 | first-failure: true | |
170 | first-unstable: true | |
171 | not-built: false | |
172 | aborted: false | |
173 | regression: false | |
174 | failure: false | |
175 | second-failure: false | |
176 | improvement: false | |
177 | still-failing: false | |
178 | success: false | |
179 | fixed: false | |
180 | fixed-unhealthy: true | |
181 | still-unstable: false | |
182 | pre-build: false | |
183 | matrix-trigger: only-parent | |
184 | send-to: | |
185 | - recipients | |
186 | ||
5745cfaa MJ |
187 | - librseq_publishers_gerrit: &librseq_publishers_gerrit |
188 | name: 'librseq_publishers_gerrit' | |
10c9bf80 | 189 | publishers: |
5745cfaa MJ |
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 | |
10c9bf80 MJ |
194 | |
195 | ||
ae855ba1 MJ |
196 | ## Templates |
197 | - job-template: | |
198 | name: librseq_{version}_{buildtype} | |
199 | defaults: librseq | |
200 | ||
5745cfaa MJ |
201 | <<: *librseq_matrix_axes_defaults |
202 | <<: *librseq_builders_defaults | |
203 | <<: *librseq_publishers_defaults | |
ae855ba1 MJ |
204 | |
205 | - job-template: | |
206 | name: librseq_{version}_{cctype} | |
207 | defaults: librseq | |
208 | ||
5745cfaa MJ |
209 | <<: *librseq_matrix_axes_cc |
210 | <<: *librseq_builders_defaults | |
211 | <<: *librseq_publishers_defaults | |
ae855ba1 MJ |
212 | |
213 | - job-template: | |
214 | name: librseq_{version}_cppcheck | |
215 | defaults: librseq | |
216 | ||
217 | triggers: | |
218 | - pollscm: | |
219 | cron: "@daily" | |
220 | ||
221 | builders: | |
222 | - shell: | | |
223 | rm -f cppcheck-result.xml | |
224 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml | |
225 | ||
226 | publishers: | |
227 | - archive: | |
228 | artifacts: 'cppcheck-result.xml' | |
229 | allow-empty: false | |
230 | - cppcheck: | |
231 | pattern: 'cppcheck-result.xml' | |
5745cfaa MJ |
232 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
233 | - email-ext: *librseq_publisher_email-ext_defaults | |
ae855ba1 | 234 | |
10c9bf80 MJ |
235 | - job-template: |
236 | name: dev_gerrit_librseq_{buildtype} | |
237 | defaults: librseq | |
238 | concurrent: true | |
239 | ||
240 | scm: | |
241 | - git: | |
242 | url: https://review.lttng.org/librseq | |
243 | refspec: 'refs/changes/*:refs/changes/*' | |
244 | branches: | |
245 | - '$GERRIT_REFSPEC' | |
246 | basedir: src/librseq | |
247 | skip-tag: true | |
248 | ||
249 | triggers: | |
250 | - gerrit: | |
251 | trigger-on: | |
252 | - comment-added-event: | |
253 | approval-category: 'CI-Build' | |
254 | approval-value: 1 | |
255 | projects: | |
256 | - project-compare-type: 'PLAIN' | |
257 | project-pattern: 'librseq' | |
258 | branches: | |
259 | - branch-compare-type: 'ANT' | |
260 | branch-pattern: '**' | |
261 | ||
5745cfaa MJ |
262 | <<: *librseq_matrix_axes_defaults |
263 | <<: *librseq_builders_defaults | |
264 | <<: *librseq_publishers_gerrit | |
10c9bf80 MJ |
265 | |
266 | properties: | |
267 | - inject: | |
268 | properties-content: | | |
269 | PROJECT_NAME=librseq | |
270 | - build-discarder: | |
271 | days-to-keep: 1 | |
272 | - throttle: | |
273 | option: 'category' | |
274 | categories: | |
275 | - 'gerrit-{buildtype}' | |
276 | ||
ae855ba1 MJ |
277 | - job-template: |
278 | name: librseq_{version}_scan-build | |
279 | defaults: librseq | |
280 | node: 'amd64' | |
281 | ||
282 | triggers: | |
283 | - pollscm: | |
284 | cron: "@daily" | |
285 | ||
286 | builders: | |
287 | - shell: | |
288 | !include-raw-escape: scripts/common/scan-build.sh | |
289 | ||
290 | publishers: | |
291 | - html-publisher: | |
292 | name: 'HTML Report' | |
293 | dir: 'scan-build-archive/' | |
294 | files: 'index.html' | |
5745cfaa | 295 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
296 | |
297 | - job-template: | |
298 | name: librseq_{version}_coverity | |
299 | defaults: librseq | |
300 | node: 'amd64' | |
301 | ||
302 | triggers: | |
303 | - pollscm: | |
304 | cron: "@daily" | |
305 | ||
306 | wrappers: | |
5745cfaa MJ |
307 | - ansicolor: *librseq_wrapper_ansicolor_defaults |
308 | - timeout: *librseq_wrapper_timeout_defaults | |
ae855ba1 | 309 | - timestamps |
5745cfaa | 310 | - workspace-cleanup |
ae855ba1 MJ |
311 | - credentials-binding: |
312 | - username-password-separated: | |
313 | credential-id: librseq_coverity_token | |
314 | username: COVERITY_SCAN_PROJECT_NAME | |
315 | password: COVERITY_SCAN_TOKEN | |
316 | ||
317 | builders: | |
318 | - shell: | |
319 | !include-raw-escape: scripts/common/coverity.sh | |
320 | ||
321 | publishers: | |
322 | - workspace-cleanup | |
323 | - archive: | |
324 | artifacts: 'analysis-results.tgz,cov-int/**' | |
325 | allow-empty: false | |
5745cfaa | 326 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
327 | |
328 | - view-template: | |
72600ad8 | 329 | name: 'Librseq' |
ae855ba1 MJ |
330 | description: 'Restartable sequences' |
331 | view-type: list | |
b4c748a8 | 332 | regex: 'librseq_.*' |
ae855ba1 MJ |
333 | |
334 | ||
335 | ## Project | |
336 | - project: | |
337 | name: librseq | |
338 | github_user: compudj | |
339 | github_name: librseq | |
340 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' | |
341 | version: | |
342 | - master | |
343 | jobs: | |
344 | - 'librseq_{version}_{buildtype}': | |
5745cfaa | 345 | buildtype: linuxbuild |
9a07183c MJ |
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")' | |
ae855ba1 MJ |
350 | - 'librseq_{version}_{cctype}': |
351 | cctype: gccbuild | |
9a07183c MJ |
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")' | |
ae855ba1 MJ |
357 | - 'librseq_{version}_{cctype}': |
358 | cctype: clangbuild | |
9a07183c MJ |
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")' | |
ae855ba1 MJ |
364 | - 'librseq_{version}_{buildtype}': |
365 | buildtype: portbuild | |
9a07183c MJ |
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")' | |
ae855ba1 | 370 | |
10c9bf80 MJ |
371 | - project: |
372 | name: gerrit-librseq | |
373 | github_user: compudj | |
374 | github_name: librseq | |
375 | jobs: | |
376 | - 'dev_gerrit_librseq_{buildtype}': | |
5745cfaa | 377 | buildtype: linuxbuild |
9a07183c MJ |
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")' | |
10c9bf80 | 382 | |
ae855ba1 MJ |
383 | - project: |
384 | name: librseq-views | |
385 | views: | |
72600ad8 | 386 | - Librseq |