| 1 | --- |
| 2 | ## Anchors |
| 3 | - lttng-modules_build_parameters_defaults: <tng-modules_build_parameters_defaults |
| 4 | name: 'lttng-modules_build_parameters_defaults' |
| 5 | parameters: |
| 6 | - string: |
| 7 | name: 'mversion' |
| 8 | default: '{mversion}' |
| 9 | description: 'The lttng-modules branch to build.' |
| 10 | - string: |
| 11 | name: 'maxConcurrentBuild' |
| 12 | default: '20' |
| 13 | description: 'The maximum number of concurrent child build to run.' |
| 14 | - string: |
| 15 | name: 'kverfloor' |
| 16 | default: '{kverfloor}' |
| 17 | description: 'The lowest kernel version to build.' |
| 18 | - string: |
| 19 | name: 'kverceil' |
| 20 | default: '{kverceil}' |
| 21 | description: 'The highest kernel version to build. (excluded)' |
| 22 | - string: |
| 23 | name: 'kverfilter' |
| 24 | default: '{kverfilter}' |
| 25 | description: 'Kernel versions list filtering strategy.' |
| 26 | - string: |
| 27 | name: 'kgitrepo' |
| 28 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 29 | description: 'The linux kernel git repository url.' |
| 30 | - string: |
| 31 | name: 'kbuildjob' |
| 32 | default: 'lttng-modules_PARAM_{parambuildtype}' |
| 33 | description: 'The parametrized job to use for child builds.' |
| 34 | |
| 35 | - lttng-modules_build_parameters_ubuntu: <tng-modules_build_parameters_ubuntu |
| 36 | name: 'lttng-modules_build_parameters_ubuntu' |
| 37 | parameters: |
| 38 | - string: |
| 39 | name: 'mversion' |
| 40 | default: '{mversion}' |
| 41 | description: 'The lttng-modules branch to build.' |
| 42 | - string: |
| 43 | name: 'maxConcurrentBuild' |
| 44 | default: '20' |
| 45 | description: 'The maximum number of concurrent child build to run.' |
| 46 | - string: |
| 47 | name: 'kverfloor' |
| 48 | default: '{kverfloor}' |
| 49 | description: 'The lowest kernel version to build.' |
| 50 | - string: |
| 51 | name: 'kverceil' |
| 52 | default: '{kverceil}' |
| 53 | description: 'The highest kernel version to build. (excluded)' |
| 54 | - string: |
| 55 | name: 'kverfilter' |
| 56 | default: '{kverfilter}' |
| 57 | description: 'Kernel versions list filtering strategy.' |
| 58 | - string: |
| 59 | name: 'kgitrepo' |
| 60 | default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' |
| 61 | description: 'The linux kernel git repository url.' |
| 62 | - string: |
| 63 | name: 'kbuildjob' |
| 64 | default: 'lttng-modules_PARAM_{parambuildtype}' |
| 65 | description: 'The parametrized job to use for child builds.' |
| 66 | - string: |
| 67 | name: 'uversion' |
| 68 | default: '{uversion}' |
| 69 | description: 'The lowest kernel version to build.' |
| 70 | |
| 71 | - lttng-modules_build_parameters_rt: <tng-modules_build_parameters_rt |
| 72 | name: 'lttng-modules_build_parameters_rt' |
| 73 | parameters: |
| 74 | - string: |
| 75 | name: 'mversion' |
| 76 | default: '{mversion}' |
| 77 | description: 'The lttng-modules branch to build.' |
| 78 | - string: |
| 79 | name: 'maxConcurrentBuild' |
| 80 | default: '20' |
| 81 | description: 'The maximum number of concurrent child build to run.' |
| 82 | - string: |
| 83 | name: 'kverfloor' |
| 84 | default: 'v2.6.36-rt0-rebase' |
| 85 | description: 'The lowest kernel version to build.' |
| 86 | - string: |
| 87 | name: 'kverceil' |
| 88 | default: '{kverceil}' |
| 89 | description: 'The highest kernel version to build. (excluded)' |
| 90 | - string: |
| 91 | name: 'kverfilter' |
| 92 | default: '{kverfilter}' |
| 93 | description: 'Kernel versions list filtering strategy.' |
| 94 | - string: |
| 95 | name: 'kgitrepo' |
| 96 | default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-stable-rt.git' |
| 97 | description: 'The linux kernel git repository url.' |
| 98 | - string: |
| 99 | name: 'kbuildjob' |
| 100 | default: 'lttng-modules_PARAM_build' |
| 101 | description: 'The parametrized job to use for child builds.' |
| 102 | |
| 103 | - lttng-modules_build_builders_defaults: <tng-modules_build_builders_defaults |
| 104 | name: 'lttng-modules_build_builders_defaults' |
| 105 | builders: |
| 106 | - system-groovy: |
| 107 | command: |
| 108 | !include-raw-escape: scripts/lttng-modules/master.groovy |
| 109 | |
| 110 | - lttng-modules_build_rt_builders_defaults: <tng-modules_build_rt_builders_defaults |
| 111 | name: 'lttng-modules_build_rt_builders_defaults' |
| 112 | builders: |
| 113 | - system-groovy: |
| 114 | command: |
| 115 | !include-raw-escape: scripts/lttng-modules/master-rt.groovy |
| 116 | |
| 117 | |
| 118 | ## Defaults |
| 119 | - defaults: |
| 120 | name: lttng-modules |
| 121 | description: | |
| 122 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 123 | 2.0 tracer toolset. |
| 124 | |
| 125 | <p>Job is managed by Jenkins Job Builder.</p> |
| 126 | |
| 127 | project-type: freestyle |
| 128 | |
| 129 | wrappers: |
| 130 | - workspace-cleanup |
| 131 | - timestamps |
| 132 | - ansicolor |
| 133 | |
| 134 | scm: |
| 135 | - git: |
| 136 | url: git://github.com/{github_user}/{github_name}.git |
| 137 | browser: githubweb |
| 138 | browser-url: https://github.com/{github_user}/{github_name} |
| 139 | branches: |
| 140 | - "{mversion}" |
| 141 | shallow-clone: true |
| 142 | fastpoll: true |
| 143 | basedir: src/lttng-modules |
| 144 | wipe-workspace: false |
| 145 | skip-tag: true |
| 146 | |
| 147 | triggers: |
| 148 | - pollscm: |
| 149 | cron: "@hourly" |
| 150 | |
| 151 | properties: |
| 152 | - build-discarder: |
| 153 | num-to-keep: 2 |
| 154 | - github: |
| 155 | url: https://github.com/{github_user}/{github_name} |
| 156 | |
| 157 | publishers: |
| 158 | - workspace-cleanup |
| 159 | - email-ext: |
| 160 | recipients: '{obj:email_to}' |
| 161 | reply-to: ci-notification@lists.lttng.org |
| 162 | always: false |
| 163 | unstable: false |
| 164 | first-failure: true |
| 165 | first-unstable: true |
| 166 | not-built: false |
| 167 | aborted: false |
| 168 | regression: false |
| 169 | failure: false |
| 170 | second-failure: false |
| 171 | improvement: false |
| 172 | still-failing: false |
| 173 | success: false |
| 174 | fixed: false |
| 175 | fixed-unhealthy: true |
| 176 | still-unstable: false |
| 177 | pre-build: false |
| 178 | matrix-trigger: only-parent |
| 179 | send-to: |
| 180 | - recipients |
| 181 | |
| 182 | |
| 183 | ## Templates |
| 184 | - job-template: |
| 185 | name: lttng-modules_ALL_trigger-vanilla |
| 186 | defaults: lttng-modules |
| 187 | description: | |
| 188 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 189 | 2.0 tracer toolset. |
| 190 | |
| 191 | This job will trigger the build jobs when a new tag is added to the vanilla |
| 192 | and stable kernel trees. |
| 193 | |
| 194 | <p>Job is managed by Jenkins Job Builder.</p> |
| 195 | |
| 196 | node: 'master' |
| 197 | |
| 198 | wrappers: |
| 199 | - timestamps |
| 200 | - ansicolor |
| 201 | |
| 202 | scm: [] |
| 203 | |
| 204 | triggers: |
| 205 | - timed: "@hourly" |
| 206 | |
| 207 | builders: |
| 208 | - system-groovy: |
| 209 | command: |
| 210 | !include-raw-escape: scripts/lttng-modules/trigger-vanilla.groovy |
| 211 | |
| 212 | publishers: [] |
| 213 | |
| 214 | - job-template: |
| 215 | name: lttng-modules_{mversion}_{buildtype}-vanilla |
| 216 | defaults: lttng-modules |
| 217 | description: | |
| 218 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 219 | 2.0 tracer toolset. |
| 220 | |
| 221 | This job will build the {mversion} branch against stable vanilla |
| 222 | kernel tags. |
| 223 | |
| 224 | <p>Job is managed by Jenkins Job Builder.</p> |
| 225 | |
| 226 | node: 'master' |
| 227 | |
| 228 | <<: *lttng-modules_build_parameters_defaults |
| 229 | <<: *lttng-modules_build_builders_defaults |
| 230 | |
| 231 | - job-template: |
| 232 | name: lttng-modules_{mversion}_fullbuild-vanilla |
| 233 | defaults: lttng-modules |
| 234 | description: | |
| 235 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 236 | 2.0 tracer toolset. |
| 237 | |
| 238 | This job will build the {mversion} branch against all stable vanilla |
| 239 | kernel tags. |
| 240 | |
| 241 | <p>Job is managed by Jenkins Job Builder.</p> |
| 242 | |
| 243 | node: 'master' |
| 244 | |
| 245 | <<: *lttng-modules_build_parameters_defaults |
| 246 | <<: *lttng-modules_build_builders_defaults |
| 247 | |
| 248 | triggers: |
| 249 | - pollscm: |
| 250 | cron: "@midnight" |
| 251 | |
| 252 | - job-template: |
| 253 | name: lttng-modules_{mversion}_{buildtype}-{uversion} |
| 254 | defaults: lttng-modules |
| 255 | description: | |
| 256 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 257 | 2.0 tracer toolset. |
| 258 | |
| 259 | This job will build the {mversion} branch against Ubuntu {uversion} |
| 260 | released kernels, including the LTS backport kernels. |
| 261 | |
| 262 | <p>Job is managed by Jenkins Job Builder.</p> |
| 263 | |
| 264 | node: 'master' |
| 265 | |
| 266 | <<: *lttng-modules_build_parameters_ubuntu |
| 267 | <<: *lttng-modules_build_builders_defaults |
| 268 | |
| 269 | - job-template: |
| 270 | name: lttng-modules_{mversion}_fullbuild-{uversion} |
| 271 | defaults: lttng-modules |
| 272 | description: | |
| 273 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 274 | 2.0 tracer toolset. |
| 275 | |
| 276 | This job will build the {mversion} branch against Ubuntu {uversion} |
| 277 | released kernels, including the LTS backport kernels. |
| 278 | |
| 279 | <p>Job is managed by Jenkins Job Builder.</p> |
| 280 | |
| 281 | node: 'master' |
| 282 | |
| 283 | <<: *lttng-modules_build_parameters_ubuntu |
| 284 | <<: *lttng-modules_build_builders_defaults |
| 285 | |
| 286 | triggers: |
| 287 | - pollscm: |
| 288 | cron: "@midnight" |
| 289 | |
| 290 | - job-template: |
| 291 | name: lttng-modules_{mversion}_build-rt |
| 292 | defaults: lttng-modules |
| 293 | description: | |
| 294 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 295 | 2.0 tracer toolset. |
| 296 | |
| 297 | This job will build the {mversion} branch against all Linutronix RT |
| 298 | kernels. |
| 299 | |
| 300 | <p>Job is managed by Jenkins Job Builder.</p> |
| 301 | |
| 302 | node: 'master' |
| 303 | |
| 304 | <<: *lttng-modules_build_parameters_rt |
| 305 | <<: *lttng-modules_build_rt_builders_defaults |
| 306 | |
| 307 | - job-template: |
| 308 | name: lttng-modules_PARAM_build |
| 309 | defaults: lttng-modules |
| 310 | description: | |
| 311 | This is a parametrized job used by 'master' jobs to build any combinations |
| 312 | of lttng-modules and linux kernel versions. |
| 313 | |
| 314 | <p>Job is managed by Jenkins Job Builder.</p> |
| 315 | |
| 316 | project-type: matrix |
| 317 | node: 'master' # Applies only to matrix flyweight task |
| 318 | axes: |
| 319 | - axis: |
| 320 | type: slave |
| 321 | name: arch |
| 322 | values: '{obj:arch}' |
| 323 | |
| 324 | properties: |
| 325 | - build-discarder: |
| 326 | days-to-keep: 2 |
| 327 | |
| 328 | parameters: |
| 329 | - string: |
| 330 | name: 'mversion' |
| 331 | default: 'master' |
| 332 | description: 'The lttng-modules branch to build.' |
| 333 | - string: |
| 334 | name: 'mgitrepo' |
| 335 | default: 'git://github.com/lttng/lttng-modules.git' |
| 336 | description: 'The lttng-modules git repository url.' |
| 337 | - string: |
| 338 | name: 'ktag' |
| 339 | default: '' |
| 340 | description: 'The linux kernel git tag to build against.' |
| 341 | - string: |
| 342 | name: 'kgitrepo' |
| 343 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 344 | description: 'The linux kernel git repository url.' |
| 345 | |
| 346 | concurrent: true |
| 347 | |
| 348 | scm: [] |
| 349 | |
| 350 | triggers: |
| 351 | |
| 352 | builders: |
| 353 | - shell: |
| 354 | !include-raw-escape: scripts/lttng-modules/param-build.sh |
| 355 | |
| 356 | publishers: |
| 357 | - workspace-cleanup |
| 358 | |
| 359 | |
| 360 | - job-template: |
| 361 | name: lttng-modules_PARAM_crossbuild |
| 362 | defaults: lttng-modules |
| 363 | description: | |
| 364 | This is a parametrized job used by 'master' jobs to build any combinations |
| 365 | of lttng-modules and linux kernel versions. |
| 366 | |
| 367 | <p>Job is managed by Jenkins Job Builder.</p> |
| 368 | |
| 369 | project-type: matrix |
| 370 | node: 'master' # Applies only to matrix flyweight task |
| 371 | axes: |
| 372 | - axis: |
| 373 | type: user-defined |
| 374 | name: cross_arch |
| 375 | values: '{obj:cross_arch}' |
| 376 | |
| 377 | properties: |
| 378 | - build-discarder: |
| 379 | days-to-keep: 2 |
| 380 | |
| 381 | parameters: |
| 382 | - string: |
| 383 | name: 'mversion' |
| 384 | default: 'master' |
| 385 | description: 'The lttng-modules branch to build.' |
| 386 | - string: |
| 387 | name: 'mgitrepo' |
| 388 | default: 'git://github.com/lttng/lttng-modules.git' |
| 389 | description: 'The lttng-modules git repository url.' |
| 390 | - string: |
| 391 | name: 'ktag' |
| 392 | default: '' |
| 393 | description: 'The linux kernel git tag to build against.' |
| 394 | - string: |
| 395 | name: 'kgitrepo' |
| 396 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 397 | description: 'The linux kernel git repository url.' |
| 398 | |
| 399 | concurrent: true |
| 400 | |
| 401 | scm: [] |
| 402 | |
| 403 | triggers: |
| 404 | |
| 405 | builders: |
| 406 | - shell: |
| 407 | !include-raw-escape: scripts/lttng-modules/param-build.sh |
| 408 | |
| 409 | publishers: |
| 410 | - workspace-cleanup |
| 411 | |
| 412 | - job-template: |
| 413 | name: lttng-modules_{mversion}_coverity |
| 414 | defaults: lttng-modules |
| 415 | node: 'amd64' |
| 416 | |
| 417 | triggers: |
| 418 | - pollscm: |
| 419 | cron: "@daily" |
| 420 | |
| 421 | wrappers: |
| 422 | - workspace-cleanup |
| 423 | - timestamps |
| 424 | - ansicolor: |
| 425 | colormap: xterm |
| 426 | - credentials-binding: |
| 427 | - username-password-separated: |
| 428 | credential-id: lttng-modules_coverity_token |
| 429 | username: COVERITY_SCAN_PROJECT_NAME |
| 430 | password: COVERITY_SCAN_TOKEN |
| 431 | |
| 432 | builders: |
| 433 | - shell: | |
| 434 | git clone --depth=1 -b v4.20 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux |
| 435 | cd src/linux |
| 436 | make defconfig |
| 437 | sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config |
| 438 | make modules_prepare |
| 439 | - shell: |
| 440 | !include-raw-escape: scripts/common/coverity.sh |
| 441 | |
| 442 | publishers: |
| 443 | - archive: |
| 444 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 445 | allow-empty: false |
| 446 | - workspace-cleanup |
| 447 | |
| 448 | - job-template: |
| 449 | name: lttng-modules_{mversion}_cppcheck |
| 450 | defaults: lttng-modules |
| 451 | |
| 452 | triggers: |
| 453 | - pollscm: |
| 454 | cron: "@daily" |
| 455 | |
| 456 | builders: |
| 457 | - shell: | |
| 458 | rm -f cppcheck-result.xml |
| 459 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck-result.xml |
| 460 | |
| 461 | publishers: |
| 462 | - archive: |
| 463 | artifacts: 'cppcheck-result.xml' |
| 464 | allow-empty: false |
| 465 | - cppcheck: |
| 466 | pattern: 'cppcheck-result.xml' |
| 467 | |
| 468 | - job-template: |
| 469 | name: lttng-modules_{mversion}_sloccount |
| 470 | defaults: lttng-modules |
| 471 | description: | |
| 472 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 473 | 2.0 tracer toolset. |
| 474 | |
| 475 | This job runs the sloccount utility and generates a trend report. |
| 476 | |
| 477 | <p>Job is managed by Jenkins Job Builder.</p> |
| 478 | |
| 479 | triggers: |
| 480 | - pollscm: |
| 481 | cron: "@daily" |
| 482 | |
| 483 | builders: |
| 484 | - shell: | |
| 485 | cloc --by-file --xml --out=cloc.xml src/lttng-modules/ |
| 486 | |
| 487 | publishers: |
| 488 | - archive: |
| 489 | artifacts: 'cloc.xml' |
| 490 | allow-empty: false |
| 491 | - sloccount: |
| 492 | report-files: 'cloc.xml' |
| 493 | - workspace-cleanup |
| 494 | |
| 495 | |
| 496 | ## Project |
| 497 | - project: |
| 498 | name: lttng-modules |
| 499 | github_user: lttng |
| 500 | github_name: lttng-modules |
| 501 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
| 502 | jobs: |
| 503 | |
| 504 | # Vanilla normal builds |
| 505 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 506 | mversion: |
| 507 | - master |
| 508 | buildtype: build |
| 509 | parambuildtype: build |
| 510 | kverfloor: v3.0 |
| 511 | kverceil: '' |
| 512 | kverfilter: stable-head |
| 513 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 514 | mversion: |
| 515 | - stable-2.10 |
| 516 | - stable-2.11 |
| 517 | buildtype: build |
| 518 | parambuildtype: build |
| 519 | kverfloor: v2.6.36 |
| 520 | kverceil: '' |
| 521 | kverfilter: stable-head |
| 522 | - 'lttng-modules_{mversion}_fullbuild-vanilla': |
| 523 | mversion: |
| 524 | - master |
| 525 | buildtype: build |
| 526 | parambuildtype: build |
| 527 | kverfloor: v3.0 |
| 528 | kverceil: '' |
| 529 | kverfilter: none |
| 530 | - 'lttng-modules_{mversion}_fullbuild-vanilla': |
| 531 | mversion: |
| 532 | - stable-2.10 |
| 533 | - stable-2.11 |
| 534 | buildtype: build |
| 535 | parambuildtype: build |
| 536 | kverfloor: v2.6.36 |
| 537 | kverceil: '' |
| 538 | kverfilter: none |
| 539 | |
| 540 | # RT normal builds |
| 541 | - 'lttng-modules_{mversion}_build-rt': |
| 542 | mversion: master |
| 543 | kverceil: '' |
| 544 | kverfilter: stable-head |
| 545 | |
| 546 | # Ubuntu normal builds |
| 547 | - 'lttng-modules_{mversion}_{buildtype}-{uversion}': |
| 548 | mversion: |
| 549 | - stable-2.10 |
| 550 | - stable-2.11 |
| 551 | - master |
| 552 | uversion: |
| 553 | - xenial |
| 554 | - bionic |
| 555 | - focal |
| 556 | buildtype: build |
| 557 | parambuildtype: build |
| 558 | kverfloor: '' |
| 559 | kverceil: '' |
| 560 | kverfilter: stable-head |
| 561 | |
| 562 | # Vanilla crossbuilds |
| 563 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 564 | mversion: |
| 565 | - stable-2.10 |
| 566 | - stable-2.11 |
| 567 | - master |
| 568 | buildtype: crossbuild |
| 569 | parambuildtype: crossbuild |
| 570 | kverfloor: v3.18 |
| 571 | kverceil: '' |
| 572 | kverfilter: stable-head |
| 573 | |
| 574 | # Ubuntu cross builds |
| 575 | - 'lttng-modules_{mversion}_{buildtype}-{uversion}': |
| 576 | mversion: |
| 577 | - stable-2.10 |
| 578 | - stable-2.11 |
| 579 | - master |
| 580 | uversion: |
| 581 | - xenial |
| 582 | - bionic |
| 583 | buildtype: crossbuild |
| 584 | parambuildtype: crossbuild |
| 585 | kverfloor: '' |
| 586 | kverceil: '' |
| 587 | kverfilter: stable-head |
| 588 | |
| 589 | # Parametrized kernel and modules build jobs |
| 590 | - 'lttng-modules_PARAM_build': |
| 591 | arch: !!python/tuple [amd64] |
| 592 | - 'lttng-modules_PARAM_crossbuild': |
| 593 | cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 594 | |
| 595 | # Misc jobs |
| 596 | - 'lttng-modules_ALL_trigger-vanilla' |
| 597 | - 'lttng-modules_{mversion}_cppcheck': |
| 598 | mversion: |
| 599 | - stable-2.10 |
| 600 | - stable-2.11 |
| 601 | - master |
| 602 | - 'lttng-modules_{mversion}_sloccount': |
| 603 | mversion: master |
| 604 | - 'lttng-modules_{mversion}_coverity': |
| 605 | mversion: master |