jjb: Add initial gerrit job for babeltrace
[lttng-ci.git] / jobs / babeltrace.yaml
1 - defaults:
2 name: babeltrace
3 description: |
4 The Babeltrace project provides trace read and write libraries, as well
5 as a trace converter. Plugins can be created for any trace format to
6 allow its conversion to/from another trace format.
7
8 The main format expected to be converted to/from is the Common Trace
9 Format (CTF). The default input format of the "babeltrace" command is
10 CTF, and its default output format is a human-readable text log. The
11 "babeltrace-log" command converts from a text log to a CTF trace.
12
13 <p>Job is managed by Jenkins Job Builder.</p>
14
15 project-type: freestyle
16
17 wrappers:
18 - ansicolor
19 - timeout:
20 timeout: 90
21 fail: true
22 type: absolute
23 - timestamps
24 - workspace-cleanup:
25 clean-if:
26 - failure: false
27
28 scm:
29 - git:
30 url: git://github.com/{github_user}/{github_name}.git
31 browser: githubweb
32 browser-url: https://github.com/{github_user}/{github_name}
33 branches:
34 - origin/{version}
35 basedir: src/babeltrace
36 skip-tag: true
37 git-tool: jgit
38
39 triggers:
40 - pollscm:
41 cron: "@hourly"
42
43 properties:
44 - inject:
45 properties-content: |
46 PROJECT_NAME=babeltrace
47 - build-discarder:
48 num-to-keep: 2
49 - github:
50 url: https://github.com/{github_user}/{github_name}
51
52
53 ## Anchors
54 - babeltrace_build_axes_defaults: &babeltrace_build_axes_defaults
55 name: 'babeltrace_build_axes_defaults'
56 project-type: matrix
57 node: 'master' # Applies only to matrix flyweight task
58 axes:
59 - axis:
60 type: slave
61 name: arch
62 values: '{obj:arch}'
63 - axis:
64 type: user-defined
65 name: conf
66 values: '{obj:conf}'
67 - axis:
68 type: user-defined
69 name: build
70 values: '{obj:build}'
71
72 - babeltrace_build_axes_cc: &babeltrace_build_axes_cc
73 name: 'babeltrace_build_axes_cc'
74 project-type: matrix
75 node: 'master' # Applies only to matrix flyweight task
76 axes:
77 - axis:
78 type: slave
79 name: arch
80 values: '{obj:arch}'
81 - axis:
82 type: user-defined
83 name: conf
84 values: '{obj:conf}'
85 - axis:
86 type: user-defined
87 name: build
88 values: '{obj:build}'
89 - axis:
90 type: user-defined
91 name: cc
92 values: '{obj:cc}'
93
94 - babeltrace_build_builders_defaults: &babeltrace_build_builders_defaults
95 name: 'babeltrace_build_builders_defaults'
96 builders:
97 - shell:
98 !include-raw-escape: scripts/babeltrace/build.sh
99
100 - babeltrace_build_builders_win: &babeltrace_build_builders_win
101 name: 'babeltrace_build_builders_win'
102 builders:
103 - conditional-step:
104 condition-kind: strings-match
105 on-evaluation-failure: run
106 condition-string1: '${{arch}}'
107 condition-string2: 'cygwin'
108 steps:
109 - shell:
110 !include-raw-escape:
111 - scripts/common/cygwin-shebang
112 - scripts/common/cygwin-prefix
113 - scripts/babeltrace/build.sh
114 - conditional-step:
115 condition-kind: strings-match
116 on-evaluation-failure: run
117 condition-string1: '${{arch}}'
118 condition-string2: 'cygwin64'
119 steps:
120 - shell:
121 !include-raw-escape:
122 - scripts/common/cygwin64-shebang
123 - scripts/common/cygwin-prefix
124 - scripts/babeltrace/build.sh
125 - conditional-step:
126 condition-kind: strings-match
127 on-evaluation-failure: run
128 condition-string1: '${{arch}}'
129 condition-string2: 'msys2-mingw32'
130 steps:
131 - inject:
132 properties-content: 'MSYSTEM=MINGW32'
133 - shell:
134 !include-raw-escape:
135 - scripts/common/msys2-shebang
136 - scripts/common/cygwin-prefix
137 - scripts/babeltrace/build.sh
138 - conditional-step:
139 condition-kind: strings-match
140 on-evaluation-failure: run
141 condition-string1: '${{arch}}'
142 condition-string2: 'msys2-mingw64'
143 steps:
144 - inject:
145 properties-content: 'MSYSTEM=MINGW64'
146 - shell:
147 !include-raw-escape:
148 - scripts/common/msys2-shebang
149 - scripts/common/cygwin-prefix
150 - scripts/babeltrace/build.sh
151
152
153 - babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev
154 name: 'babeltrace_build_publishers_dev'
155 publishers:
156 - tap:
157 results: 'tap/**/*.log'
158 failed-tests-mark-build-as-failure: true
159 todo-is-failure: false
160 - warnings:
161 console-log-parsers:
162 - 'GNU Make + GNU C Compiler (gcc)'
163 total-thresholds:
164 unstable:
165 total-all: 0
166 total-high: 0
167 total-normal: 0
168 total-low: 0
169 - email-ext:
170 recipients: '{obj:email_to}'
171 always: false
172 unstable: false
173 first-failure: true
174 first-unstable: true
175 not-built: false
176 aborted: false
177 regression: false
178 failure: false
179 second-failure: false
180 improvement: false
181 still-failing: false
182 success: false
183 fixed: false
184 fixed-unhealthy: true
185 still-unstable: false
186 pre-build: false
187 matrix-trigger: only-parent
188 send-to:
189 - recipients
190
191
192 - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod
193 name: 'babeltrace_build_publishers_prod'
194 publishers:
195 - tap:
196 results: 'tap/**/*.log'
197 failed-tests-mark-build-as-failure: true
198 todo-is-failure: false
199 - warnings:
200 console-log-parsers:
201 - 'GNU Make + GNU C Compiler (gcc)'
202 total-thresholds:
203 unstable:
204 total-all: 0
205 total-high: 0
206 total-normal: 0
207 total-low: 0
208 - archive:
209 artifacts: 'build/**'
210 allow-empty: false
211 - email-ext:
212 recipients: '{obj:email_to}'
213 reply-to: ci-notification@lists.lttng.org
214 always: false
215 unstable: false
216 first-failure: true
217 first-unstable: true
218 not-built: false
219 aborted: false
220 regression: false
221 failure: false
222 second-failure: false
223 improvement: false
224 still-failing: false
225 success: false
226 fixed: false
227 fixed-unhealthy: true
228 still-unstable: false
229 pre-build: false
230 matrix-trigger: only-parent
231 send-to:
232 - recipients
233
234 - babeltrace_build_publishers_gerrit: &babeltrace_build_publishers_gerrit
235 name: 'babeltrace_build_publishers_gerrit'
236 publishers:
237 - tap:
238 results: 'tap/**/*.log'
239 failed-tests-mark-build-as-failure: true
240 todo-is-failure: false
241 - warnings:
242 console-log-parsers:
243 - 'GNU Make + GNU C Compiler (gcc)'
244 total-thresholds:
245 unstable:
246 total-all: 0
247 total-high: 0
248 total-normal: 0
249 total-low: 0
250 - archive:
251 artifacts: 'build/**'
252 allow-empty: false
253
254
255 ## Templates
256
257 - job-template:
258 name: babeltrace_{version}_{buildtype}
259 defaults: babeltrace
260
261 <<: *babeltrace_build_axes_defaults
262 <<: *babeltrace_build_builders_defaults
263 <<: *babeltrace_build_publishers_prod
264
265 - job-template:
266 name: babeltrace_{version}_{cctype}
267 defaults: babeltrace
268
269 <<: *babeltrace_build_axes_cc
270 <<: *babeltrace_build_builders_defaults
271 <<: *babeltrace_build_publishers_prod
272
273 - job-template:
274 name: babeltrace_{version}_winbuild
275 defaults: babeltrace
276
277 <<: *babeltrace_build_axes_defaults
278 <<: *babeltrace_build_builders_win
279 <<: *babeltrace_build_publishers_prod
280
281 - job-template:
282 name: dev_{user}_babeltrace_{version}_{buildtype}
283 defaults: babeltrace
284
285 <<: *babeltrace_build_axes_defaults
286 <<: *babeltrace_build_builders_defaults
287 <<: *babeltrace_build_publishers_dev
288
289 - job-template:
290 name: dev_gerrit_babeltrace_{buildtype}
291 defaults: babeltrace
292 concurrent: true
293
294 scm:
295 - git:
296 url: https://review.lttng.org/babeltrace
297 refspec: 'refs/changes/*:refs/changes/*'
298 branches:
299 - '$GERRIT_REFSPEC'
300 basedir: src/babeltrace
301 skip-tag: true
302
303 triggers:
304 - gerrit:
305 trigger-on:
306 - comment-added-event:
307 approval-category: 'CI-Build'
308 approval-value: 1
309 projects:
310 - project-compare-type: 'PLAIN'
311 project-pattern: 'babeltrace'
312 branches:
313 - branch-compare-type: 'ANT'
314 branch-pattern: '**'
315 trigger-for-unreviewed-patches: true
316
317 <<: *babeltrace_build_axes_defaults
318 <<: *babeltrace_build_builders_defaults
319 <<: *babeltrace_build_publishers_gerrit
320
321 properties:
322 - inject:
323 properties-content: |
324 PROJECT_NAME=babeltrace
325 - build-discarder:
326 days-to-keep: 2
327 - github:
328 url: https://github.com/{github_user}/{github_name}
329
330 - job-template:
331 name: babeltrace_{version}_cppcheck
332 defaults: babeltrace
333
334 triggers:
335 - pollscm:
336 cron: "@daily"
337
338 builders:
339 - shell: |
340 rm -f cppcheck-result.xml
341 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
342
343 publishers:
344 - archive:
345 artifacts: 'cppcheck-result.xml'
346 allow-empty: false
347 - cppcheck:
348 pattern: 'cppcheck-result.xml'
349
350 - job-template:
351 name: babeltrace_{version}_scan-build
352 defaults: babeltrace
353 node: 'amd64'
354
355 triggers:
356 - pollscm:
357 cron: "@daily"
358
359 builders:
360 - shell:
361 !include-raw-escape: scripts/common/scan-build.sh
362
363 publishers:
364 - html-publisher:
365 name: 'HTML Report'
366 dir: 'scan-build-archive/'
367 files: 'index.html'
368
369 - job-template:
370 name: babeltrace_{version}_coverity
371 defaults: babeltrace
372 node: 'amd64'
373
374 triggers:
375 - pollscm:
376 cron: "@daily"
377
378 wrappers:
379 - workspace-cleanup
380 - timestamps
381 - ansicolor:
382 colormap: xterm
383 - credentials-binding:
384 - username-password-separated:
385 credential-id: babeltrace_coverity_token
386 username: COVERITY_SCAN_PROJECT_NAME
387 password: COVERITY_SCAN_TOKEN
388 builders:
389 - shell:
390 !include-raw-escape: scripts/common/coverity.sh
391
392 publishers:
393 - workspace-cleanup
394 - archive:
395 artifacts: 'analysis-results.tgz,cov-int/**'
396 allow-empty: false
397
398 - job-template:
399 name: babeltrace_{version}_pylint
400 defaults: babeltrace
401 node: 'amd64'
402
403 scm: []
404
405 triggers:
406 - pollscm:
407 cron: "@daily"
408
409 builders:
410 - copyartifact:
411 project: babeltrace_{version}_build/arch=amd64,build=std,conf=python-bindings
412 which-build: last-successful
413 stable: false
414 filter: 'build/**'
415 target: 'deps/babeltrace'
416 - shell:
417 !include-raw-escape: scripts/babeltrace/pylint.sh
418
419 publishers:
420 - archive:
421 artifacts: 'pep8.out,pylint.out'
422 - violations:
423 pep8:
424 pattern: pep8.out
425 min: 10
426 max: 999
427 unstable: 999
428 pylint:
429 pattern: pylint.out
430 min: 10
431 max: 999
432 unstable: 999
433 - email-ext:
434 recipients: '{obj:email_to}'
435 reply-to: ci-notification@lists.lttng.org
436 always: false
437 unstable: false
438 first-failure: true
439 first-unstable: true
440 not-built: false
441 aborted: false
442 regression: false
443 failure: false
444 second-failure: false
445 improvement: false
446 still-failing: false
447 success: false
448 fixed: false
449 fixed-unhealthy: true
450 still-unstable: false
451 pre-build: false
452 matrix-trigger: only-parent
453 send-to:
454 - recipients
455
456 # Use - in version number since yaml anchor do not support dot
457 - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor
458 name: 'babeltrace_version_glib_anchor'
459 defaults: babeltrace
460 node: 'amd64'
461
462 builders:
463 - inject:
464 properties-content: |
465 LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib
466 PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig
467 arch=amd64
468 conf=std
469 build=std
470 - shell: |
471 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz
472 tar xvf glib-2.22.5.tar.gz
473 cd glib-2.22.5
474 mkdir BUILD_RESULT
475 ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT
476 make -j `nproc`
477 make install
478
479 - shell:
480 !include-raw-escape: scripts/babeltrace/build.sh
481
482 - job-template:
483 name: babeltrace_{version}_glib-2.22.5
484 triggers:
485 - pollscm:
486 cron: "@daily"
487 <<: *babeltrace_version_glib-2-22-5_anchor
488 publishers:
489 - email-ext:
490 recipients: '{obj:email_to}'
491 reply-to: ci-notification@lists.lttng.org
492 always: false
493 unstable: false
494 first-failure: true
495 first-unstable: true
496 not-built: false
497 aborted: false
498 regression: false
499 failure: false
500 second-failure: false
501 improvement: false
502 still-failing: false
503 success: false
504 fixed: false
505 fixed-unhealthy: true
506 still-unstable: false
507 pre-build: false
508 matrix-trigger: only-parent
509 send-to:
510 - recipients
511
512 - job-template:
513 name: dev_{user}_babeltrace_{version}_glib-2.22.5
514 <<: *babeltrace_version_glib-2-22-5_anchor
515
516 publishers:
517 - email-ext:
518 recipients: '{obj:email_to}'
519 reply-to: ci-notification@lists.lttng.org
520 always: false
521 unstable: false
522 first-failure: true
523 first-unstable: true
524 not-built: false
525 aborted: false
526 regression: false
527 failure: false
528 second-failure: false
529 improvement: false
530 still-failing: false
531 success: false
532 fixed: false
533 fixed-unhealthy: true
534 still-unstable: false
535 pre-build: false
536 matrix-trigger: only-parent
537 send-to:
538 - recipients
539
540 ## Project
541 - project:
542 name: babeltrace
543 github_user: efficios
544 github_name: babeltrace
545 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
546 version:
547 - stable-1.5
548 - stable-2.0
549 - master
550 jobs:
551 - 'babeltrace_{version}_{buildtype}':
552 buildtype: build
553 arch: !!python/tuple [amd64]
554 build: !!python/tuple [std, oot, dist]
555 conf: !!python/tuple [std, static, python-bindings]
556 - 'babeltrace_{version}_{buildtype}':
557 buildtype: portbuild
558 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
559 build: !!python/tuple [std]
560 conf: !!python/tuple [std, static, python-bindings]
561 - 'babeltrace_{version}_{buildtype}':
562 buildtype: slesbuild
563 arch: !!python/tuple [sles12sp2]
564 build: !!python/tuple [std]
565 conf: !!python/tuple [std]
566 version: # // support 1.3 on SLES12
567 - stable-1.3
568 - stable-1.5
569 - stable-2.0
570 - master
571 - 'babeltrace_{version}_{buildtype}':
572 buildtype: solarisbuild
573 arch: !!python/tuple [sol10-i386, sol11-i386]
574 build: !!python/tuple [std]
575 conf: !!python/tuple [std, static]
576 - 'babeltrace_{version}_{buildtype}':
577 buildtype: macosxbuild
578 arch: !!python/tuple [macosx]
579 build: !!python/tuple [std]
580 conf: !!python/tuple [std]
581 version: # macOS support was introduced in 1.4
582 - stable-1.5
583 - stable-2.0
584 - master
585 - 'babeltrace_{version}_{cctype}':
586 cctype: clangbuild
587 arch: !!python/tuple [amd64]
588 build: !!python/tuple [std]
589 conf: !!python/tuple [std, static]
590 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
591 - 'babeltrace_{version}_winbuild':
592 arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64]
593 build: !!python/tuple [std]
594 conf: !!python/tuple [std]
595 version: # Mingw support was introduced in 2.0
596 - stable-2.0
597 - master
598 - 'babeltrace_{version}_winbuild':
599 arch: !!python/tuple [cygwin, cygwin64]
600 build: !!python/tuple [std]
601 conf: !!python/tuple [std]
602 version: # Cygwin support was introduced in 1.5
603 - stable-1.5
604 - 'babeltrace_{version}_cppcheck'
605 - 'babeltrace_{version}_scan-build'
606 - 'babeltrace_{version}_pylint'
607 - 'babeltrace_{version}_coverity':
608 version: master
609 - 'babeltrace_{version}_glib-2.22.5':
610 version: master
611
612
613 - project:
614 name: babeltrace-jgalar-staging
615 user: jgalar
616 github_user: jgalar
617 github_name: babeltrace
618 email_to: "jgalar@efficios.com"
619 version:
620 - stable-1.3-staging
621 - stable-1.5-staging
622 - stable-2.0-staging
623 - master-staging
624 jobs:
625 - 'dev_{user}_babeltrace_{version}_glib-2.22.5':
626 version:
627 - master-staging
628 - 'dev_{user}_babeltrace_{version}_{buildtype}':
629 buildtype: build
630 arch: !!python/tuple [amd64]
631 build: !!python/tuple [std, oot, dist]
632 conf: !!python/tuple [std, static, python-bindings]
633 - 'dev_{user}_babeltrace_{version}_{buildtype}':
634 buildtype: macosxbuild
635 version: # macOS support was introduced in 1.4
636 - stable-1.5-staging
637 - stable-2.0-staging
638 - master-staging
639 arch: !!python/tuple [macosx]
640 build: !!python/tuple [std]
641 conf: !!python/tuple [std]
642
643
644 - project:
645 name: gerrit-babeltrace
646 github_user: efficios
647 github_name: babeltrace
648 jobs:
649 - 'dev_gerrit_babeltrace_{buildtype}':
650 buildtype: build
651 #arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
652 arch: !!python/tuple [amd64, i386]
653 build: !!python/tuple [std]
654 conf: !!python/tuple [std, python-bindings]
This page took 0.042933 seconds and 5 git commands to generate.