travis: fix typo in travis.yml
[lttng-ci.git] / jobs / lttng-tools.yaml
CommitLineData
b4005bbf
MJ
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
b4005bbf
MJ
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
a0433b63 20 url: git://github.com/{github_user}/{github_name}.git
b4005bbf 21 browser: githubweb
51ca880a 22 browser-url: https://github.com/{github_user}/{github_name}
b4005bbf
MJ
23 branches:
24 - origin/{version}
b6e62a6a 25 skip-tag: true
b4005bbf
MJ
26
27 triggers:
28 - pollscm:
29 cron: "@hourly"
30
31 properties:
32 - github:
51ca880a 33 url: https://github.com/{github_user}/{github_name}
edf72710 34 - build-discarder:
a3636f24
JR
35 num-to-keep: 20
36 artifact-num-to-keep: 2
b4005bbf
MJ
37
38
39## Templates
7671741c
MJ
40
41- lttng-tools_version_buildtype_anchor: &lttng-tools_version_buildtype_anchor
42 name: 'lttng-tools_version_buildtype_anchor'
b4005bbf
MJ
43 defaults: lttng-tools
44
45 project-type: matrix
ca8c6144 46 node: 'master' # Applies only to matrix flyweight task
b4005bbf
MJ
47 axes:
48 - axis:
49 type: slave
50 name: arch
51 values: '{obj:arch}'
52 - axis:
53 type: user-defined
54 name: conf
95654431 55 values: '{obj:conf}'
b4005bbf
MJ
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
95654431 69 properties:
edf72710
MJ
70 - github:
71 url: https://github.com/{github_user}/{github_name}
72 - build-discarder:
a3636f24
JR
73 num-to-keep: 20
74 artifact-num-to-keep: 2
95654431
MJ
75 - throttle:
76 max-per-node: 1
77 option: 'category'
78 categories:
79 - 'lttng-tools'
035ee855
MJ
80 matrix-builds: false
81 matrix-configs: true
edf72710 82
b4005bbf
MJ
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:
aa27566e 105 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
b4005bbf
MJ
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'
95654431 114 regex: (python-bindings|no-ust)
b4005bbf
MJ
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:
aa27566e 132 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
b4005bbf
MJ
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'
95654431 141 regex: (java-agent|python-agent)
b4005bbf
MJ
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:
aa27566e 159 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
b4005bbf
MJ
160 which-build: last-successful
161 stable: true
162 filter: 'build/**'
163 target: 'deps/lttng-ust'
164 do-not-fingerprint: true
b6e62a6a
MJ
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
b4005bbf 185 - shell:
ef63064f 186 !include-raw-escape: scripts/lttng-tools/build.sh
b4005bbf 187
7671741c
MJ
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
b4005bbf
MJ
199 publishers:
200 - tap:
201 results: 'tap/**/*.tap'
202 failed-tests-mark-build-as-failure: true
95654431 203 todo-is-failure: false
b4005bbf
MJ
204 - warnings:
205 console-log-parsers:
206 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
207 total-thresholds:
208 unstable:
d2c76ee5
MJ
209 total-all: 0
210 total-high: 0
211 total-normal: 0
212 total-low: 0
b4005bbf
MJ
213 - archive:
214 artifacts: 'build/**'
215 allow-empty: false
2cc29ca7
JR
216 - workspace-cleanup:
217 clean-if:
218 - failure: false
95654431
MJ
219 - ircbot:
220 strategy: new-failure-and-fixed
221 matrix-notifier: only-parent
222 channels:
223 - name: '#lttng'
b4005bbf
MJ
224
225
7671741c
MJ
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
2cc29ca7
JR
244 - workspace-cleanup:
245 clean-if:
246 - failure: false
7671741c
MJ
247
248
b4005bbf
MJ
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:
aa27566e 291 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
b4005bbf
MJ
292 which-build: last-successful
293 stable: true
294 filter: 'build/**'
295 target: 'deps/lttng-ust'
296 do-not-fingerprint: true
297 - shell:
ef63064f 298 !include-raw-escape: scripts/lttng-tools/scan-build.sh
b4005bbf
MJ
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:
aa27566e 328 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
b4005bbf
MJ
329 which-build: last-successful
330 stable: true
331 filter: 'build/**'
332 target: 'deps/liburcu'
333 do-not-fingerprint: true
334 - copyartifact:
aa27566e 335 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
b4005bbf
MJ
336 which-build: last-successful
337 stable: true
338 filter: 'build/**'
339 target: 'deps/lttng-ust'
340 do-not-fingerprint: true
341 - shell:
ef63064f 342 !include-raw-escape: scripts/common/coverity.sh
b4005bbf
MJ
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:
ef63064f 368 !include-raw-escape: scripts/lttng-tools/pylint.sh
b4005bbf
MJ
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
51ca880a
MJ
393 github_user: lttng
394 github_name: lttng-tools
b4005bbf 395 version:
9beacf91
MJ
396 - stable-2.7
397 - stable-2.8
398 - master
b4005bbf
MJ
399 jobs:
400 - 'lttng-tools_{version}_{buildtype}':
401 buildtype: build
402 version: master
aa27566e 403 ustversion: master
b4005bbf
MJ
404 arch: !!python/tuple [x86-32, x86-64]
405 build: !!python/tuple [std, oot, dist]
95654431 406 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
407 urcuversion: !!python/tuple [master]
408 babelversion: !!python/tuple [master]
409 - 'lttng-tools_{version}_{buildtype}':
410 buildtype: portbuild
411 version: master
aa27566e 412 ustversion: master
027ddec8 413 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
b4005bbf 414 build: !!python/tuple [std]
95654431 415 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
416 urcuversion: !!python/tuple [master]
417 babelversion: !!python/tuple [master]
b6e62a6a
MJ
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]
20f81bbb
JR
436 - 'lttng-tools_{version}_{buildtype}':
437 buildtype: build
438 version: stable-2.8
aa27566e 439 ustversion: stable-2.8
20f81bbb
JR
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]
ecf9997a 444 babelversion: !!python/tuple [stable-1.4]
20f81bbb
JR
445 - 'lttng-tools_{version}_{buildtype}':
446 buildtype: portbuild
447 version: stable-2.8
aa27566e 448 ustversion: stable-2.8
bf4d352d 449 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
20f81bbb
JR
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]
ecf9997a 453 babelversion: !!python/tuple [stable-1.4]
b6e62a6a
MJ
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]
b4005bbf
MJ
463 - 'lttng-tools_{version}_{buildtype}':
464 buildtype: build
465 version: stable-2.7
aa27566e 466 ustversion: stable-2.7
b4005bbf
MJ
467 arch: !!python/tuple [x86-32, x86-64]
468 build: !!python/tuple [std, oot, dist]
95654431 469 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
470 urcuversion: !!python/tuple [stable-0.9]
471 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
472 - 'lttng-tools_{version}_{buildtype}':
473 buildtype: portbuild
474 version: stable-2.7
aa27566e 475 ustversion: stable-2.7
027ddec8 476 arch: !!python/tuple [armhf, arm64, powerpc]
b4005bbf 477 build: !!python/tuple [std]
95654431 478 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
479 urcuversion: !!python/tuple [stable-0.9]
480 babelversion: !!python/tuple [stable-1.3]
7671741c
MJ
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
aa27566e 487 ustversion: master
7671741c
MJ
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
aa27566e 499 ustversion: stable-2.8
7671741c
MJ
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
aa27566e 511 ustversion: stable-2.7
7671741c
MJ
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]
6e5203a5
JR
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]
b4005bbf
MJ
553 - 'lttng-tools_{version}_cppcheck'
554 - 'lttng-tools_{version}_scan-build':
555 version: master
556 urcuversion: master
aa27566e 557 ustversion: master
20f81bbb
JR
558 - 'lttng-tools_{version}_scan-build':
559 version: stable-2.8
560 urcuversion: stable-0.9
aa27566e 561 ustversion: stable-2.8
b4005bbf
MJ
562 - 'lttng-tools_{version}_scan-build':
563 version: stable-2.7
0b475830 564 urcuversion: stable-0.9
aa27566e 565 ustversion: stable-2.7
b4005bbf
MJ
566 #- 'lttng-tools_{version}_pylint'
567 - 'lttng-tools_{version}_coverity':
568 version: master
aa27566e
MJ
569 urcuversion: master
570 ustversion: master
b4005bbf 571
This page took 0.047681 seconds and 4 git commands to generate.