gerrit: ust: run a lttng-tools build using the gerrit ust change.
[lttng-ci.git] / jobs / lttng-ust.yaml
CommitLineData
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: &lttng-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: &lttng-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
7c50e5dd
JR
115- lttng-ust_build_builders_gerrit_lttng-tools: &lttng-ust_build_builders_gerrit_lttng-tools
116 name: 'lttng-ust_build_builders_gerrit_lttng-tools'
117 builders:
118 - conditional-step:
119 condition-kind: regex-match
120 label: '$conf'
121 regex: (std|agents)
122 on-evaluation-failure: run
123 steps:
124 - copyartifact:
125 project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std
126 which-build: last-successful
127 stable: false
128 filter: 'build/**'
129 target: 'deps'
130 do-not-fingerprint: true
131
132 - conditional-step:
133 condition-kind: regex-match
134 label: '$conf'
135 regex: (debug-rcu)
136 on-evaluation-failure: run
137 steps:
138 - copyartifact:
139 project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std
140 which-build: last-successful
141 stable: false
142 filter: 'build/**'
143 target: 'deps'
144 do-not-fingerprint: true
145 - conditional-step:
146 condition-kind: regex-match
147 label: '$conf'
148 regex: (tls_fallback)
149 on-evaluation-failure: run
150 steps:
151 - copyartifact:
152 project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=tls_fallback,build=std
153 which-build: last-successful
154 stable: false
155 filter: 'build/**'
156 target: 'deps'
157 do-not-fingerprint: true
158 - copyartifact:
159 project: babeltrace_{babeltrace_version}_{buildtype}/arch=${{arch}},conf=std,build=std
160 which-build: last-successful
161 stable: false
162 filter: 'build/**'
163 target: 'deps'
164 do-not-fingerprint: true
165
166 - shell:
167 !include-raw-escape:
168 - scripts/common/print.sh
169 - scripts/lttng-ust/build.sh
170 - shell:
171 !include-raw-escape:
172 - scripts/lttng-tools/gerrit-install-deps.sh
173 - shell:
174 !include-raw-escape:
175 - scripts/common/print.sh
176 - scripts/lttng-tools/build.sh
a3bc0379
MJ
177
178## Templates
179- job-template:
180 name: lttng-ust_{version}_{buildtype}
181 defaults: lttng-ust
182
183 <<: *lttng-ust_build_axes_defaults
184 <<: *lttng-ust_build_builders_defaults
185
2b68721a
MJ
186 # TODO: Scan for open tasks
187 publishers:
188 - tap:
1f4fba8c 189 results: 'tap/**/*.log'
1d56e325 190 fail-if-no-results: true
2b68721a 191 failed-tests-mark-build-as-failure: true
95654431 192 todo-is-failure: false
2b68721a
MJ
193 - warnings:
194 console-log-parsers:
195 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
196 total-thresholds:
197 unstable:
d2c76ee5
MJ
198 total-all: 0
199 total-high: 0
200 total-normal: 0
201 total-low: 0
2b68721a 202 - archive:
3579dc14 203 artifacts: 'build/**,tap/**'
2b68721a
MJ
204 allow-empty: false
205 - workspace-cleanup
68fff945
JR
206 - email-ext:
207 recipients: '{obj:email_to}'
208 reply-to: ci-notification@lists.lttng.org
209 always: false
210 unstable: false
211 first-failure: true
212 first-unstable: true
213 not-built: false
214 aborted: false
215 regression: false
216 failure: false
217 second-failure: false
218 improvement: false
219 still-failing: false
220 success: false
221 fixed: false
222 fixed-unhealthy: true
223 still-unstable: false
224 pre-build: false
225 matrix-trigger: only-parent
226 send-to:
227 - recipients
2b68721a 228
a3bc0379
MJ
229- job-template:
230 name: dev_gerrit_lttng-ust_{buildtype}
231 defaults: lttng-ust
232 concurrent: true
233
234 scm:
235 - git:
236 url: https://review.lttng.org/lttng-ust
237 refspec: 'refs/changes/*:refs/changes/*'
238 branches:
239 - '$GERRIT_REFSPEC'
240 basedir: src/lttng-ust
241 skip-tag: true
242
243 triggers:
244 - gerrit:
245 trigger-on:
246 - comment-added-event:
247 approval-category: 'CI-Build'
248 approval-value: 1
249 projects:
250 - project-compare-type: 'PLAIN'
251 project-pattern: 'lttng-ust'
252 branches:
253 - branch-compare-type: 'ANT'
254 branch-pattern: '**'
a3bc0379
MJ
255
256 <<: *lttng-ust_build_axes_defaults
257 <<: *lttng-ust_build_builders_defaults
258
85d7c882
MJ
259 properties:
260 - inject:
261 properties-content: |
262 PROJECT_NAME=lttng-ust
263 - build-discarder:
264 days-to-keep: 1
265 - throttle:
266 option: 'category'
267 categories:
268 - 'gerrit-{buildtype}'
269
a3bc0379
MJ
270 publishers:
271 - tap:
272 results: 'tap/**/*.log'
273 fail-if-no-results: true
274 failed-tests-mark-build-as-failure: true
275 todo-is-failure: false
276 - warnings:
277 console-log-parsers:
278 - 'GNU Make + GNU C Compiler (gcc)'
279 total-thresholds:
280 failed:
281 total-all: 0
282 total-high: 0
283 total-normal: 0
284 total-low: 0
285 - archive:
286 artifacts: 'build/**,tap/**'
287 allow-empty: false
288 - workspace-cleanup
289
7c50e5dd
JR
290- job-template:
291 name: dev_gerrit_lttng-ust_lttng-tools_{buildtype}
292 defaults: lttng-ust
293 concurrent: true
294
295 scm:
296 - git:
297 url: https://review.lttng.org/lttng-ust
298 refspec: 'refs/changes/*:refs/changes/*'
299 branches:
300 - '$GERRIT_REFSPEC'
301 basedir: src/lttng-ust
302 skip-tag: true
303 - git:
304 url: https://review.lttng.org/lttng-tools
305 branches:
306 - '$GERRIT_BRANCH'
307 basedir: src/lttng-tools
308 skip-tag: true
309
310 triggers:
311 - gerrit:
312 trigger-on:
313 - comment-added-event:
314 approval-category: 'CI-Build'
315 approval-value: 1
316 projects:
317 - project-compare-type: 'PLAIN'
318 project-pattern: 'lttng-ust'
319 branches:
320 - branch-compare-type: 'ANT'
321 branch-pattern: '**'
322
323 <<: *lttng-ust_build_axes_defaults
324 <<: *lttng-ust_build_builders_gerrit_lttng-tools
325
326 properties:
327 - inject:
328 properties-content: |
329 PROJECT_NAME=lttng-ust
330 - build-discarder:
331 days-to-keep: 1
332 - throttle:
333 option: 'category'
334 categories:
335 - 'gerrit-{buildtype}'
336
337 publishers:
338 - tap:
339 results: 'tap/**/*.log'
340 fail-if-no-results: true
341 failed-tests-mark-build-as-failure: true
342 todo-is-failure: false
343 - warnings:
344 console-log-parsers:
345 - 'GNU Make + GNU C Compiler (gcc)'
346 total-thresholds:
347 failed:
348 total-all: 0
349 total-high: 0
350 total-normal: 0
351 total-low: 0
352 - archive:
353 artifacts: 'build/**,tap/**'
354 allow-empty: false
355 - workspace-cleanup
356
2b68721a
MJ
357- job-template:
358 name: lttng-ust_{version}_cppcheck
359 defaults: lttng-ust
360
361 triggers:
362 - pollscm:
363 cron: "@daily"
364
365 builders:
366 - shell: |
5279b0f2
MJ
367 rm -f cppcheck-result.xml
368 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
2b68721a
MJ
369
370 publishers:
371 - archive:
5279b0f2 372 artifacts: 'cppcheck-result.xml'
2b68721a
MJ
373 allow-empty: false
374 - cppcheck:
5279b0f2 375 pattern: 'cppcheck-result.xml'
2b68721a
MJ
376 - email:
377 recipients: 'ci-notification@lists.lttng.org'
378 notify-every-unstable-build: true
379 send-to-individuals: false
380
381- job-template:
382 name: lttng-ust_{version}_scan-build
383 defaults: lttng-ust
16844a6d 384 node: 'amd64'
2b68721a
MJ
385
386 triggers:
387 - pollscm:
388 cron: "@daily"
389
390 builders:
c9b78c7b 391 - copyartifact:
16844a6d 392 project: liburcu_master_build/arch=amd64,conf=std,build=std
c9b78c7b 393 which-build: last-successful
3522265a 394 stable: false
c9b78c7b 395 filter: 'build/**'
6544f0ff 396 target: 'deps'
c9b78c7b 397 do-not-fingerprint: true
2b68721a 398 - shell:
69f05d59 399 !include-raw-escape: scripts/common/scan-build.sh
2b68721a
MJ
400
401 publishers:
402 - html-publisher:
403 name: 'HTML Report'
404 dir: 'scan-build-archive/'
405 files: 'index.html'
406
cdb4cba4
MJ
407- job-template:
408 name: lttng-ust_{version}_coverity
409 defaults: lttng-ust
16844a6d 410 node: 'amd64'
cdb4cba4
MJ
411
412 triggers:
413 - pollscm:
414 cron: "@daily"
415
416 wrappers:
417 - workspace-cleanup
418 - timestamps
419 - ansicolor:
420 colormap: xterm
421 - credentials-binding:
422 - username-password-separated:
423 credential-id: lttng-ust_coverity_token
424 username: COVERITY_SCAN_PROJECT_NAME
425 password: COVERITY_SCAN_TOKEN
426
427 builders:
428 - copyartifact:
16844a6d 429 project: liburcu_master_build/arch=amd64,conf=std,build=std
cdb4cba4 430 which-build: last-successful
3522265a 431 stable: false
cdb4cba4 432 filter: 'build/**'
30c8dfac 433 target: 'deps'
cdb4cba4
MJ
434 do-not-fingerprint: true
435 - shell:
ef63064f 436 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
437
438 publishers:
439 - workspace-cleanup
1f4fba8c
MJ
440 - archive:
441 artifacts: 'analysis-results.tgz,cov-int/**'
442 allow-empty: false
2b68721a 443
2b68721a 444
3579dc14
MJ
445## Views
446- view-template:
447 name: 'LTTng-ust'
448 view-type: list
449 regex: 'lttng-ust[-_].*'
2b68721a 450
2b68721a 451
3579dc14 452## Projects
2b68721a
MJ
453- project:
454 name: lttng-ust
51ca880a
MJ
455 github_user: lttng
456 github_name: lttng-ust
68fff945 457 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
2b68721a 458 version:
b631316e 459 - stable-2.10
7f5ffb7a 460 - stable-2.11
2b68721a
MJ
461 jobs:
462 - 'lttng-ust_{version}_{buildtype}':
463 buildtype: build
16844a6d 464 arch: !!python/tuple [amd64]
67122b96 465 build: !!python/tuple [std, dist, oot, oot-dist]
3e93ffa2 466 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
03a8831e 467 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
3e93ffa2 468 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
2b68721a
MJ
469 - 'lttng-ust_{version}_{buildtype}':
470 buildtype: portbuild
16844a6d 471 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
2b68721a 472 build: !!python/tuple [std]
67122b96 473 conf: !!python/tuple [std, agents]
03a8831e 474 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd 475 filter: ''
81bf613d
MJ
476 - 'lttng-ust_{version}_{buildtype}':
477 buildtype: slesbuild
80d2c49d 478 arch: !!python/tuple [sles12sp5]
81bf613d 479 build: !!python/tuple [std]
60bb9bde 480 conf: !!python/tuple [agents]
0faaf34a 481 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd
MJ
482 filter: ''
483 - 'lttng-ust_{version}_{buildtype}':
484 buildtype: elbuild
485 arch: !!python/tuple [el8]
486 build: !!python/tuple [std]
487 conf: !!python/tuple [std]
0faaf34a 488 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd 489 filter: ''
2b68721a
MJ
490 - 'lttng-ust_{version}_cppcheck'
491 - 'lttng-ust_{version}_scan-build'
8713492f 492
03297c9e 493 ## Master ##
fe16cb00
MJ
494 - 'lttng-ust_{version}_{buildtype}':
495 buildtype: build
496 version: master
16844a6d 497 arch: !!python/tuple [amd64]
fe16cb00 498 build: !!python/tuple [std, dist, oot, oot-dist]
3e93ffa2 499 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
0faaf34a 500 liburcu_version: !!python/tuple [stable-0.12, master]
3e93ffa2 501 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
fe16cb00
MJ
502 - 'lttng-ust_{version}_{buildtype}':
503 buildtype: portbuild
504 version: master
16844a6d 505 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
fe16cb00
MJ
506 build: !!python/tuple [std]
507 conf: !!python/tuple [std, agents]
0faaf34a 508 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd 509 filter: ''
fe16cb00
MJ
510 - 'lttng-ust_{version}_{buildtype}':
511 buildtype: slesbuild
512 version: master
80d2c49d 513 arch: !!python/tuple [sles12sp5]
fe16cb00 514 build: !!python/tuple [std]
60bb9bde 515 conf: !!python/tuple [agents]
0faaf34a 516 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd
MJ
517 filter: ''
518 - 'lttng-ust_{version}_{buildtype}':
519 buildtype: elbuild
520 version: master
521 arch: !!python/tuple [el8]
522 build: !!python/tuple [std]
523 conf: !!python/tuple [std]
0faaf34a 524 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd 525 filter: ''
0f7217a0
MJ
526 - 'lttng-ust_{version}_{buildtype}':
527 buildtype: freebsdbuild
528 version: master
529 arch: !!python/tuple [freebsd]
530 build: !!python/tuple [std]
531 conf: !!python/tuple [agents]
532 liburcu_version: !!python/tuple [stable-0.12, master]
533 filter: ''
fe16cb00
MJ
534 - 'lttng-ust_{version}_cppcheck':
535 version: master
536 - 'lttng-ust_{version}_scan-build':
537 version: master
cdb4cba4
MJ
538 - 'lttng-ust_{version}_coverity':
539 version: master
8713492f 540
03297c9e
MJ
541 ## Stable 2.12 ##
542 - 'lttng-ust_{version}_{buildtype}':
543 buildtype: build
544 version: stable-2.12
545 arch: !!python/tuple [amd64]
546 build: !!python/tuple [std, dist, oot, oot-dist]
3e93ffa2 547 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
0faaf34a 548 liburcu_version: !!python/tuple [stable-0.12, master]
3e93ffa2 549 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
03297c9e
MJ
550 - 'lttng-ust_{version}_{buildtype}':
551 buildtype: portbuild
552 version: stable-2.12
553 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
554 build: !!python/tuple [std]
555 conf: !!python/tuple [std, agents]
0faaf34a 556 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
557 filter: ''
558 - 'lttng-ust_{version}_{buildtype}':
559 buildtype: slesbuild
560 version: stable-2.12
80d2c49d 561 arch: !!python/tuple [sles12sp5]
03297c9e 562 build: !!python/tuple [std]
60bb9bde 563 conf: !!python/tuple [agents]
0faaf34a 564 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
565 filter: ''
566 - 'lttng-ust_{version}_{buildtype}':
567 buildtype: elbuild
568 version: stable-2.12
569 arch: !!python/tuple [el8]
570 build: !!python/tuple [std]
571 conf: !!python/tuple [std]
0faaf34a 572 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
573 filter: ''
574 - 'lttng-ust_{version}_cppcheck':
575 version: stable-2.12
576 - 'lttng-ust_{version}_scan-build':
577 version: stable-2.12
2b68721a 578
0104d146
MJ
579 ## Stable 2.9 ##
580 - 'lttng-ust_{version}_{buildtype}':
581 buildtype: slesbuild
582 version: stable-2.9
80d2c49d 583 arch: !!python/tuple [sles12sp5]
0104d146 584 build: !!python/tuple [std]
60bb9bde 585 conf: !!python/tuple [agents]
0104d146
MJ
586 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
587 filter: ''
588
8713492f
MJ
589 ## Stable 2.8 ##
590 - 'lttng-ust_{version}_{buildtype}':
591 buildtype: slesbuild
592 version: stable-2.8
80d2c49d 593 arch: !!python/tuple [sles12sp5]
8713492f 594 build: !!python/tuple [std]
60bb9bde 595 conf: !!python/tuple [agents]
8713492f
MJ
596 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
597 filter: ''
598
599
a3bc0379
MJ
600- project:
601 name: gerrit-lttng-ust
602 github_user: lttng
603 github_name: lttng-ust
604 jobs:
605 - 'dev_gerrit_lttng-ust_{buildtype}':
606 buildtype: build
607 arch: !!python/tuple [amd64]
608 build: !!python/tuple [std, oot, dist, oot-dist]
609 conf: !!python/tuple [std, agents]
0faaf34a 610 liburcu_version: !!python/tuple [stable-0.12]
c8370e00 611 filter: ''
7c50e5dd
JR
612 - 'dev_gerrit_lttng-ust_lttng-tools_{buildtype}':
613 buildtype: build
614 arch: !!python/tuple [amd64]
615 build: !!python/tuple [std, oot, dist, oot-dist]
616 conf: !!python/tuple [std, agents]
617 liburcu_version: !!python/tuple [stable-0.12]
618 filter: ''
619 babeltrace_version: stable-2.0
620
c8370e00
MJ
621 - 'dev_gerrit_lttng-ust_{buildtype}':
622 buildtype: portbuild
623 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
624 build: !!python/tuple [std]
625 conf: !!python/tuple [agents]
626 liburcu_version: !!python/tuple [stable-0.12]
627 filter: ''
a3bc0379 628
3579dc14 629- project:
e04f80ef 630 name: lttng-ust-views
3579dc14
MJ
631 views:
632 - LTTng-ust
This page took 0.055694 seconds and 4 git commands to generate.