Commit | Line | Data |
---|---|---|
2b68721a MJ |
1 | - defaults: |
2 | name: lttng-ust | |
3 | description: | | |
4 | LTTng-UST, the Linux Trace Toolkit Next Generation Userspace Tracer, is a | |
5 | port of the low-overhead tracing capabilities of the LTTng kernel tracer | |
6 | to user-space. The library "liblttng-ust" enables tracing of | |
7 | applications and libraries. | |
8 | ||
9 | <p>Job is managed by Jenkins Job Builder.</p> | |
10 | ||
11 | project-type: freestyle | |
12 | ||
2b68721a MJ |
13 | wrappers: |
14 | - workspace-cleanup | |
15 | - timestamps | |
16 | - ansicolor | |
17 | ||
18 | scm: | |
19 | - git: | |
4d27af8f | 20 | url: https://github.com/{github_user}/{github_name}.git |
2b68721a | 21 | browser: githubweb |
51ca880a | 22 | browser-url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
23 | branches: |
24 | - origin/{version} | |
1f4fba8c | 25 | basedir: src/lttng-ust |
89b9225e | 26 | skip-tag: true |
2b68721a MJ |
27 | |
28 | triggers: | |
29 | - pollscm: | |
30 | cron: "@hourly" | |
31 | ||
32 | properties: | |
69f05d59 MJ |
33 | - inject: |
34 | properties-content: | | |
35 | PROJECT_NAME=lttng-ust | |
edf72710 MJ |
36 | - build-discarder: |
37 | num-to-keep: 2 | |
2b68721a | 38 | - github: |
51ca880a | 39 | url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
40 | |
41 | ||
a3bc0379 MJ |
42 | ## Anchors |
43 | - lttng-ust_build_axes_defaults: <tng-ust_build_axes_defaults | |
44 | name: 'lttng-ust_build_axes_defaults' | |
2b68721a | 45 | project-type: matrix |
ca8c6144 | 46 | node: 'master' # Applies only to matrix flyweight task |
2b68721a | 47 | execution-strategy: |
568b5cbd | 48 | combination-filter: '{filter}' |
2b68721a MJ |
49 | axes: |
50 | - axis: | |
51 | type: slave | |
52 | name: arch | |
53 | values: '{obj:arch}' | |
54 | - axis: | |
55 | type: user-defined | |
56 | name: conf | |
95654431 | 57 | values: '{obj:conf}' |
2b68721a MJ |
58 | - axis: |
59 | type: user-defined | |
60 | name: liburcu_version | |
81bf613d | 61 | values: '{obj:liburcu_version}' |
2b68721a MJ |
62 | - axis: |
63 | type: user-defined | |
64 | name: build | |
65 | values: '{obj:build}' | |
66 | ||
a3bc0379 MJ |
67 | - lttng-ust_build_builders_defaults: <tng-ust_build_builders_defaults |
68 | name: 'lttng-ust_build_builders_defaults' | |
2b68721a | 69 | builders: |
0349e2c0 JR |
70 | - conditional-step: |
71 | condition-kind: regex-match | |
72 | label: '$conf' | |
73 | regex: (std|agents) | |
74 | on-evaluation-failure: run | |
75 | steps: | |
76 | - copyartifact: | |
77 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
78 | which-build: last-successful | |
79 | stable: false | |
80 | filter: 'build/**' | |
3579dc14 | 81 | target: 'deps' |
0349e2c0 JR |
82 | do-not-fingerprint: true |
83 | ||
84 | - conditional-step: | |
85 | condition-kind: regex-match | |
86 | label: '$conf' | |
87 | regex: (debug-rcu) | |
88 | on-evaluation-failure: run | |
89 | steps: | |
90 | - copyartifact: | |
91 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std | |
92 | which-build: last-successful | |
93 | stable: false | |
94 | filter: 'build/**' | |
3579dc14 | 95 | target: 'deps' |
0349e2c0 | 96 | do-not-fingerprint: true |
3e93ffa2 MJ |
97 | - conditional-step: |
98 | condition-kind: regex-match | |
99 | label: '$conf' | |
100 | regex: (tls_fallback) | |
101 | on-evaluation-failure: run | |
102 | steps: | |
103 | - copyartifact: | |
104 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=tls_fallback,build=std | |
105 | which-build: last-successful | |
106 | stable: false | |
107 | filter: 'build/**' | |
108 | target: 'deps' | |
109 | do-not-fingerprint: true | |
2b68721a | 110 | - shell: |
ef63064f | 111 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a | 112 | |
a3bc0379 MJ |
113 | |
114 | ## Templates | |
115 | - job-template: | |
116 | name: lttng-ust_{version}_{buildtype} | |
117 | defaults: lttng-ust | |
118 | ||
119 | <<: *lttng-ust_build_axes_defaults | |
120 | <<: *lttng-ust_build_builders_defaults | |
121 | ||
2b68721a MJ |
122 | # TODO: Scan for open tasks |
123 | publishers: | |
124 | - tap: | |
1f4fba8c | 125 | results: 'tap/**/*.log' |
1d56e325 | 126 | fail-if-no-results: true |
2b68721a | 127 | failed-tests-mark-build-as-failure: true |
95654431 | 128 | todo-is-failure: false |
2b68721a MJ |
129 | - warnings: |
130 | console-log-parsers: | |
131 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
132 | total-thresholds: |
133 | unstable: | |
d2c76ee5 MJ |
134 | total-all: 0 |
135 | total-high: 0 | |
136 | total-normal: 0 | |
137 | total-low: 0 | |
2b68721a | 138 | - archive: |
3579dc14 | 139 | artifacts: 'build/**,tap/**' |
2b68721a MJ |
140 | allow-empty: false |
141 | - workspace-cleanup | |
68fff945 JR |
142 | - email-ext: |
143 | recipients: '{obj:email_to}' | |
144 | reply-to: ci-notification@lists.lttng.org | |
145 | always: false | |
146 | unstable: false | |
147 | first-failure: true | |
148 | first-unstable: true | |
149 | not-built: false | |
150 | aborted: false | |
151 | regression: false | |
152 | failure: false | |
153 | second-failure: false | |
154 | improvement: false | |
155 | still-failing: false | |
156 | success: false | |
157 | fixed: false | |
158 | fixed-unhealthy: true | |
159 | still-unstable: false | |
160 | pre-build: false | |
161 | matrix-trigger: only-parent | |
162 | send-to: | |
163 | - recipients | |
2b68721a | 164 | |
a3bc0379 MJ |
165 | - job-template: |
166 | name: dev_gerrit_lttng-ust_{buildtype} | |
167 | defaults: lttng-ust | |
168 | concurrent: true | |
169 | ||
170 | scm: | |
171 | - git: | |
172 | url: https://review.lttng.org/lttng-ust | |
173 | refspec: 'refs/changes/*:refs/changes/*' | |
174 | branches: | |
175 | - '$GERRIT_REFSPEC' | |
176 | basedir: src/lttng-ust | |
177 | skip-tag: true | |
178 | ||
179 | triggers: | |
180 | - gerrit: | |
181 | trigger-on: | |
182 | - comment-added-event: | |
183 | approval-category: 'CI-Build' | |
184 | approval-value: 1 | |
185 | projects: | |
186 | - project-compare-type: 'PLAIN' | |
187 | project-pattern: 'lttng-ust' | |
188 | branches: | |
189 | - branch-compare-type: 'ANT' | |
190 | branch-pattern: '**' | |
a3bc0379 MJ |
191 | |
192 | <<: *lttng-ust_build_axes_defaults | |
193 | <<: *lttng-ust_build_builders_defaults | |
194 | ||
85d7c882 MJ |
195 | properties: |
196 | - inject: | |
197 | properties-content: | | |
198 | PROJECT_NAME=lttng-ust | |
199 | - build-discarder: | |
200 | days-to-keep: 1 | |
201 | - throttle: | |
202 | option: 'category' | |
203 | categories: | |
204 | - 'gerrit-{buildtype}' | |
205 | ||
a3bc0379 MJ |
206 | publishers: |
207 | - tap: | |
208 | results: 'tap/**/*.log' | |
209 | fail-if-no-results: true | |
210 | failed-tests-mark-build-as-failure: true | |
211 | todo-is-failure: false | |
212 | - warnings: | |
213 | console-log-parsers: | |
214 | - 'GNU Make + GNU C Compiler (gcc)' | |
215 | total-thresholds: | |
216 | failed: | |
217 | total-all: 0 | |
218 | total-high: 0 | |
219 | total-normal: 0 | |
220 | total-low: 0 | |
221 | - archive: | |
222 | artifacts: 'build/**,tap/**' | |
223 | allow-empty: false | |
224 | - workspace-cleanup | |
225 | ||
2b68721a MJ |
226 | - job-template: |
227 | name: lttng-ust_{version}_cppcheck | |
228 | defaults: lttng-ust | |
229 | ||
230 | triggers: | |
231 | - pollscm: | |
232 | cron: "@daily" | |
233 | ||
234 | builders: | |
235 | - shell: | | |
5279b0f2 MJ |
236 | rm -f cppcheck-result.xml |
237 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml | |
2b68721a MJ |
238 | |
239 | publishers: | |
240 | - archive: | |
5279b0f2 | 241 | artifacts: 'cppcheck-result.xml' |
2b68721a MJ |
242 | allow-empty: false |
243 | - cppcheck: | |
5279b0f2 | 244 | pattern: 'cppcheck-result.xml' |
2b68721a MJ |
245 | - email: |
246 | recipients: 'ci-notification@lists.lttng.org' | |
247 | notify-every-unstable-build: true | |
248 | send-to-individuals: false | |
249 | ||
250 | - job-template: | |
251 | name: lttng-ust_{version}_scan-build | |
252 | defaults: lttng-ust | |
16844a6d | 253 | node: 'amd64' |
2b68721a MJ |
254 | |
255 | triggers: | |
256 | - pollscm: | |
257 | cron: "@daily" | |
258 | ||
259 | builders: | |
c9b78c7b | 260 | - copyartifact: |
16844a6d | 261 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
c9b78c7b | 262 | which-build: last-successful |
3522265a | 263 | stable: false |
c9b78c7b | 264 | filter: 'build/**' |
6544f0ff | 265 | target: 'deps' |
c9b78c7b | 266 | do-not-fingerprint: true |
2b68721a | 267 | - shell: |
69f05d59 | 268 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
269 | |
270 | publishers: | |
271 | - html-publisher: | |
272 | name: 'HTML Report' | |
273 | dir: 'scan-build-archive/' | |
274 | files: 'index.html' | |
275 | ||
cdb4cba4 MJ |
276 | - job-template: |
277 | name: lttng-ust_{version}_coverity | |
278 | defaults: lttng-ust | |
16844a6d | 279 | node: 'amd64' |
cdb4cba4 MJ |
280 | |
281 | triggers: | |
282 | - pollscm: | |
283 | cron: "@daily" | |
284 | ||
285 | wrappers: | |
286 | - workspace-cleanup | |
287 | - timestamps | |
288 | - ansicolor: | |
289 | colormap: xterm | |
290 | - credentials-binding: | |
291 | - username-password-separated: | |
292 | credential-id: lttng-ust_coverity_token | |
293 | username: COVERITY_SCAN_PROJECT_NAME | |
294 | password: COVERITY_SCAN_TOKEN | |
295 | ||
296 | builders: | |
297 | - copyartifact: | |
16844a6d | 298 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
cdb4cba4 | 299 | which-build: last-successful |
3522265a | 300 | stable: false |
cdb4cba4 | 301 | filter: 'build/**' |
30c8dfac | 302 | target: 'deps' |
cdb4cba4 MJ |
303 | do-not-fingerprint: true |
304 | - shell: | |
ef63064f | 305 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
306 | |
307 | publishers: | |
308 | - workspace-cleanup | |
1f4fba8c MJ |
309 | - archive: |
310 | artifacts: 'analysis-results.tgz,cov-int/**' | |
311 | allow-empty: false | |
2b68721a | 312 | |
2b68721a | 313 | |
3579dc14 MJ |
314 | ## Views |
315 | - view-template: | |
316 | name: 'LTTng-ust' | |
317 | view-type: list | |
318 | regex: 'lttng-ust[-_].*' | |
2b68721a | 319 | |
2b68721a | 320 | |
3579dc14 | 321 | ## Projects |
2b68721a MJ |
322 | - project: |
323 | name: lttng-ust | |
51ca880a MJ |
324 | github_user: lttng |
325 | github_name: lttng-ust | |
68fff945 | 326 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
2b68721a | 327 | version: |
b631316e | 328 | - stable-2.10 |
7f5ffb7a | 329 | - stable-2.11 |
2b68721a MJ |
330 | jobs: |
331 | - 'lttng-ust_{version}_{buildtype}': | |
332 | buildtype: build | |
16844a6d | 333 | arch: !!python/tuple [amd64] |
67122b96 | 334 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 335 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
03a8831e | 336 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
3e93ffa2 | 337 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
2b68721a MJ |
338 | - 'lttng-ust_{version}_{buildtype}': |
339 | buildtype: portbuild | |
16844a6d | 340 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
2b68721a | 341 | build: !!python/tuple [std] |
67122b96 | 342 | conf: !!python/tuple [std, agents] |
03a8831e | 343 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 344 | filter: '' |
81bf613d MJ |
345 | - 'lttng-ust_{version}_{buildtype}': |
346 | buildtype: slesbuild | |
347 | arch: !!python/tuple [sles12sp2] | |
348 | build: !!python/tuple [std] | |
60bb9bde | 349 | conf: !!python/tuple [agents] |
0faaf34a | 350 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd MJ |
351 | filter: '' |
352 | - 'lttng-ust_{version}_{buildtype}': | |
353 | buildtype: elbuild | |
354 | arch: !!python/tuple [el8] | |
355 | build: !!python/tuple [std] | |
356 | conf: !!python/tuple [std] | |
0faaf34a | 357 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 358 | filter: '' |
2b68721a MJ |
359 | - 'lttng-ust_{version}_cppcheck' |
360 | - 'lttng-ust_{version}_scan-build' | |
8713492f | 361 | |
03297c9e | 362 | ## Master ## |
fe16cb00 MJ |
363 | - 'lttng-ust_{version}_{buildtype}': |
364 | buildtype: build | |
365 | version: master | |
16844a6d | 366 | arch: !!python/tuple [amd64] |
fe16cb00 | 367 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 368 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 369 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 370 | filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))' |
fe16cb00 MJ |
371 | - 'lttng-ust_{version}_{buildtype}': |
372 | buildtype: portbuild | |
373 | version: master | |
16844a6d | 374 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
fe16cb00 MJ |
375 | build: !!python/tuple [std] |
376 | conf: !!python/tuple [std, agents] | |
0faaf34a | 377 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 378 | filter: '' |
fe16cb00 MJ |
379 | - 'lttng-ust_{version}_{buildtype}': |
380 | buildtype: slesbuild | |
381 | version: master | |
382 | arch: !!python/tuple [sles12sp2] | |
383 | build: !!python/tuple [std] | |
60bb9bde | 384 | conf: !!python/tuple [agents] |
0faaf34a | 385 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd MJ |
386 | filter: '' |
387 | - 'lttng-ust_{version}_{buildtype}': | |
388 | buildtype: elbuild | |
389 | version: master | |
390 | arch: !!python/tuple [el8] | |
391 | build: !!python/tuple [std] | |
392 | conf: !!python/tuple [std] | |
0faaf34a | 393 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 394 | filter: '' |
fe16cb00 MJ |
395 | - 'lttng-ust_{version}_cppcheck': |
396 | version: master | |
397 | - 'lttng-ust_{version}_scan-build': | |
398 | version: master | |
cdb4cba4 MJ |
399 | - 'lttng-ust_{version}_coverity': |
400 | version: master | |
8713492f | 401 | |
03297c9e MJ |
402 | ## Stable 2.12 ## |
403 | - 'lttng-ust_{version}_{buildtype}': | |
404 | buildtype: build | |
405 | version: stable-2.12 | |
406 | arch: !!python/tuple [amd64] | |
407 | build: !!python/tuple [std, dist, oot, oot-dist] | |
3e93ffa2 | 408 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 409 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 410 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
03297c9e MJ |
411 | - 'lttng-ust_{version}_{buildtype}': |
412 | buildtype: portbuild | |
413 | version: stable-2.12 | |
414 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
415 | build: !!python/tuple [std] | |
416 | conf: !!python/tuple [std, agents] | |
0faaf34a | 417 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
418 | filter: '' |
419 | - 'lttng-ust_{version}_{buildtype}': | |
420 | buildtype: slesbuild | |
421 | version: stable-2.12 | |
422 | arch: !!python/tuple [sles12sp2] | |
423 | build: !!python/tuple [std] | |
60bb9bde | 424 | conf: !!python/tuple [agents] |
0faaf34a | 425 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
426 | filter: '' |
427 | - 'lttng-ust_{version}_{buildtype}': | |
428 | buildtype: elbuild | |
429 | version: stable-2.12 | |
430 | arch: !!python/tuple [el8] | |
431 | build: !!python/tuple [std] | |
432 | conf: !!python/tuple [std] | |
0faaf34a | 433 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
434 | filter: '' |
435 | - 'lttng-ust_{version}_cppcheck': | |
436 | version: stable-2.12 | |
437 | - 'lttng-ust_{version}_scan-build': | |
438 | version: stable-2.12 | |
2b68721a | 439 | |
0104d146 MJ |
440 | ## Stable 2.9 ## |
441 | - 'lttng-ust_{version}_{buildtype}': | |
442 | buildtype: slesbuild | |
443 | version: stable-2.9 | |
444 | arch: !!python/tuple [sles12sp2] | |
445 | build: !!python/tuple [std] | |
60bb9bde | 446 | conf: !!python/tuple [agents] |
0104d146 MJ |
447 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
448 | filter: '' | |
449 | ||
8713492f MJ |
450 | ## Stable 2.8 ## |
451 | - 'lttng-ust_{version}_{buildtype}': | |
452 | buildtype: slesbuild | |
453 | version: stable-2.8 | |
454 | arch: !!python/tuple [sles12sp2] | |
455 | build: !!python/tuple [std] | |
60bb9bde | 456 | conf: !!python/tuple [agents] |
8713492f MJ |
457 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
458 | filter: '' | |
459 | ||
460 | ||
a3bc0379 MJ |
461 | - project: |
462 | name: gerrit-lttng-ust | |
463 | github_user: lttng | |
464 | github_name: lttng-ust | |
465 | jobs: | |
466 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
467 | buildtype: build | |
468 | arch: !!python/tuple [amd64] | |
469 | build: !!python/tuple [std, oot, dist, oot-dist] | |
470 | conf: !!python/tuple [std, agents] | |
0faaf34a | 471 | liburcu_version: !!python/tuple [stable-0.12] |
c8370e00 MJ |
472 | filter: '' |
473 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
474 | buildtype: portbuild | |
475 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
476 | build: !!python/tuple [std] | |
477 | conf: !!python/tuple [agents] | |
478 | liburcu_version: !!python/tuple [stable-0.12] | |
479 | filter: '' | |
a3bc0379 | 480 | |
3579dc14 | 481 | - project: |
e04f80ef | 482 | name: lttng-ust-views |
3579dc14 MJ |
483 | views: |
484 | - LTTng-ust |