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 | |
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 | 212 | |
10c9bf80 MJ |
213 | - job-template: |
214 | name: dev_gerrit_librseq_{buildtype} | |
215 | defaults: librseq | |
216 | concurrent: true | |
217 | ||
218 | scm: | |
219 | - git: | |
220 | url: https://review.lttng.org/librseq | |
221 | refspec: 'refs/changes/*:refs/changes/*' | |
222 | branches: | |
223 | - '$GERRIT_REFSPEC' | |
224 | basedir: src/librseq | |
225 | skip-tag: true | |
226 | ||
227 | triggers: | |
228 | - gerrit: | |
229 | trigger-on: | |
230 | - comment-added-event: | |
231 | approval-category: 'CI-Build' | |
232 | approval-value: 1 | |
233 | projects: | |
234 | - project-compare-type: 'PLAIN' | |
235 | project-pattern: 'librseq' | |
236 | branches: | |
237 | - branch-compare-type: 'ANT' | |
238 | branch-pattern: '**' | |
239 | ||
5745cfaa MJ |
240 | <<: *librseq_matrix_axes_defaults |
241 | <<: *librseq_builders_defaults | |
242 | <<: *librseq_publishers_gerrit | |
10c9bf80 MJ |
243 | |
244 | properties: | |
245 | - inject: | |
246 | properties-content: | | |
247 | PROJECT_NAME=librseq | |
248 | - build-discarder: | |
249 | days-to-keep: 1 | |
250 | - throttle: | |
251 | option: 'category' | |
252 | categories: | |
253 | - 'gerrit-{buildtype}' | |
254 | ||
ae855ba1 MJ |
255 | - job-template: |
256 | name: librseq_{version}_scan-build | |
257 | defaults: librseq | |
258 | node: 'amd64' | |
259 | ||
260 | triggers: | |
261 | - pollscm: | |
262 | cron: "@daily" | |
263 | ||
264 | builders: | |
265 | - shell: | |
266 | !include-raw-escape: scripts/common/scan-build.sh | |
267 | ||
268 | publishers: | |
269 | - html-publisher: | |
270 | name: 'HTML Report' | |
271 | dir: 'scan-build-archive/' | |
272 | files: 'index.html' | |
5745cfaa | 273 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
274 | |
275 | - job-template: | |
276 | name: librseq_{version}_coverity | |
277 | defaults: librseq | |
278 | node: 'amd64' | |
279 | ||
280 | triggers: | |
281 | - pollscm: | |
282 | cron: "@daily" | |
283 | ||
284 | wrappers: | |
5745cfaa MJ |
285 | - ansicolor: *librseq_wrapper_ansicolor_defaults |
286 | - timeout: *librseq_wrapper_timeout_defaults | |
ae855ba1 | 287 | - timestamps |
5745cfaa | 288 | - workspace-cleanup |
ae855ba1 MJ |
289 | - credentials-binding: |
290 | - username-password-separated: | |
291 | credential-id: librseq_coverity_token | |
292 | username: COVERITY_SCAN_PROJECT_NAME | |
293 | password: COVERITY_SCAN_TOKEN | |
294 | ||
295 | builders: | |
296 | - shell: | |
297 | !include-raw-escape: scripts/common/coverity.sh | |
298 | ||
299 | publishers: | |
300 | - workspace-cleanup | |
301 | - archive: | |
302 | artifacts: 'analysis-results.tgz,cov-int/**' | |
303 | allow-empty: false | |
5745cfaa | 304 | - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults |
ae855ba1 MJ |
305 | |
306 | - view-template: | |
72600ad8 | 307 | name: 'Librseq' |
ae855ba1 MJ |
308 | description: 'Restartable sequences' |
309 | view-type: list | |
b4c748a8 | 310 | regex: 'librseq_.*' |
ae855ba1 MJ |
311 | |
312 | ||
313 | ## Project | |
314 | - project: | |
315 | name: librseq | |
316 | github_user: compudj | |
317 | github_name: librseq | |
318 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' | |
319 | version: | |
320 | - master | |
321 | jobs: | |
322 | - 'librseq_{version}_{buildtype}': | |
5745cfaa | 323 | buildtype: linuxbuild |
9a07183c MJ |
324 | platforms: !!python/tuple [jammy-amd64] |
325 | builds: !!python/tuple [std, oot, dist, oot-dist] | |
326 | confs: !!python/tuple [std, static] | |
327 | touchstone: '(build == "std") && (conf == "std")' | |
ae855ba1 MJ |
328 | - 'librseq_{version}_{cctype}': |
329 | cctype: gccbuild | |
9a07183c MJ |
330 | platforms: !!python/tuple [jammy-amd64] |
331 | builds: !!python/tuple [std] | |
332 | confs: !!python/tuple [std, static] | |
333 | ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12] | |
334 | touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")' | |
ae855ba1 MJ |
335 | - 'librseq_{version}_{cctype}': |
336 | cctype: clangbuild | |
9a07183c MJ |
337 | platforms: !!python/tuple [jammy-amd64] |
338 | builds: !!python/tuple [std] | |
339 | confs: !!python/tuple [std, static] | |
340 | ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14] | |
341 | touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")' | |
ae855ba1 MJ |
342 | - 'librseq_{version}_{buildtype}': |
343 | buildtype: portbuild | |
9a07183c MJ |
344 | platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386] |
345 | builds: !!python/tuple [std] | |
346 | confs: !!python/tuple [std, static] | |
347 | touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")' | |
ae855ba1 | 348 | |
10c9bf80 MJ |
349 | - project: |
350 | name: gerrit-librseq | |
351 | github_user: compudj | |
352 | github_name: librseq | |
353 | jobs: | |
354 | - 'dev_gerrit_librseq_{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 |