Commit | Line | Data |
---|---|---|
890bff23 MJ |
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 | ||
890bff23 | 17 | wrappers: |
b9c55ae7 MJ |
18 | - ansicolor |
19 | - timeout: | |
20 | timeout: 90 | |
21 | fail: true | |
22 | type: absolute | |
890bff23 | 23 | - timestamps |
b9c55ae7 MJ |
24 | - workspace-cleanup: |
25 | clean-if: | |
26 | - failure: false | |
890bff23 MJ |
27 | |
28 | scm: | |
29 | - git: | |
4f827afb | 30 | url: git://github.com/{github_user}/{github_name}.git |
890bff23 | 31 | browser: githubweb |
4f827afb | 32 | browser-url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
33 | branches: |
34 | - origin/{version} | |
e6be9fb0 | 35 | basedir: src/babeltrace |
944a6c86 | 36 | skip-tag: true |
b9c55ae7 | 37 | git-tool: jgit |
890bff23 MJ |
38 | |
39 | triggers: | |
6cf22a3a MJ |
40 | - pollscm: |
41 | cron: "@hourly" | |
890bff23 MJ |
42 | |
43 | properties: | |
69f05d59 MJ |
44 | - inject: |
45 | properties-content: | | |
46 | PROJECT_NAME=babeltrace | |
edf72710 MJ |
47 | - build-discarder: |
48 | num-to-keep: 2 | |
890bff23 | 49 | - github: |
4f827afb | 50 | url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
51 | |
52 | ||
b9c55ae7 MJ |
53 | ## Anchors |
54 | - babeltrace_build_axes_defaults: &babeltrace_build_axes_defaults | |
55 | name: 'babeltrace_build_axes_defaults' | |
890bff23 | 56 | project-type: matrix |
ca8c6144 | 57 | node: 'master' # Applies only to matrix flyweight task |
890bff23 MJ |
58 | axes: |
59 | - axis: | |
60 | type: slave | |
61 | name: arch | |
62 | values: '{obj:arch}' | |
63 | - axis: | |
64 | type: user-defined | |
65 | name: conf | |
87e41bca | 66 | values: '{obj:conf}' |
890bff23 MJ |
67 | - axis: |
68 | type: user-defined | |
69 | name: build | |
9d0846f3 | 70 | values: '{obj:build}' |
890bff23 | 71 | |
b9c55ae7 MJ |
72 | - babeltrace_build_builders_defaults: &babeltrace_build_builders_defaults |
73 | name: 'babeltrace_build_builders_defaults' | |
890bff23 MJ |
74 | builders: |
75 | - shell: | |
ef63064f | 76 | !include-raw-escape: scripts/babeltrace/build.sh |
890bff23 | 77 | |
b9c55ae7 MJ |
78 | - babeltrace_build_builders_win: &babeltrace_build_builders_win |
79 | name: 'babeltrace_build_builders_win' | |
80 | builders: | |
81 | - conditional-step: | |
82 | condition-kind: strings-match | |
83 | on-evaluation-failure: run | |
84 | condition-string1: '${{arch}}' | |
85 | condition-string2: 'cygwin' | |
86 | steps: | |
87 | - shell: | |
88 | !include-raw-escape: | |
89 | - scripts/common/cygwin-shebang | |
90 | - scripts/common/cygwin-prefix | |
91 | - scripts/babeltrace/build.sh | |
92 | - conditional-step: | |
93 | condition-kind: strings-match | |
94 | on-evaluation-failure: run | |
95 | condition-string1: '${{arch}}' | |
96 | condition-string2: 'cygwin64' | |
97 | steps: | |
98 | - shell: | |
99 | !include-raw-escape: | |
100 | - scripts/common/cygwin64-shebang | |
101 | - scripts/common/cygwin-prefix | |
102 | - scripts/babeltrace/build.sh | |
103 | - conditional-step: | |
104 | condition-kind: strings-match | |
105 | on-evaluation-failure: run | |
106 | condition-string1: '${{arch}}' | |
8f541678 | 107 | condition-string2: 'msys2-mingw32' |
b9c55ae7 MJ |
108 | steps: |
109 | - inject: | |
110 | properties-content: 'MSYSTEM=MINGW32' | |
111 | - shell: | |
112 | !include-raw-escape: | |
8f541678 | 113 | - scripts/common/msys2-shebang |
b9c55ae7 MJ |
114 | - scripts/common/cygwin-prefix |
115 | - scripts/babeltrace/build.sh | |
116 | - conditional-step: | |
117 | condition-kind: strings-match | |
118 | on-evaluation-failure: run | |
119 | condition-string1: '${{arch}}' | |
8f541678 | 120 | condition-string2: 'msys2-mingw64' |
b9c55ae7 MJ |
121 | steps: |
122 | - inject: | |
123 | properties-content: 'MSYSTEM=MINGW64' | |
124 | - shell: | |
125 | !include-raw-escape: | |
8f541678 | 126 | - scripts/common/msys2-shebang |
b9c55ae7 MJ |
127 | - scripts/common/cygwin-prefix |
128 | - scripts/babeltrace/build.sh | |
129 | ||
130 | ||
499a96d0 JR |
131 | - babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev |
132 | name: 'babeltrace_build_publishers_dev' | |
890bff23 MJ |
133 | publishers: |
134 | - tap: | |
e6be9fb0 | 135 | results: 'tap/**/*.log' |
890bff23 | 136 | failed-tests-mark-build-as-failure: true |
95654431 | 137 | todo-is-failure: false |
890bff23 MJ |
138 | - warnings: |
139 | console-log-parsers: | |
140 | - 'GNU Make + GNU C Compiler (gcc)' | |
141 | total-thresholds: | |
51ca880a | 142 | unstable: |
d2c76ee5 MJ |
143 | total-all: 0 |
144 | total-high: 0 | |
145 | total-normal: 0 | |
146 | total-low: 0 | |
499a96d0 JR |
147 | - email-ext: |
148 | recipients: '{obj:email_to}' | |
149 | always: false | |
150 | unstable: false | |
151 | first-failure: true | |
152 | first-unstable: true | |
153 | not-built: false | |
154 | aborted: false | |
155 | regression: false | |
156 | failure: false | |
157 | second-failure: false | |
158 | improvement: false | |
159 | still-failing: false | |
160 | success: false | |
161 | fixed: false | |
162 | fixed-unhealthy: true | |
163 | still-unstable: false | |
164 | pre-build: false | |
165 | matrix-trigger: only-parent | |
166 | send-to: | |
167 | - recipients | |
168 | ||
b9c55ae7 MJ |
169 | |
170 | - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod | |
171 | name: 'babeltrace_build_publishers_prod' | |
172 | publishers: | |
0efb2471 JR |
173 | - tap: |
174 | results: 'tap/**/*.log' | |
175 | failed-tests-mark-build-as-failure: true | |
176 | todo-is-failure: false | |
177 | - warnings: | |
178 | console-log-parsers: | |
179 | - 'GNU Make + GNU C Compiler (gcc)' | |
180 | total-thresholds: | |
181 | unstable: | |
182 | total-all: 0 | |
183 | total-high: 0 | |
184 | total-normal: 0 | |
185 | total-low: 0 | |
890bff23 MJ |
186 | - archive: |
187 | artifacts: 'build/**' | |
188 | allow-empty: false | |
499a96d0 JR |
189 | - email-ext: |
190 | recipients: '{obj:email_to}' | |
191 | reply-to: ci-notification@lists.lttng.org | |
192 | always: false | |
193 | unstable: false | |
194 | first-failure: true | |
195 | first-unstable: true | |
196 | not-built: false | |
197 | aborted: false | |
198 | regression: false | |
199 | failure: false | |
200 | second-failure: false | |
201 | improvement: false | |
202 | still-failing: false | |
203 | success: false | |
204 | fixed: false | |
205 | fixed-unhealthy: true | |
206 | still-unstable: false | |
207 | pre-build: false | |
208 | matrix-trigger: only-parent | |
209 | send-to: | |
210 | - recipients | |
890bff23 | 211 | |
b9c55ae7 MJ |
212 | ## Templates |
213 | ||
214 | - job-template: | |
215 | name: babeltrace_{version}_{buildtype} | |
216 | defaults: babeltrace | |
217 | ||
218 | <<: *babeltrace_build_axes_defaults | |
219 | <<: *babeltrace_build_builders_defaults | |
b9c55ae7 MJ |
220 | <<: *babeltrace_build_publishers_prod |
221 | ||
222 | - job-template: | |
223 | name: babeltrace_{version}_winbuild | |
224 | defaults: babeltrace | |
225 | ||
226 | <<: *babeltrace_build_axes_defaults | |
227 | <<: *babeltrace_build_builders_win | |
b9c55ae7 MJ |
228 | <<: *babeltrace_build_publishers_prod |
229 | ||
4f827afb JR |
230 | - job-template: |
231 | name: dev_{user}_babeltrace_{version}_{buildtype} | |
b9c55ae7 MJ |
232 | defaults: babeltrace |
233 | ||
234 | <<: *babeltrace_build_axes_defaults | |
235 | <<: *babeltrace_build_builders_defaults | |
499a96d0 | 236 | <<: *babeltrace_build_publishers_dev |
4f827afb | 237 | |
890bff23 MJ |
238 | - job-template: |
239 | name: babeltrace_{version}_cppcheck | |
240 | defaults: babeltrace | |
241 | ||
242 | triggers: | |
6cf22a3a MJ |
243 | - pollscm: |
244 | cron: "@daily" | |
890bff23 MJ |
245 | |
246 | builders: | |
247 | - shell: | | |
5279b0f2 MJ |
248 | rm -f cppcheck-result.xml |
249 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml | |
890bff23 MJ |
250 | |
251 | publishers: | |
252 | - archive: | |
5279b0f2 | 253 | artifacts: 'cppcheck-result.xml' |
890bff23 | 254 | allow-empty: false |
890bff23 | 255 | - cppcheck: |
5279b0f2 | 256 | pattern: 'cppcheck-result.xml' |
890bff23 MJ |
257 | |
258 | - job-template: | |
259 | name: babeltrace_{version}_scan-build | |
260 | defaults: babeltrace | |
261 | node: 'x86-64' | |
262 | ||
263 | triggers: | |
6cf22a3a MJ |
264 | - pollscm: |
265 | cron: "@daily" | |
890bff23 MJ |
266 | |
267 | builders: | |
268 | - shell: | |
69f05d59 | 269 | !include-raw-escape: scripts/common/scan-build.sh |
890bff23 MJ |
270 | |
271 | publishers: | |
272 | - html-publisher: | |
273 | name: 'HTML Report' | |
274 | dir: 'scan-build-archive/' | |
275 | files: 'index.html' | |
276 | ||
6cf22a3a MJ |
277 | - job-template: |
278 | name: babeltrace_{version}_coverity | |
279 | defaults: babeltrace | |
280 | node: 'x86-64' | |
281 | ||
282 | triggers: | |
283 | - pollscm: | |
284 | cron: "@daily" | |
285 | ||
286 | wrappers: | |
287 | - workspace-cleanup | |
288 | - timestamps | |
289 | - ansicolor: | |
290 | colormap: xterm | |
291 | - credentials-binding: | |
292 | - username-password-separated: | |
293 | credential-id: babeltrace_coverity_token | |
294 | username: COVERITY_SCAN_PROJECT_NAME | |
295 | password: COVERITY_SCAN_TOKEN | |
296 | builders: | |
297 | - shell: | |
ef63064f | 298 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
299 | |
300 | publishers: | |
301 | - workspace-cleanup | |
73778992 MJ |
302 | - archive: |
303 | artifacts: 'analysis-results.tgz,cov-int/**' | |
304 | allow-empty: false | |
890bff23 MJ |
305 | |
306 | - job-template: | |
307 | name: babeltrace_{version}_pylint | |
308 | defaults: babeltrace | |
309 | node: 'x86-64' | |
310 | ||
311 | scm: [] | |
312 | ||
313 | triggers: | |
6cf22a3a MJ |
314 | - pollscm: |
315 | cron: "@daily" | |
890bff23 MJ |
316 | |
317 | builders: | |
318 | - copyartifact: | |
ce1e1df3 | 319 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
890bff23 | 320 | which-build: last-successful |
3522265a | 321 | stable: false |
890bff23 | 322 | filter: 'build/**' |
b0afcb47 | 323 | target: 'deps/babeltrace' |
890bff23 | 324 | - shell: |
ef63064f | 325 | !include-raw-escape: scripts/babeltrace/pylint.sh |
890bff23 MJ |
326 | |
327 | publishers: | |
328 | - archive: | |
329 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
330 | - violations: |
331 | pep8: | |
332 | pattern: pep8.out | |
333 | min: 10 | |
334 | max: 999 | |
335 | unstable: 999 | |
336 | pylint: | |
337 | pattern: pylint.out | |
338 | min: 10 | |
339 | max: 999 | |
340 | unstable: 999 | |
499a96d0 JR |
341 | - email-ext: |
342 | recipients: '{obj:email_to}' | |
343 | reply-to: ci-notification@lists.lttng.org | |
344 | always: false | |
345 | unstable: false | |
346 | first-failure: true | |
347 | first-unstable: true | |
348 | not-built: false | |
349 | aborted: false | |
350 | regression: false | |
351 | failure: false | |
352 | second-failure: false | |
353 | improvement: false | |
354 | still-failing: false | |
355 | success: false | |
356 | fixed: false | |
357 | fixed-unhealthy: true | |
358 | still-unstable: false | |
359 | pre-build: false | |
360 | matrix-trigger: only-parent | |
361 | send-to: | |
362 | - recipients | |
890bff23 | 363 | |
556e87cc JR |
364 | # Use - in version number since yaml anchor do not support dot |
365 | - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor | |
366 | name: 'babeltrace_version_glib_anchor' | |
367 | defaults: babeltrace | |
368 | node: 'x86-64' | |
369 | ||
370 | builders: | |
371 | - inject: | |
372 | properties-content: | | |
373 | LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib | |
374 | PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig | |
375 | arch=x86-64 | |
376 | conf=std | |
377 | build=std | |
378 | - shell: | | |
379 | wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz | |
380 | tar xvf glib-2.22.5.tar.gz | |
381 | cd glib-2.22.5 | |
382 | mkdir BUILD_RESULT | |
383 | ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT | |
384 | make -j `nproc` | |
385 | make install | |
386 | ||
387 | - shell: | |
388 | !include-raw-escape: scripts/babeltrace/build.sh | |
389 | ||
390 | - job-template: | |
391 | name: babeltrace_{version}_glib-2.22.5 | |
392 | triggers: | |
393 | - pollscm: | |
394 | cron: "@daily" | |
395 | <<: *babeltrace_version_glib-2-22-5_anchor | |
499a96d0 JR |
396 | publishers: |
397 | - email-ext: | |
398 | recipients: '{obj:email_to}' | |
399 | reply-to: ci-notification@lists.lttng.org | |
400 | always: false | |
401 | unstable: false | |
402 | first-failure: true | |
403 | first-unstable: true | |
404 | not-built: false | |
405 | aborted: false | |
406 | regression: false | |
407 | failure: false | |
408 | second-failure: false | |
409 | improvement: false | |
410 | still-failing: false | |
411 | success: false | |
412 | fixed: false | |
413 | fixed-unhealthy: true | |
414 | still-unstable: false | |
415 | pre-build: false | |
416 | matrix-trigger: only-parent | |
417 | send-to: | |
418 | - recipients | |
556e87cc JR |
419 | |
420 | - job-template: | |
421 | name: dev_{user}_babeltrace_{version}_glib-2.22.5 | |
422 | <<: *babeltrace_version_glib-2-22-5_anchor | |
890bff23 | 423 | |
499a96d0 JR |
424 | publishers: |
425 | - email-ext: | |
426 | recipients: '{obj:email_to}' | |
427 | reply-to: ci-notification@lists.lttng.org | |
428 | always: false | |
429 | unstable: false | |
430 | first-failure: true | |
431 | first-unstable: true | |
432 | not-built: false | |
433 | aborted: false | |
434 | regression: false | |
435 | failure: false | |
436 | second-failure: false | |
437 | improvement: false | |
438 | still-failing: false | |
439 | success: false | |
440 | fixed: false | |
441 | fixed-unhealthy: true | |
442 | still-unstable: false | |
443 | pre-build: false | |
444 | matrix-trigger: only-parent | |
445 | send-to: | |
446 | - recipients | |
b9c55ae7 | 447 | |
890bff23 MJ |
448 | ## Project |
449 | - project: | |
450 | name: babeltrace | |
4f827afb JR |
451 | github_user: efficios |
452 | github_name: babeltrace | |
499a96d0 | 453 | email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' |
890bff23 | 454 | version: |
ecf9997a MJ |
455 | - stable-1.3 |
456 | - stable-1.4 | |
9eb09611 | 457 | - stable-1.5 |
a0b535b2 | 458 | - stable-2.0 |
ecf9997a | 459 | - master |
890bff23 | 460 | jobs: |
57ae8ff4 MJ |
461 | - 'babeltrace_{version}_{buildtype}': |
462 | buildtype: build | |
890bff23 | 463 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 464 | build: !!python/tuple [std, oot, dist] |
87e41bca | 465 | conf: !!python/tuple [std, static, python-bindings] |
0628a9d8 MJ |
466 | - 'babeltrace_{version}_{buildtype}': |
467 | buildtype: clangbuild | |
468 | arch: !!python/tuple [x86-32, x86-64] | |
469 | build: !!python/tuple [clang] | |
470 | conf: !!python/tuple [std, static] | |
57ae8ff4 MJ |
471 | - 'babeltrace_{version}_{buildtype}': |
472 | buildtype: portbuild | |
c56b9301 | 473 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 474 | build: !!python/tuple [std] |
87e41bca | 475 | conf: !!python/tuple [std, static, python-bindings] |
81bf613d MJ |
476 | - 'babeltrace_{version}_{buildtype}': |
477 | buildtype: slesbuild | |
478 | arch: !!python/tuple [sles12sp2] | |
479 | build: !!python/tuple [std] | |
480 | conf: !!python/tuple [std] | |
87e41bca MJ |
481 | - 'babeltrace_{version}_{buildtype}': |
482 | buildtype: solarisbuild | |
a0b535b2 | 483 | arch: !!python/tuple [sol10-i386, sol11-i386] |
87e41bca MJ |
484 | build: !!python/tuple [std] |
485 | conf: !!python/tuple [std, static] | |
221450b6 MJ |
486 | - 'babeltrace_{version}_{buildtype}': |
487 | buildtype: macosxbuild | |
488 | arch: !!python/tuple [macosx] | |
489 | build: !!python/tuple [std] | |
cd12b140 | 490 | conf: !!python/tuple [std] |
a0b535b2 | 491 | version: # macOS support was introduced in 1.4 |
ecf9997a | 492 | - stable-1.4 |
9eb09611 | 493 | - stable-1.5 |
a0b535b2 | 494 | - stable-2.0 |
221450b6 | 495 | - master |
8f541678 MJ |
496 | - 'babeltrace_{version}_winbuild': |
497 | arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64] | |
498 | build: !!python/tuple [std] | |
499 | conf: !!python/tuple [std] | |
a0b535b2 MJ |
500 | version: # Mingw support was introduced in 2.0 |
501 | - stable-2.0 | |
8f541678 | 502 | - master |
b9c55ae7 MJ |
503 | - 'babeltrace_{version}_winbuild': |
504 | arch: !!python/tuple [cygwin, cygwin64] | |
505 | build: !!python/tuple [std] | |
506 | conf: !!python/tuple [std] | |
a0b535b2 | 507 | version: # Cygwin support was introduced in 1.5 |
b9c55ae7 | 508 | - stable-1.5 |
890bff23 MJ |
509 | - 'babeltrace_{version}_cppcheck' |
510 | - 'babeltrace_{version}_scan-build' | |
511 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
512 | - 'babeltrace_{version}_coverity': |
513 | version: master | |
556e87cc JR |
514 | - 'babeltrace_{version}_glib-2.22.5': |
515 | version: master | |
a0b535b2 MJ |
516 | |
517 | ||
518 | - project: | |
519 | name: babeltrace-jgalar-staging | |
520 | user: jgalar | |
521 | github_user: jgalar | |
522 | github_name: babeltrace | |
499a96d0 | 523 | email_to: "jgalar@efficios.com" |
a0b535b2 MJ |
524 | version: |
525 | - stable-1.3-staging | |
526 | - stable-1.4-staging | |
527 | - stable-1.5-staging | |
528 | - stable-2.0-staging | |
529 | - master-staging | |
530 | jobs: | |
556e87cc | 531 | - 'dev_{user}_babeltrace_{version}_glib-2.22.5': |
556e87cc JR |
532 | version: |
533 | - master-staging | |
4f827afb | 534 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
4f827afb | 535 | buildtype: build |
4f827afb JR |
536 | arch: !!python/tuple [x86-32, x86-64] |
537 | build: !!python/tuple [std, oot, dist] | |
538 | conf: !!python/tuple [std, static, python-bindings] | |
4b9bec35 | 539 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
4b9bec35 | 540 | buildtype: macosxbuild |
a0b535b2 | 541 | version: # macOS support was introduced in 1.4 |
4b9bec35 MJ |
542 | - stable-1.4-staging |
543 | - stable-1.5-staging | |
a0b535b2 MJ |
544 | - stable-2.0-staging |
545 | - master-staging | |
4b9bec35 MJ |
546 | arch: !!python/tuple [macosx] |
547 | build: !!python/tuple [std] | |
548 | conf: !!python/tuple [std] | |
890bff23 | 549 |