gerrit: ust: run a lttng-tools build using the gerrit ust change.
[lttng-ci.git] / jobs / lttng-ust.yaml
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
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
20 url: https://github.com/{github_user}/{github_name}.git
21 browser: githubweb
22 browser-url: https://github.com/{github_user}/{github_name}
23 branches:
24 - origin/{version}
25 basedir: src/lttng-ust
26 skip-tag: true
27
28 triggers:
29 - pollscm:
30 cron: "@hourly"
31
32 properties:
33 - inject:
34 properties-content: |
35 PROJECT_NAME=lttng-ust
36 - build-discarder:
37 num-to-keep: 2
38 - github:
39 url: https://github.com/{github_user}/{github_name}
40
41
42 ## Anchors
43 - lttng-ust_build_axes_defaults: &lttng-ust_build_axes_defaults
44 name: 'lttng-ust_build_axes_defaults'
45 project-type: matrix
46 node: 'master' # Applies only to matrix flyweight task
47 execution-strategy:
48 combination-filter: '{filter}'
49 axes:
50 - axis:
51 type: slave
52 name: arch
53 values: '{obj:arch}'
54 - axis:
55 type: user-defined
56 name: conf
57 values: '{obj:conf}'
58 - axis:
59 type: user-defined
60 name: liburcu_version
61 values: '{obj:liburcu_version}'
62 - axis:
63 type: user-defined
64 name: build
65 values: '{obj:build}'
66
67 - lttng-ust_build_builders_defaults: &lttng-ust_build_builders_defaults
68 name: 'lttng-ust_build_builders_defaults'
69 builders:
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/**'
81 target: 'deps'
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/**'
95 target: 'deps'
96 do-not-fingerprint: true
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
110 - shell:
111 !include-raw-escape:
112 - scripts/common/print.sh
113 - scripts/lttng-ust/build.sh
114
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
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
186 # TODO: Scan for open tasks
187 publishers:
188 - tap:
189 results: 'tap/**/*.log'
190 fail-if-no-results: true
191 failed-tests-mark-build-as-failure: true
192 todo-is-failure: false
193 - warnings:
194 console-log-parsers:
195 - 'GNU Make + GNU C Compiler (gcc)'
196 total-thresholds:
197 unstable:
198 total-all: 0
199 total-high: 0
200 total-normal: 0
201 total-low: 0
202 - archive:
203 artifacts: 'build/**,tap/**'
204 allow-empty: false
205 - workspace-cleanup
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
228
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: '**'
255
256 <<: *lttng-ust_build_axes_defaults
257 <<: *lttng-ust_build_builders_defaults
258
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
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
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
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: |
367 rm -f cppcheck-result.xml
368 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
369
370 publishers:
371 - archive:
372 artifacts: 'cppcheck-result.xml'
373 allow-empty: false
374 - cppcheck:
375 pattern: 'cppcheck-result.xml'
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
384 node: 'amd64'
385
386 triggers:
387 - pollscm:
388 cron: "@daily"
389
390 builders:
391 - copyartifact:
392 project: liburcu_master_build/arch=amd64,conf=std,build=std
393 which-build: last-successful
394 stable: false
395 filter: 'build/**'
396 target: 'deps'
397 do-not-fingerprint: true
398 - shell:
399 !include-raw-escape: scripts/common/scan-build.sh
400
401 publishers:
402 - html-publisher:
403 name: 'HTML Report'
404 dir: 'scan-build-archive/'
405 files: 'index.html'
406
407 - job-template:
408 name: lttng-ust_{version}_coverity
409 defaults: lttng-ust
410 node: 'amd64'
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:
429 project: liburcu_master_build/arch=amd64,conf=std,build=std
430 which-build: last-successful
431 stable: false
432 filter: 'build/**'
433 target: 'deps'
434 do-not-fingerprint: true
435 - shell:
436 !include-raw-escape: scripts/common/coverity.sh
437
438 publishers:
439 - workspace-cleanup
440 - archive:
441 artifacts: 'analysis-results.tgz,cov-int/**'
442 allow-empty: false
443
444
445 ## Views
446 - view-template:
447 name: 'LTTng-ust'
448 view-type: list
449 regex: 'lttng-ust[-_].*'
450
451
452 ## Projects
453 - project:
454 name: lttng-ust
455 github_user: lttng
456 github_name: lttng-ust
457 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
458 version:
459 - stable-2.10
460 - stable-2.11
461 jobs:
462 - 'lttng-ust_{version}_{buildtype}':
463 buildtype: build
464 arch: !!python/tuple [amd64]
465 build: !!python/tuple [std, dist, oot, oot-dist]
466 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
467 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
468 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
469 - 'lttng-ust_{version}_{buildtype}':
470 buildtype: portbuild
471 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
472 build: !!python/tuple [std]
473 conf: !!python/tuple [std, agents]
474 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
475 filter: ''
476 - 'lttng-ust_{version}_{buildtype}':
477 buildtype: slesbuild
478 arch: !!python/tuple [sles12sp5]
479 build: !!python/tuple [std]
480 conf: !!python/tuple [agents]
481 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
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]
488 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
489 filter: ''
490 - 'lttng-ust_{version}_cppcheck'
491 - 'lttng-ust_{version}_scan-build'
492
493 ## Master ##
494 - 'lttng-ust_{version}_{buildtype}':
495 buildtype: build
496 version: master
497 arch: !!python/tuple [amd64]
498 build: !!python/tuple [std, dist, oot, oot-dist]
499 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
500 liburcu_version: !!python/tuple [stable-0.12, master]
501 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
502 - 'lttng-ust_{version}_{buildtype}':
503 buildtype: portbuild
504 version: master
505 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
506 build: !!python/tuple [std]
507 conf: !!python/tuple [std, agents]
508 liburcu_version: !!python/tuple [stable-0.12, master]
509 filter: ''
510 - 'lttng-ust_{version}_{buildtype}':
511 buildtype: slesbuild
512 version: master
513 arch: !!python/tuple [sles12sp5]
514 build: !!python/tuple [std]
515 conf: !!python/tuple [agents]
516 liburcu_version: !!python/tuple [stable-0.12, master]
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]
524 liburcu_version: !!python/tuple [stable-0.12, master]
525 filter: ''
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: ''
534 - 'lttng-ust_{version}_cppcheck':
535 version: master
536 - 'lttng-ust_{version}_scan-build':
537 version: master
538 - 'lttng-ust_{version}_coverity':
539 version: master
540
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]
547 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
548 liburcu_version: !!python/tuple [stable-0.12, master]
549 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
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]
556 liburcu_version: !!python/tuple [stable-0.12, master]
557 filter: ''
558 - 'lttng-ust_{version}_{buildtype}':
559 buildtype: slesbuild
560 version: stable-2.12
561 arch: !!python/tuple [sles12sp5]
562 build: !!python/tuple [std]
563 conf: !!python/tuple [agents]
564 liburcu_version: !!python/tuple [stable-0.12, master]
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]
572 liburcu_version: !!python/tuple [stable-0.12, master]
573 filter: ''
574 - 'lttng-ust_{version}_cppcheck':
575 version: stable-2.12
576 - 'lttng-ust_{version}_scan-build':
577 version: stable-2.12
578
579 ## Stable 2.9 ##
580 - 'lttng-ust_{version}_{buildtype}':
581 buildtype: slesbuild
582 version: stable-2.9
583 arch: !!python/tuple [sles12sp5]
584 build: !!python/tuple [std]
585 conf: !!python/tuple [agents]
586 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
587 filter: ''
588
589 ## Stable 2.8 ##
590 - 'lttng-ust_{version}_{buildtype}':
591 buildtype: slesbuild
592 version: stable-2.8
593 arch: !!python/tuple [sles12sp5]
594 build: !!python/tuple [std]
595 conf: !!python/tuple [agents]
596 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
597 filter: ''
598
599
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]
610 liburcu_version: !!python/tuple [stable-0.12]
611 filter: ''
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
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: ''
628
629 - project:
630 name: lttng-ust-views
631 views:
632 - LTTng-ust
This page took 0.04193 seconds and 5 git commands to generate.