Commit | Line | Data |
---|---|---|
ae855ba1 MJ |
1 | # {project}_{version}_{jobtype} |
2 | # librseq_stable-0.8_build | |
3 | # | |
4 | # jobtypes: | |
5 | # - build | |
6 | # - portbuild | |
ae855ba1 MJ |
7 | # - coverity |
8 | # - scan-build | |
9 | # - pylint | |
10 | ||
11 | - defaults: | |
12 | name: librseq | |
13 | description: | | |
14 | ||
15 | <p>Job is managed by Jenkins Job Builder.</p> | |
16 | ||
17 | project-type: freestyle | |
18 | ||
19 | wrappers: | |
5745cfaa MJ |
20 | - ansicolor: &librseq_wrapper_ansicolor_defaults |
21 | colormap: xterm | |
22 | - timeout: &librseq_wrapper_timeout_defaults | |
ae855ba1 MJ |
23 | timeout: 10 |
24 | fail: true | |
733146f2 | 25 | type: no-activity |
ae855ba1 | 26 | - timestamps |
5745cfaa | 27 | - workspace-cleanup |
ae855ba1 MJ |
28 | |
29 | scm: | |
30 | - git: | |
4d27af8f | 31 | url: https://github.com/{github_user}/{github_name}.git |
ae855ba1 MJ |
32 | browser: githubweb |
33 | browser-url: https://github.com/{github_user}/{github_name} | |
34 | branches: | |
35 | - origin/{version} | |
36 | basedir: src/librseq | |
37 | skip-tag: true | |
38 | ||
39 | triggers: | |
40 | - pollscm: | |
41 | cron: "@hourly" | |
42 | ||
43 | properties: | |
44 | - inject: | |
45 | properties-content: | | |
46 | PROJECT_NAME=librseq | |
47 | - build-discarder: | |
3b228cdd MJ |
48 | num-to-keep: 10 |
49 | artifact-num-to-keep: 2 | |
ae855ba1 MJ |
50 | - github: |
51 | url: https://github.com/{github_user}/{github_name} | |
52 | ||
53 | ||
54 | ## Anchors | |
9a54aa3b | 55 | - _librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults |
5745cfaa | 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 | |
9a54aa3b | 77 | - _librseq_matrix_axes_cc: &librseq_matrix_axes_cc |
5745cfaa | 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 | |
9a54aa3b | 94 | - _librseq_builders_defaults: &librseq_builders_defaults |
5745cfaa | 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 | |
9a54aa3b | 102 | - _librseq_publishers_defaults: &librseq_publishers_defaults |
5745cfaa | 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 | |
4f04deeb MJ |
109 | include-comment-diagnostics: true |
110 | output-tap-to-console: false | |
10c9bf80 | 111 | todo-is-failure: false |
5745cfaa MJ |
112 | - raw: &librseq_publisher_warnings-ng_defaults |
113 | xml: | | |
114 | <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng"> | |
115 | <analysisTools> | |
116 | <io.jenkins.plugins.analysis.warnings.Gcc4> | |
117 | <id/> | |
118 | <name/> | |
119 | <jenkins plugin="plugin-util-api"/> | |
120 | <pattern/> | |
121 | <reportEncoding/> | |
122 | <skipSymbolicLinks>false</skipSymbolicLinks> | |
123 | </io.jenkins.plugins.analysis.warnings.Gcc4> | |
5745cfaa MJ |
124 | </analysisTools> |
125 | <sourceCodeEncoding/> | |
126 | <sourceDirectory/> | |
127 | <sourceDirectories/> | |
128 | <ignoreQualityGate>false</ignoreQualityGate> | |
129 | <ignoreFailedBuilds>true</ignoreFailedBuilds> | |
130 | <failOnError>false</failOnError> | |
131 | <healthy>0</healthy> | |
132 | <unhealthy>0</unhealthy> | |
133 | <minimumSeverity plugin="analysis-model-api"> | |
134 | <name>LOW</name> | |
135 | </minimumSeverity> | |
136 | <filters/> | |
137 | <isEnabledForFailure>true</isEnabledForFailure> | |
138 | <isAggregatingResults>true</isAggregatingResults> | |
139 | <isBlameDisabled>false</isBlameDisabled> | |
140 | <skipPublishingChecks>true</skipPublishingChecks> | |
141 | <publishAllIssues>false</publishAllIssues> | |
142 | <qualityGates> | |
143 | <io.jenkins.plugins.analysis.core.util.QualityGate> | |
144 | <threshold>1</threshold> | |
145 | <type>TOTAL</type> | |
146 | <status>WARNING</status> | |
147 | </io.jenkins.plugins.analysis.core.util.QualityGate> | |
148 | </qualityGates> | |
149 | <trendChartType>AGGREGATION_TOOLS</trendChartType> | |
150 | <scm/> | |
151 | </io.jenkins.plugins.analysis.core.steps.IssuesRecorder> | |
152 | - archive: &librseq_publisher_archive_defaults | |
4174b905 | 153 | artifacts: 'build/**,tap/**,log/**' |
ae855ba1 | 154 | allow-empty: false |
5745cfaa MJ |
155 | - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults |
156 | clean-if: | |
157 | - failure: false | |
ee4b760a MJ |
158 | - ircbot: &librseq_publisher_ircbot_defaults |
159 | strategy: statechange-only | |
160 | message-type: summary-scm | |
161 | matrix-notifier: only-configurations | |
5745cfaa | 162 | - email-ext: &librseq_publisher_email-ext_defaults |
ae855ba1 MJ |
163 | recipients: '{obj:email_to}' |
164 | reply-to: ci-notification@lists.lttng.org | |
165 | always: false | |
166 | unstable: false | |
167 | first-failure: true | |
168 | first-unstable: true | |
169 | not-built: false | |
170 | aborted: false | |
171 | regression: false | |
172 | failure: false | |
173 | second-failure: false | |
174 | improvement: false | |
175 | still-failing: false | |
176 | success: false | |
177 | fixed: false | |
178 | fixed-unhealthy: true | |
179 | still-unstable: false | |
180 | pre-build: false | |
181 | matrix-trigger: only-parent | |
182 | send-to: | |
183 | - recipients | |
184 | ||
9a54aa3b MJ |
185 | - _librseq_publishers_review: &librseq_publishers_review |
186 | name: 'librseq_publishers_review' | |
10c9bf80 | 187 | publishers: |
5745cfaa MJ |
188 | - tap: *librseq_publisher_tap_defaults |
189 | - raw: *librseq_publisher_warnings-ng_defaults | |
190 | - archive: *librseq_publisher_archive_defaults | |
191 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults | |
10c9bf80 MJ |
192 | |
193 | ||
ae855ba1 MJ |
194 | ## Templates |
195 | - job-template: | |
196 | name: librseq_{version}_{buildtype} | |
197 | defaults: librseq | |
198 | ||
5745cfaa MJ |
199 | <<: *librseq_matrix_axes_defaults |
200 | <<: *librseq_builders_defaults | |
201 | <<: *librseq_publishers_defaults | |
ae855ba1 MJ |
202 | |
203 | - job-template: | |
204 | name: librseq_{version}_{cctype} | |
205 | defaults: librseq | |
206 | ||
5745cfaa MJ |
207 | <<: *librseq_matrix_axes_cc |
208 | <<: *librseq_builders_defaults | |
209 | <<: *librseq_publishers_defaults | |
ae855ba1 | 210 | |
10c9bf80 | 211 | - job-template: |
9a54aa3b | 212 | name: dev_review_librseq_{version}_{buildtype} |
10c9bf80 MJ |
213 | defaults: librseq |
214 | concurrent: true | |
215 | ||
216 | scm: | |
217 | - git: | |
218 | url: https://review.lttng.org/librseq | |
219 | refspec: 'refs/changes/*:refs/changes/*' | |
220 | branches: | |
221 | - '$GERRIT_REFSPEC' | |
222 | basedir: src/librseq | |
223 | skip-tag: true | |
224 | ||
225 | triggers: | |
226 | - gerrit: | |
227 | trigger-on: | |
228 | - comment-added-event: | |
229 | approval-category: 'CI-Build' | |
230 | approval-value: 1 | |
231 | projects: | |
232 | - project-compare-type: 'PLAIN' | |
233 | project-pattern: 'librseq' | |
234 | branches: | |
9a54aa3b MJ |
235 | - branch-compare-type: 'PLAIN' |
236 | branch-pattern: '{version}' | |
10c9bf80 | 237 | |
5745cfaa MJ |
238 | <<: *librseq_matrix_axes_defaults |
239 | <<: *librseq_builders_defaults | |
9a54aa3b | 240 | <<: *librseq_publishers_review |
10c9bf80 MJ |
241 | |
242 | properties: | |
243 | - inject: | |
244 | properties-content: | | |
245 | PROJECT_NAME=librseq | |
246 | - build-discarder: | |
247 | days-to-keep: 1 | |
248 | - throttle: | |
249 | option: 'category' | |
250 | categories: | |
251 | - 'gerrit-{buildtype}' | |
252 | ||
ae855ba1 MJ |
253 | - job-template: |
254 | name: librseq_{version}_scan-build | |
255 | defaults: librseq | |
256 | node: 'amd64' | |
257 | ||
258 | triggers: | |
259 | - pollscm: | |
260 | cron: "@daily" | |
261 | ||
262 | builders: | |
263 | - shell: | |
264 | !include-raw-escape: scripts/common/scan-build.sh | |
265 | ||
266 | publishers: | |
267 | - html-publisher: | |
268 | name: 'HTML Report' | |
269 | dir: 'scan-build-archive/' | |
270 | files: 'index.html' | |
5745cfaa | 271 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
272 | |
273 | - job-template: | |
274 | name: librseq_{version}_coverity | |
275 | defaults: librseq | |
276 | node: 'amd64' | |
277 | ||
278 | triggers: | |
279 | - pollscm: | |
280 | cron: "@daily" | |
281 | ||
282 | wrappers: | |
5745cfaa MJ |
283 | - ansicolor: *librseq_wrapper_ansicolor_defaults |
284 | - timeout: *librseq_wrapper_timeout_defaults | |
ae855ba1 | 285 | - timestamps |
5745cfaa | 286 | - workspace-cleanup |
ae855ba1 MJ |
287 | - credentials-binding: |
288 | - username-password-separated: | |
289 | credential-id: librseq_coverity_token | |
290 | username: COVERITY_SCAN_PROJECT_NAME | |
291 | password: COVERITY_SCAN_TOKEN | |
292 | ||
293 | builders: | |
294 | - shell: | |
295 | !include-raw-escape: scripts/common/coverity.sh | |
296 | ||
297 | publishers: | |
298 | - workspace-cleanup | |
299 | - archive: | |
300 | artifacts: 'analysis-results.tgz,cov-int/**' | |
301 | allow-empty: false | |
5745cfaa | 302 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
303 | |
304 | - view-template: | |
72600ad8 | 305 | name: 'Librseq' |
ae855ba1 MJ |
306 | description: 'Restartable sequences' |
307 | view-type: list | |
b4c748a8 | 308 | regex: 'librseq_.*' |
ae855ba1 MJ |
309 | |
310 | ||
311 | ## Project | |
312 | - project: | |
313 | name: librseq | |
314 | github_user: compudj | |
315 | github_name: librseq | |
316 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' | |
317 | version: | |
318 | - master | |
319 | jobs: | |
320 | - 'librseq_{version}_{buildtype}': | |
5745cfaa | 321 | buildtype: linuxbuild |
9a07183c MJ |
322 | platforms: !!python/tuple [jammy-amd64] |
323 | builds: !!python/tuple [std, oot, dist, oot-dist] | |
324 | confs: !!python/tuple [std, static] | |
325 | touchstone: '(build == "std") && (conf == "std")' | |
ae855ba1 MJ |
326 | - 'librseq_{version}_{cctype}': |
327 | cctype: gccbuild | |
9a07183c MJ |
328 | platforms: !!python/tuple [jammy-amd64] |
329 | builds: !!python/tuple [std] | |
330 | confs: !!python/tuple [std, static] | |
331 | ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12] | |
332 | touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")' | |
ae855ba1 MJ |
333 | - 'librseq_{version}_{cctype}': |
334 | cctype: clangbuild | |
9a07183c MJ |
335 | platforms: !!python/tuple [jammy-amd64] |
336 | builds: !!python/tuple [std] | |
337 | confs: !!python/tuple [std, static] | |
338 | ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14] | |
339 | touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")' | |
ae855ba1 MJ |
340 | - 'librseq_{version}_{buildtype}': |
341 | buildtype: portbuild | |
0ecb7652 | 342 | platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386] |
9a07183c MJ |
343 | builds: !!python/tuple [std] |
344 | confs: !!python/tuple [std, static] | |
345 | touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")' | |
ae855ba1 | 346 | |
10c9bf80 | 347 | - project: |
9a54aa3b | 348 | name: review-librseq |
10c9bf80 MJ |
349 | github_user: compudj |
350 | github_name: librseq | |
9a54aa3b MJ |
351 | version: |
352 | - master | |
10c9bf80 | 353 | jobs: |
9a54aa3b | 354 | - 'dev_review_librseq_{version}_{buildtype}': |
5745cfaa | 355 | buildtype: linuxbuild |
9a07183c MJ |
356 | platforms: !!python/tuple [jammy-amd64] |
357 | builds: !!python/tuple [std, oot, dist, oot-dist] | |
358 | confs: !!python/tuple [std, static] | |
359 | touchstone: '(build == "std") && (conf == "std")' | |
10c9bf80 | 360 | |
ae855ba1 MJ |
361 | - project: |
362 | name: librseq-views | |
363 | views: | |
72600ad8 | 364 | - Librseq |