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: |
51c9c62d MJ |
111 | !include-raw-escape: |
112 | - scripts/common/print.sh | |
113 | - scripts/lttng-ust/build.sh | |
2b68721a | 114 | |
a3bc0379 MJ |
115 | |
116 | ## Templates | |
117 | - job-template: | |
118 | name: lttng-ust_{version}_{buildtype} | |
119 | defaults: lttng-ust | |
120 | ||
121 | <<: *lttng-ust_build_axes_defaults | |
122 | <<: *lttng-ust_build_builders_defaults | |
123 | ||
2b68721a MJ |
124 | # TODO: Scan for open tasks |
125 | publishers: | |
126 | - tap: | |
1f4fba8c | 127 | results: 'tap/**/*.log' |
1d56e325 | 128 | fail-if-no-results: true |
2b68721a | 129 | failed-tests-mark-build-as-failure: true |
95654431 | 130 | todo-is-failure: false |
2b68721a MJ |
131 | - warnings: |
132 | console-log-parsers: | |
133 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
134 | total-thresholds: |
135 | unstable: | |
d2c76ee5 MJ |
136 | total-all: 0 |
137 | total-high: 0 | |
138 | total-normal: 0 | |
139 | total-low: 0 | |
2b68721a | 140 | - archive: |
3579dc14 | 141 | artifacts: 'build/**,tap/**' |
2b68721a MJ |
142 | allow-empty: false |
143 | - workspace-cleanup | |
68fff945 JR |
144 | - email-ext: |
145 | recipients: '{obj:email_to}' | |
146 | reply-to: ci-notification@lists.lttng.org | |
147 | always: false | |
148 | unstable: false | |
149 | first-failure: true | |
150 | first-unstable: true | |
151 | not-built: false | |
152 | aborted: false | |
153 | regression: false | |
154 | failure: false | |
155 | second-failure: false | |
156 | improvement: false | |
157 | still-failing: false | |
158 | success: false | |
159 | fixed: false | |
160 | fixed-unhealthy: true | |
161 | still-unstable: false | |
162 | pre-build: false | |
163 | matrix-trigger: only-parent | |
164 | send-to: | |
165 | - recipients | |
2b68721a | 166 | |
a3bc0379 MJ |
167 | - job-template: |
168 | name: dev_gerrit_lttng-ust_{buildtype} | |
169 | defaults: lttng-ust | |
170 | concurrent: true | |
171 | ||
172 | scm: | |
173 | - git: | |
174 | url: https://review.lttng.org/lttng-ust | |
175 | refspec: 'refs/changes/*:refs/changes/*' | |
176 | branches: | |
177 | - '$GERRIT_REFSPEC' | |
178 | basedir: src/lttng-ust | |
179 | skip-tag: true | |
180 | ||
181 | triggers: | |
182 | - gerrit: | |
183 | trigger-on: | |
184 | - comment-added-event: | |
185 | approval-category: 'CI-Build' | |
186 | approval-value: 1 | |
187 | projects: | |
188 | - project-compare-type: 'PLAIN' | |
189 | project-pattern: 'lttng-ust' | |
190 | branches: | |
191 | - branch-compare-type: 'ANT' | |
192 | branch-pattern: '**' | |
a3bc0379 MJ |
193 | |
194 | <<: *lttng-ust_build_axes_defaults | |
195 | <<: *lttng-ust_build_builders_defaults | |
196 | ||
85d7c882 MJ |
197 | properties: |
198 | - inject: | |
199 | properties-content: | | |
200 | PROJECT_NAME=lttng-ust | |
201 | - build-discarder: | |
202 | days-to-keep: 1 | |
203 | - throttle: | |
204 | option: 'category' | |
205 | categories: | |
206 | - 'gerrit-{buildtype}' | |
207 | ||
a3bc0379 MJ |
208 | publishers: |
209 | - tap: | |
210 | results: 'tap/**/*.log' | |
211 | fail-if-no-results: true | |
212 | failed-tests-mark-build-as-failure: true | |
213 | todo-is-failure: false | |
214 | - warnings: | |
215 | console-log-parsers: | |
216 | - 'GNU Make + GNU C Compiler (gcc)' | |
217 | total-thresholds: | |
218 | failed: | |
219 | total-all: 0 | |
220 | total-high: 0 | |
221 | total-normal: 0 | |
222 | total-low: 0 | |
223 | - archive: | |
224 | artifacts: 'build/**,tap/**' | |
225 | allow-empty: false | |
226 | - workspace-cleanup | |
227 | ||
2b68721a MJ |
228 | - job-template: |
229 | name: lttng-ust_{version}_cppcheck | |
230 | defaults: lttng-ust | |
231 | ||
232 | triggers: | |
233 | - pollscm: | |
234 | cron: "@daily" | |
235 | ||
236 | builders: | |
237 | - shell: | | |
5279b0f2 MJ |
238 | rm -f cppcheck-result.xml |
239 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml | |
2b68721a MJ |
240 | |
241 | publishers: | |
242 | - archive: | |
5279b0f2 | 243 | artifacts: 'cppcheck-result.xml' |
2b68721a MJ |
244 | allow-empty: false |
245 | - cppcheck: | |
5279b0f2 | 246 | pattern: 'cppcheck-result.xml' |
2b68721a MJ |
247 | - email: |
248 | recipients: 'ci-notification@lists.lttng.org' | |
249 | notify-every-unstable-build: true | |
250 | send-to-individuals: false | |
251 | ||
252 | - job-template: | |
253 | name: lttng-ust_{version}_scan-build | |
254 | defaults: lttng-ust | |
16844a6d | 255 | node: 'amd64' |
2b68721a MJ |
256 | |
257 | triggers: | |
258 | - pollscm: | |
259 | cron: "@daily" | |
260 | ||
261 | builders: | |
c9b78c7b | 262 | - copyartifact: |
16844a6d | 263 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
c9b78c7b | 264 | which-build: last-successful |
3522265a | 265 | stable: false |
c9b78c7b | 266 | filter: 'build/**' |
6544f0ff | 267 | target: 'deps' |
c9b78c7b | 268 | do-not-fingerprint: true |
2b68721a | 269 | - shell: |
69f05d59 | 270 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
271 | |
272 | publishers: | |
273 | - html-publisher: | |
274 | name: 'HTML Report' | |
275 | dir: 'scan-build-archive/' | |
276 | files: 'index.html' | |
277 | ||
cdb4cba4 MJ |
278 | - job-template: |
279 | name: lttng-ust_{version}_coverity | |
280 | defaults: lttng-ust | |
16844a6d | 281 | node: 'amd64' |
cdb4cba4 MJ |
282 | |
283 | triggers: | |
284 | - pollscm: | |
285 | cron: "@daily" | |
286 | ||
287 | wrappers: | |
288 | - workspace-cleanup | |
289 | - timestamps | |
290 | - ansicolor: | |
291 | colormap: xterm | |
292 | - credentials-binding: | |
293 | - username-password-separated: | |
294 | credential-id: lttng-ust_coverity_token | |
295 | username: COVERITY_SCAN_PROJECT_NAME | |
296 | password: COVERITY_SCAN_TOKEN | |
297 | ||
298 | builders: | |
299 | - copyartifact: | |
16844a6d | 300 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
cdb4cba4 | 301 | which-build: last-successful |
3522265a | 302 | stable: false |
cdb4cba4 | 303 | filter: 'build/**' |
30c8dfac | 304 | target: 'deps' |
cdb4cba4 MJ |
305 | do-not-fingerprint: true |
306 | - shell: | |
ef63064f | 307 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
308 | |
309 | publishers: | |
310 | - workspace-cleanup | |
1f4fba8c MJ |
311 | - archive: |
312 | artifacts: 'analysis-results.tgz,cov-int/**' | |
313 | allow-empty: false | |
2b68721a | 314 | |
2b68721a | 315 | |
3579dc14 MJ |
316 | ## Views |
317 | - view-template: | |
318 | name: 'LTTng-ust' | |
319 | view-type: list | |
320 | regex: 'lttng-ust[-_].*' | |
2b68721a | 321 | |
2b68721a | 322 | |
3579dc14 | 323 | ## Projects |
2b68721a MJ |
324 | - project: |
325 | name: lttng-ust | |
51ca880a MJ |
326 | github_user: lttng |
327 | github_name: lttng-ust | |
68fff945 | 328 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
2b68721a | 329 | version: |
b631316e | 330 | - stable-2.10 |
7f5ffb7a | 331 | - stable-2.11 |
2b68721a MJ |
332 | jobs: |
333 | - 'lttng-ust_{version}_{buildtype}': | |
334 | buildtype: build | |
16844a6d | 335 | arch: !!python/tuple [amd64] |
67122b96 | 336 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 337 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
03a8831e | 338 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
3e93ffa2 | 339 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
2b68721a MJ |
340 | - 'lttng-ust_{version}_{buildtype}': |
341 | buildtype: portbuild | |
16844a6d | 342 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
2b68721a | 343 | build: !!python/tuple [std] |
67122b96 | 344 | conf: !!python/tuple [std, agents] |
03a8831e | 345 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 346 | filter: '' |
81bf613d MJ |
347 | - 'lttng-ust_{version}_{buildtype}': |
348 | buildtype: slesbuild | |
349 | arch: !!python/tuple [sles12sp2] | |
350 | build: !!python/tuple [std] | |
60bb9bde | 351 | conf: !!python/tuple [agents] |
0faaf34a | 352 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd MJ |
353 | filter: '' |
354 | - 'lttng-ust_{version}_{buildtype}': | |
355 | buildtype: elbuild | |
356 | arch: !!python/tuple [el8] | |
357 | build: !!python/tuple [std] | |
358 | conf: !!python/tuple [std] | |
0faaf34a | 359 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 360 | filter: '' |
2b68721a MJ |
361 | - 'lttng-ust_{version}_cppcheck' |
362 | - 'lttng-ust_{version}_scan-build' | |
8713492f | 363 | |
03297c9e | 364 | ## Master ## |
fe16cb00 MJ |
365 | - 'lttng-ust_{version}_{buildtype}': |
366 | buildtype: build | |
367 | version: master | |
16844a6d | 368 | arch: !!python/tuple [amd64] |
fe16cb00 | 369 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 370 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 371 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 372 | filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))' |
fe16cb00 MJ |
373 | - 'lttng-ust_{version}_{buildtype}': |
374 | buildtype: portbuild | |
375 | version: master | |
16844a6d | 376 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
fe16cb00 MJ |
377 | build: !!python/tuple [std] |
378 | conf: !!python/tuple [std, agents] | |
0faaf34a | 379 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 380 | filter: '' |
fe16cb00 MJ |
381 | - 'lttng-ust_{version}_{buildtype}': |
382 | buildtype: slesbuild | |
383 | version: master | |
384 | arch: !!python/tuple [sles12sp2] | |
385 | build: !!python/tuple [std] | |
60bb9bde | 386 | conf: !!python/tuple [agents] |
0faaf34a | 387 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd MJ |
388 | filter: '' |
389 | - 'lttng-ust_{version}_{buildtype}': | |
390 | buildtype: elbuild | |
391 | version: master | |
392 | arch: !!python/tuple [el8] | |
393 | build: !!python/tuple [std] | |
394 | conf: !!python/tuple [std] | |
0faaf34a | 395 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 396 | filter: '' |
0f7217a0 MJ |
397 | - 'lttng-ust_{version}_{buildtype}': |
398 | buildtype: freebsdbuild | |
399 | version: master | |
400 | arch: !!python/tuple [freebsd] | |
401 | build: !!python/tuple [std] | |
402 | conf: !!python/tuple [agents] | |
403 | liburcu_version: !!python/tuple [stable-0.12, master] | |
404 | filter: '' | |
fe16cb00 MJ |
405 | - 'lttng-ust_{version}_cppcheck': |
406 | version: master | |
407 | - 'lttng-ust_{version}_scan-build': | |
408 | version: master | |
cdb4cba4 MJ |
409 | - 'lttng-ust_{version}_coverity': |
410 | version: master | |
8713492f | 411 | |
03297c9e MJ |
412 | ## Stable 2.12 ## |
413 | - 'lttng-ust_{version}_{buildtype}': | |
414 | buildtype: build | |
415 | version: stable-2.12 | |
416 | arch: !!python/tuple [amd64] | |
417 | build: !!python/tuple [std, dist, oot, oot-dist] | |
3e93ffa2 | 418 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 419 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 420 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
03297c9e MJ |
421 | - 'lttng-ust_{version}_{buildtype}': |
422 | buildtype: portbuild | |
423 | version: stable-2.12 | |
424 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
425 | build: !!python/tuple [std] | |
426 | conf: !!python/tuple [std, agents] | |
0faaf34a | 427 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
428 | filter: '' |
429 | - 'lttng-ust_{version}_{buildtype}': | |
430 | buildtype: slesbuild | |
431 | version: stable-2.12 | |
432 | arch: !!python/tuple [sles12sp2] | |
433 | build: !!python/tuple [std] | |
60bb9bde | 434 | conf: !!python/tuple [agents] |
0faaf34a | 435 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
436 | filter: '' |
437 | - 'lttng-ust_{version}_{buildtype}': | |
438 | buildtype: elbuild | |
439 | version: stable-2.12 | |
440 | arch: !!python/tuple [el8] | |
441 | build: !!python/tuple [std] | |
442 | conf: !!python/tuple [std] | |
0faaf34a | 443 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
444 | filter: '' |
445 | - 'lttng-ust_{version}_cppcheck': | |
446 | version: stable-2.12 | |
447 | - 'lttng-ust_{version}_scan-build': | |
448 | version: stable-2.12 | |
2b68721a | 449 | |
0104d146 MJ |
450 | ## Stable 2.9 ## |
451 | - 'lttng-ust_{version}_{buildtype}': | |
452 | buildtype: slesbuild | |
453 | version: stable-2.9 | |
454 | arch: !!python/tuple [sles12sp2] | |
455 | build: !!python/tuple [std] | |
60bb9bde | 456 | conf: !!python/tuple [agents] |
0104d146 MJ |
457 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
458 | filter: '' | |
459 | ||
8713492f MJ |
460 | ## Stable 2.8 ## |
461 | - 'lttng-ust_{version}_{buildtype}': | |
462 | buildtype: slesbuild | |
463 | version: stable-2.8 | |
464 | arch: !!python/tuple [sles12sp2] | |
465 | build: !!python/tuple [std] | |
60bb9bde | 466 | conf: !!python/tuple [agents] |
8713492f MJ |
467 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
468 | filter: '' | |
469 | ||
470 | ||
a3bc0379 MJ |
471 | - project: |
472 | name: gerrit-lttng-ust | |
473 | github_user: lttng | |
474 | github_name: lttng-ust | |
475 | jobs: | |
476 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
477 | buildtype: build | |
478 | arch: !!python/tuple [amd64] | |
479 | build: !!python/tuple [std, oot, dist, oot-dist] | |
480 | conf: !!python/tuple [std, agents] | |
0faaf34a | 481 | liburcu_version: !!python/tuple [stable-0.12] |
c8370e00 MJ |
482 | filter: '' |
483 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
484 | buildtype: portbuild | |
485 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
486 | build: !!python/tuple [std] | |
487 | conf: !!python/tuple [agents] | |
488 | liburcu_version: !!python/tuple [stable-0.12] | |
489 | filter: '' | |
a3bc0379 | 490 | |
3579dc14 | 491 | - project: |
e04f80ef | 492 | name: lttng-ust-views |
3579dc14 MJ |
493 | views: |
494 | - LTTng-ust |