jjb: babeltrace cleanups
[lttng-ci.git] / jobs / lttng-tools.yaml
1 - defaults:
2 name: lttng-tools
3 description: |
4 The lttng-tools project provides a session daemon (lttng-sessiond)
5 that acts as a tracing registry, the "lttng" command line for tracing
6 control, a lttng-ctl library for tracing control and a lttng-relayd
7 for network streaming.
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: git://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 skip-tag: true
26
27 triggers:
28 - pollscm:
29 cron: "@hourly"
30
31 properties:
32 - github:
33 url: https://github.com/{github_user}/{github_name}
34 - build-discarder:
35 num-to-keep: 20
36 artifact-num-to-keep: 2
37
38
39 ## Templates
40
41 - lttng-tools_version_buildtype_anchor: &lttng-tools_version_buildtype_anchor
42 name: 'lttng-tools_version_buildtype_anchor'
43 defaults: lttng-tools
44
45 project-type: matrix
46 node: 'master' # Applies only to matrix flyweight task
47 axes:
48 - axis:
49 type: slave
50 name: arch
51 values: '{obj:arch}'
52 - axis:
53 type: user-defined
54 name: conf
55 values: '{obj:conf}'
56 - axis:
57 type: user-defined
58 name: liburcu_version
59 values: '{obj:urcuversion}'
60 - axis:
61 type: user-defined
62 name: babeltrace_version
63 values: '{obj:babelversion}'
64 - axis:
65 type: user-defined
66 name: build
67 values: '{obj:build}'
68
69 properties:
70 - github:
71 url: https://github.com/{github_user}/{github_name}
72 - build-discarder:
73 num-to-keep: 20
74 artifact-num-to-keep: 2
75 - throttle:
76 max-per-node: 1
77 option: 'category'
78 categories:
79 - 'lttng-tools'
80 matrix-builds: false
81 matrix-configs: true
82
83 builders:
84 - conditional-step:
85 condition-kind: regex-match
86 label: '$conf'
87 regex: (std|static)
88 on-evaluation-failure: run
89 steps:
90 - copyartifact:
91 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
92 which-build: last-successful
93 stable: true
94 filter: 'build/**'
95 target: 'deps/liburcu'
96 do-not-fingerprint: true
97 - copyartifact:
98 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
99 which-build: last-successful
100 stable: true
101 filter: 'build/**'
102 target: 'deps/babeltrace'
103 do-not-fingerprint: true
104 - copyartifact:
105 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
106 which-build: last-successful
107 stable: true
108 filter: 'build/**'
109 target: 'deps/lttng-ust'
110 do-not-fingerprint: true
111 - conditional-step:
112 condition-kind: regex-match
113 label: '$conf'
114 regex: (python-bindings|no-ust)
115 on-evaluation-failure: run
116 steps:
117 - copyartifact:
118 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
119 which-build: last-successful
120 stable: true
121 filter: 'build/**'
122 target: 'deps/liburcu'
123 do-not-fingerprint: true
124 - copyartifact:
125 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
126 which-build: last-successful
127 stable: true
128 filter: 'build/**'
129 target: 'deps/babeltrace'
130 do-not-fingerprint: true
131 - copyartifact:
132 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
133 which-build: last-successful
134 stable: true
135 filter: 'build/**'
136 target: 'deps/lttng-ust'
137 do-not-fingerprint: true
138 - conditional-step:
139 condition-kind: regex-match
140 label: '$conf'
141 regex: (java-agent|python-agent)
142 on-evaluation-failure: run
143 steps:
144 - copyartifact:
145 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
146 which-build: last-successful
147 stable: true
148 filter: 'build/**'
149 target: 'deps/liburcu'
150 do-not-fingerprint: true
151 - copyartifact:
152 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
153 which-build: last-successful
154 stable: true
155 filter: 'build/**'
156 target: 'deps/babeltrace'
157 do-not-fingerprint: true
158 - copyartifact:
159 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
160 which-build: last-successful
161 stable: true
162 filter: 'build/**'
163 target: 'deps/lttng-ust'
164 do-not-fingerprint: true
165 - conditional-step:
166 condition-kind: regex-match
167 label: '$conf'
168 regex: (relayd-only)
169 on-evaluation-failure: run
170 steps:
171 - copyartifact:
172 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
173 which-build: last-successful
174 stable: true
175 filter: 'build/**'
176 target: 'deps/liburcu'
177 do-not-fingerprint: true
178 - copyartifact:
179 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
180 which-build: last-successful
181 stable: true
182 filter: 'build/**'
183 target: 'deps/babeltrace'
184 do-not-fingerprint: true
185 - shell:
186 !include-raw-escape: scripts/lttng-tools/build.sh
187
188
189 - job-template:
190 name: lttng-tools_{version}_{buildtype}
191 <<: *lttng-tools_version_buildtype_anchor
192 triggers:
193 - pollscm:
194 cron: "@hourly"
195 - reverse:
196 jobs: 'lttng-ust_{version}_{buildtype}'
197 result: 'success'
198
199 publishers:
200 - tap:
201 results: 'tap/**/*.tap'
202 failed-tests-mark-build-as-failure: true
203 todo-is-failure: false
204 - warnings:
205 console-log-parsers:
206 - 'GNU Make + GNU C Compiler (gcc)'
207 total-thresholds:
208 unstable:
209 total-all: 0
210 total-high: 0
211 total-normal: 0
212 total-low: 0
213 - archive:
214 artifacts: 'build/**'
215 allow-empty: false
216 - workspace-cleanup:
217 clean-if:
218 - failure: false
219 - ircbot:
220 strategy: new-failure-and-fixed
221 matrix-notifier: only-parent
222 channels:
223 - name: '#lttng'
224
225
226 - job-template:
227 name: dev_{user}_lttng-tools_{version}_{buildtype}
228 <<: *lttng-tools_version_buildtype_anchor
229
230 publishers:
231 - tap:
232 results: 'tap/**/*.tap'
233 failed-tests-mark-build-as-failure: true
234 todo-is-failure: false
235 - warnings:
236 console-log-parsers:
237 - 'GNU Make + GNU C Compiler (gcc)'
238 total-thresholds:
239 unstable:
240 total-all: 0
241 total-high: 0
242 total-normal: 0
243 total-low: 0
244 - workspace-cleanup:
245 clean-if:
246 - failure: false
247
248
249 - job-template:
250 name: lttng-tools_{version}_cppcheck
251 defaults: lttng-tools
252
253 triggers:
254 - pollscm:
255 cron: "@daily"
256
257 builders:
258 - shell: |
259 rm -f lttng-tools-cppcheck.xml
260 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
261
262 publishers:
263 - archive:
264 artifacts: 'lttng-tools-cppcheck.xml'
265 allow-empty: false
266 - cppcheck:
267 pattern: 'lttng-tools-cppcheck.xml'
268 - email:
269 recipients: 'ci-notification@lists.lttng.org'
270 notify-every-unstable-build: true
271 send-to-individuals: false
272
273 - job-template:
274 name: lttng-tools_{version}_scan-build
275 defaults: lttng-tools
276 node: 'x86-64'
277
278 triggers:
279 - pollscm:
280 cron: "@daily"
281
282 builders:
283 - copyartifact:
284 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
285 which-build: last-successful
286 stable: true
287 filter: 'build/**'
288 target: 'deps/liburcu'
289 do-not-fingerprint: true
290 - copyartifact:
291 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
292 which-build: last-successful
293 stable: true
294 filter: 'build/**'
295 target: 'deps/lttng-ust'
296 do-not-fingerprint: true
297 - shell:
298 !include-raw-escape: scripts/lttng-tools/scan-build.sh
299
300 publishers:
301 - html-publisher:
302 name: 'HTML Report'
303 dir: 'scan-build-archive/'
304 files: 'index.html'
305
306 - job-template:
307 name: lttng-tools_{version}_coverity
308 defaults: lttng-tools
309 node: 'x86-64'
310
311 triggers:
312 - pollscm:
313 cron: "@daily"
314
315 wrappers:
316 - workspace-cleanup
317 - timestamps
318 - ansicolor:
319 colormap: xterm
320 - credentials-binding:
321 - username-password-separated:
322 credential-id: lttng-tools_coverity_token
323 username: COVERITY_SCAN_PROJECT_NAME
324 password: COVERITY_SCAN_TOKEN
325
326 builders:
327 - copyartifact:
328 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
329 which-build: last-successful
330 stable: true
331 filter: 'build/**'
332 target: 'deps/liburcu'
333 do-not-fingerprint: true
334 - copyartifact:
335 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
336 which-build: last-successful
337 stable: true
338 filter: 'build/**'
339 target: 'deps/lttng-ust'
340 do-not-fingerprint: true
341 - shell:
342 !include-raw-escape: scripts/common/coverity.sh
343
344 publishers:
345 - workspace-cleanup
346
347 # TODO
348 - job-template:
349 name: lttng-tools_{version}_pylint
350 defaults: lttng-tools
351 node: 'x86-64'
352
353 scm: []
354
355 triggers:
356 - pollscm:
357 cron: "@daily"
358
359 builders:
360 - copyartifact:
361 project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent
362 which-build: last-successful
363 stable: true
364 filter: 'build/**'
365 target: 'deps/lttng-tools'
366 do-not-fingerprint: true
367 - shell:
368 !include-raw-escape: scripts/lttng-tools/pylint.sh
369
370 publishers:
371 - archive:
372 artifacts: 'pep8.out,pylint.out'
373 - violations:
374 pep8:
375 pattern: pep8.out
376 min: 10
377 max: 999
378 unstable: 999
379 pylint:
380 pattern: pylint.out
381 min: 10
382 max: 999
383 unstable: 999
384 - email:
385 recipients: 'ci-notification@lists.lttng.org'
386 notify-every-unstable-build: true
387 send-to-individuals: false
388
389
390 ## Project
391 - project:
392 name: lttng-tools
393 github_user: lttng
394 github_name: lttng-tools
395 version:
396 - stable-2.7
397 - stable-2.8
398 - master
399 jobs:
400 - 'lttng-tools_{version}_{buildtype}':
401 buildtype: build
402 version: master
403 ustversion: master
404 arch: !!python/tuple [x86-32, x86-64]
405 build: !!python/tuple [std, oot, dist]
406 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
407 urcuversion: !!python/tuple [master]
408 babelversion: !!python/tuple [master]
409 - 'lttng-tools_{version}_{buildtype}':
410 buildtype: portbuild
411 version: master
412 ustversion: master
413 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
414 build: !!python/tuple [std]
415 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
416 urcuversion: !!python/tuple [master]
417 babelversion: !!python/tuple [master]
418 - 'lttng-tools_{version}_{buildtype}':
419 buildtype: macosxbuild
420 version: master
421 ustversion: master
422 arch: !!python/tuple [macosx]
423 build: !!python/tuple [std]
424 conf: !!python/tuple [relayd-only]
425 urcuversion: !!python/tuple [master]
426 babelversion: !!python/tuple [master]
427 - 'lttng-tools_{version}_{buildtype}':
428 buildtype: solarisbuild
429 version: master
430 ustversion: master
431 arch: !!python/tuple [solaris10, solaris11]
432 build: !!python/tuple [std]
433 conf: !!python/tuple [relayd-only]
434 urcuversion: !!python/tuple [master]
435 babelversion: !!python/tuple [master]
436 - 'lttng-tools_{version}_{buildtype}':
437 buildtype: build
438 version: stable-2.8
439 ustversion: stable-2.8
440 arch: !!python/tuple [x86-32, x86-64]
441 build: !!python/tuple [std, oot, dist]
442 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
443 urcuversion: !!python/tuple [stable-0.9]
444 babelversion: !!python/tuple [stable-1.4]
445 - 'lttng-tools_{version}_{buildtype}':
446 buildtype: portbuild
447 version: stable-2.8
448 ustversion: stable-2.8
449 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
450 build: !!python/tuple [std]
451 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
452 urcuversion: !!python/tuple [stable-0.9]
453 babelversion: !!python/tuple [stable-1.4]
454 - 'lttng-tools_{version}_{buildtype}':
455 buildtype: solarisbuild
456 version: stable-2.8
457 ustversion: stable-2.8
458 arch: !!python/tuple [solaris10, solaris11]
459 build: !!python/tuple [std]
460 conf: !!python/tuple [relayd-only]
461 urcuversion: !!python/tuple [stable-0.9]
462 babelversion: !!python/tuple [stable-1.4]
463 - 'lttng-tools_{version}_{buildtype}':
464 buildtype: build
465 version: stable-2.7
466 ustversion: stable-2.7
467 arch: !!python/tuple [x86-32, x86-64]
468 build: !!python/tuple [std, oot, dist]
469 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
470 urcuversion: !!python/tuple [stable-0.9]
471 babelversion: !!python/tuple [stable-1.3]
472 - 'lttng-tools_{version}_{buildtype}':
473 buildtype: portbuild
474 version: stable-2.7
475 ustversion: stable-2.7
476 arch: !!python/tuple [armhf, arm64, powerpc]
477 build: !!python/tuple [std]
478 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
479 urcuversion: !!python/tuple [stable-0.9]
480 babelversion: !!python/tuple [stable-1.3]
481 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
482 user: jgalar
483 github_user: jgalar
484 github_name: lttng-tools
485 buildtype: build
486 version: master-staging
487 ustversion: master
488 arch: !!python/tuple [x86-32, x86-64]
489 build: !!python/tuple [std, oot, dist]
490 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
491 urcuversion: !!python/tuple [master]
492 babelversion: !!python/tuple [master]
493 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
494 user: jgalar
495 github_user: jgalar
496 github_name: lttng-tools
497 buildtype: build
498 version: stable-2.8-staging
499 ustversion: stable-2.8
500 arch: !!python/tuple [x86-32, x86-64]
501 build: !!python/tuple [std, oot, dist]
502 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
503 urcuversion: !!python/tuple [stable-0.9]
504 babelversion: !!python/tuple [stable-1.4]
505 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
506 user: jgalar
507 github_user: jgalar
508 github_name: lttng-tools
509 buildtype: build
510 version: stable-2.7-staging
511 ustversion: stable-2.7
512 arch: !!python/tuple [x86-32, x86-64]
513 build: !!python/tuple [std, oot, dist]
514 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
515 urcuversion: !!python/tuple [stable-0.9]
516 babelversion: !!python/tuple [stable-1.3]
517 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
518 user: jgalar
519 github_user: jgalar
520 github_name: lttng-tools
521 buildtype: portbuild
522 version: master-staging
523 ustversion: master
524 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
525 build: !!python/tuple [std]
526 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
527 urcuversion: !!python/tuple [master]
528 babelversion: !!python/tuple [master]
529 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
530 user: jgalar
531 github_user: jgalar
532 github_name: lttng-tools
533 buildtype: portbuild
534 version: stable-2.8-staging
535 ustversion: stable-2.8
536 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
537 build: !!python/tuple [std]
538 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
539 urcuversion: !!python/tuple [stable-0.9]
540 babelversion: !!python/tuple [stable-1.4]
541 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
542 user: jgalar
543 github_user: jgalar
544 github_name: lttng-tools
545 buildtype: portbuild
546 version: stable-2.7-staging
547 ustversion: stable-2.7
548 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
549 build: !!python/tuple [std]
550 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
551 urcuversion: !!python/tuple [stable-0.9]
552 babelversion: !!python/tuple [stable-1.3]
553 - 'lttng-tools_{version}_cppcheck'
554 - 'lttng-tools_{version}_scan-build':
555 version: master
556 urcuversion: master
557 ustversion: master
558 - 'lttng-tools_{version}_scan-build':
559 version: stable-2.8
560 urcuversion: stable-0.9
561 ustversion: stable-2.8
562 - 'lttng-tools_{version}_scan-build':
563 version: stable-2.7
564 urcuversion: stable-0.9
565 ustversion: stable-2.7
566 #- 'lttng-tools_{version}_pylint'
567 - 'lttng-tools_{version}_coverity':
568 version: master
569 urcuversion: master
570 ustversion: master
571
This page took 0.051061 seconds and 4 git commands to generate.