| 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_builders_defaults: &babeltrace_build_builders_defaults |
| 73 | name: 'babeltrace_build_builders_defaults' |
| 74 | builders: |
| 75 | - shell: |
| 76 | !include-raw-escape: scripts/babeltrace/build.sh |
| 77 | |
| 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}}' |
| 107 | condition-string2: 'msys2-mingw32' |
| 108 | steps: |
| 109 | - inject: |
| 110 | properties-content: 'MSYSTEM=MINGW32' |
| 111 | - shell: |
| 112 | !include-raw-escape: |
| 113 | - scripts/common/msys2-shebang |
| 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}}' |
| 120 | condition-string2: 'msys2-mingw64' |
| 121 | steps: |
| 122 | - inject: |
| 123 | properties-content: 'MSYSTEM=MINGW64' |
| 124 | - shell: |
| 125 | !include-raw-escape: |
| 126 | - scripts/common/msys2-shebang |
| 127 | - scripts/common/cygwin-prefix |
| 128 | - scripts/babeltrace/build.sh |
| 129 | |
| 130 | |
| 131 | - babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev |
| 132 | name: 'babeltrace_build_publishers_dev' |
| 133 | publishers: |
| 134 | - tap: |
| 135 | results: 'tap/**/*.log' |
| 136 | failed-tests-mark-build-as-failure: true |
| 137 | todo-is-failure: false |
| 138 | - warnings: |
| 139 | console-log-parsers: |
| 140 | - 'GNU Make + GNU C Compiler (gcc)' |
| 141 | total-thresholds: |
| 142 | unstable: |
| 143 | total-all: 0 |
| 144 | total-high: 0 |
| 145 | total-normal: 0 |
| 146 | total-low: 0 |
| 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 | |
| 169 | |
| 170 | - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod |
| 171 | name: 'babeltrace_build_publishers_prod' |
| 172 | publishers: |
| 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 |
| 186 | - archive: |
| 187 | artifacts: 'build/**' |
| 188 | allow-empty: false |
| 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 |
| 211 | |
| 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 |
| 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 |
| 228 | <<: *babeltrace_build_publishers_prod |
| 229 | |
| 230 | - job-template: |
| 231 | name: dev_{user}_babeltrace_{version}_{buildtype} |
| 232 | defaults: babeltrace |
| 233 | |
| 234 | <<: *babeltrace_build_axes_defaults |
| 235 | <<: *babeltrace_build_builders_defaults |
| 236 | <<: *babeltrace_build_publishers_dev |
| 237 | |
| 238 | - job-template: |
| 239 | name: babeltrace_{version}_cppcheck |
| 240 | defaults: babeltrace |
| 241 | |
| 242 | triggers: |
| 243 | - pollscm: |
| 244 | cron: "@daily" |
| 245 | |
| 246 | builders: |
| 247 | - shell: | |
| 248 | rm -f cppcheck-result.xml |
| 249 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml |
| 250 | |
| 251 | publishers: |
| 252 | - archive: |
| 253 | artifacts: 'cppcheck-result.xml' |
| 254 | allow-empty: false |
| 255 | - cppcheck: |
| 256 | pattern: 'cppcheck-result.xml' |
| 257 | |
| 258 | - job-template: |
| 259 | name: babeltrace_{version}_scan-build |
| 260 | defaults: babeltrace |
| 261 | node: 'x86-64' |
| 262 | |
| 263 | triggers: |
| 264 | - pollscm: |
| 265 | cron: "@daily" |
| 266 | |
| 267 | builders: |
| 268 | - shell: |
| 269 | !include-raw-escape: scripts/common/scan-build.sh |
| 270 | |
| 271 | publishers: |
| 272 | - html-publisher: |
| 273 | name: 'HTML Report' |
| 274 | dir: 'scan-build-archive/' |
| 275 | files: 'index.html' |
| 276 | |
| 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: |
| 298 | !include-raw-escape: scripts/common/coverity.sh |
| 299 | |
| 300 | publishers: |
| 301 | - workspace-cleanup |
| 302 | - archive: |
| 303 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 304 | allow-empty: false |
| 305 | |
| 306 | - job-template: |
| 307 | name: babeltrace_{version}_pylint |
| 308 | defaults: babeltrace |
| 309 | node: 'x86-64' |
| 310 | |
| 311 | scm: [] |
| 312 | |
| 313 | triggers: |
| 314 | - pollscm: |
| 315 | cron: "@daily" |
| 316 | |
| 317 | builders: |
| 318 | - copyartifact: |
| 319 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
| 320 | which-build: last-successful |
| 321 | stable: false |
| 322 | filter: 'build/**' |
| 323 | target: 'deps/babeltrace' |
| 324 | - shell: |
| 325 | !include-raw-escape: scripts/babeltrace/pylint.sh |
| 326 | |
| 327 | publishers: |
| 328 | - archive: |
| 329 | artifacts: 'pep8.out,pylint.out' |
| 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 |
| 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 |
| 363 | |
| 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 |
| 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 |
| 419 | |
| 420 | - job-template: |
| 421 | name: dev_{user}_babeltrace_{version}_glib-2.22.5 |
| 422 | <<: *babeltrace_version_glib-2-22-5_anchor |
| 423 | |
| 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 |
| 447 | |
| 448 | ## Project |
| 449 | - project: |
| 450 | name: babeltrace |
| 451 | github_user: efficios |
| 452 | github_name: babeltrace |
| 453 | email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' |
| 454 | version: |
| 455 | - stable-1.3 |
| 456 | - stable-1.4 |
| 457 | - stable-1.5 |
| 458 | - stable-2.0 |
| 459 | - master |
| 460 | jobs: |
| 461 | - 'babeltrace_{version}_{buildtype}': |
| 462 | buildtype: build |
| 463 | arch: !!python/tuple [x86-32, x86-64] |
| 464 | build: !!python/tuple [std, oot, dist] |
| 465 | conf: !!python/tuple [std, static, python-bindings] |
| 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] |
| 471 | - 'babeltrace_{version}_{buildtype}': |
| 472 | buildtype: portbuild |
| 473 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 474 | build: !!python/tuple [std] |
| 475 | conf: !!python/tuple [std, static, python-bindings] |
| 476 | - 'babeltrace_{version}_{buildtype}': |
| 477 | buildtype: slesbuild |
| 478 | arch: !!python/tuple [sles12sp2] |
| 479 | build: !!python/tuple [std] |
| 480 | conf: !!python/tuple [std] |
| 481 | - 'babeltrace_{version}_{buildtype}': |
| 482 | buildtype: solarisbuild |
| 483 | arch: !!python/tuple [sol10-i386, sol11-i386] |
| 484 | build: !!python/tuple [std] |
| 485 | conf: !!python/tuple [std, static] |
| 486 | - 'babeltrace_{version}_{buildtype}': |
| 487 | buildtype: macosxbuild |
| 488 | arch: !!python/tuple [macosx] |
| 489 | build: !!python/tuple [std] |
| 490 | conf: !!python/tuple [std] |
| 491 | version: # macOS support was introduced in 1.4 |
| 492 | - stable-1.4 |
| 493 | - stable-1.5 |
| 494 | - stable-2.0 |
| 495 | - master |
| 496 | - 'babeltrace_{version}_winbuild': |
| 497 | arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64] |
| 498 | build: !!python/tuple [std] |
| 499 | conf: !!python/tuple [std] |
| 500 | version: # Mingw support was introduced in 2.0 |
| 501 | - stable-2.0 |
| 502 | - master |
| 503 | - 'babeltrace_{version}_winbuild': |
| 504 | arch: !!python/tuple [cygwin, cygwin64] |
| 505 | build: !!python/tuple [std] |
| 506 | conf: !!python/tuple [std] |
| 507 | version: # Cygwin support was introduced in 1.5 |
| 508 | - stable-1.5 |
| 509 | - 'babeltrace_{version}_cppcheck' |
| 510 | - 'babeltrace_{version}_scan-build' |
| 511 | - 'babeltrace_{version}_pylint' |
| 512 | - 'babeltrace_{version}_coverity': |
| 513 | version: master |
| 514 | - 'babeltrace_{version}_glib-2.22.5': |
| 515 | version: master |
| 516 | |
| 517 | |
| 518 | - project: |
| 519 | name: babeltrace-jgalar-staging |
| 520 | user: jgalar |
| 521 | github_user: jgalar |
| 522 | github_name: babeltrace |
| 523 | email_to: "jgalar@efficios.com" |
| 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: |
| 531 | - 'dev_{user}_babeltrace_{version}_glib-2.22.5': |
| 532 | version: |
| 533 | - master-staging |
| 534 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
| 535 | buildtype: build |
| 536 | arch: !!python/tuple [x86-32, x86-64] |
| 537 | build: !!python/tuple [std, oot, dist] |
| 538 | conf: !!python/tuple [std, static, python-bindings] |
| 539 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
| 540 | buildtype: macosxbuild |
| 541 | version: # macOS support was introduced in 1.4 |
| 542 | - stable-1.4-staging |
| 543 | - stable-1.5-staging |
| 544 | - stable-2.0-staging |
| 545 | - master-staging |
| 546 | arch: !!python/tuple [macosx] |
| 547 | build: !!python/tuple [std] |
| 548 | conf: !!python/tuple [std] |
| 549 | |