| 1 | --- |
| 2 | - defaults: |
| 3 | name: lttng-modules |
| 4 | description: | |
| 5 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 6 | 2.0 tracer toolset. |
| 7 | |
| 8 | <p>Job is managed by Jenkins Job Builder.</p> |
| 9 | |
| 10 | project-type: freestyle |
| 11 | |
| 12 | wrappers: |
| 13 | - workspace-cleanup |
| 14 | - timestamps |
| 15 | - ansicolor |
| 16 | |
| 17 | scm: |
| 18 | - git: |
| 19 | url: git://github.com/{github_user}/{github_name}.git |
| 20 | browser: githubweb |
| 21 | browser-url: https://github.com/{github_user}/{github_name} |
| 22 | branches: |
| 23 | - "{mversion}" |
| 24 | shallow-clone: true |
| 25 | skip-tag: true |
| 26 | fastpoll: true |
| 27 | basedir: src/lttng-modules |
| 28 | |
| 29 | triggers: |
| 30 | - pollscm: |
| 31 | cron: "@hourly" |
| 32 | |
| 33 | properties: |
| 34 | - build-discarder: |
| 35 | num-to-keep: 2 |
| 36 | - github: |
| 37 | url: https://github.com/{github_user}/{github_name} |
| 38 | |
| 39 | |
| 40 | ## Templates |
| 41 | - job-template: |
| 42 | name: lttng-modules_{mversion}_{kversion}_{buildtype} |
| 43 | defaults: lttng-modules |
| 44 | |
| 45 | project-type: matrix |
| 46 | node: 'master' # Applies only to matrix flyweight task |
| 47 | axes: |
| 48 | - axis: |
| 49 | type: slave |
| 50 | name: arch |
| 51 | values: '{obj:arch}' |
| 52 | |
| 53 | builders: |
| 54 | - copyartifact: |
| 55 | project: kernel_{kversion}_{buildtype}/arch=$arch |
| 56 | which-build: last-successful |
| 57 | stable: false |
| 58 | filter: 'build/**' |
| 59 | target: 'deps/linux' |
| 60 | do-not-fingerprint: true |
| 61 | - shell: | |
| 62 | git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/git/linux-all.git src/linux |
| 63 | - shell: |
| 64 | !include-raw-escape: scripts/lttng-modules/build.sh |
| 65 | |
| 66 | publishers: |
| 67 | - archive: |
| 68 | artifacts: 'build/**' |
| 69 | allow-empty: false |
| 70 | - workspace-cleanup |
| 71 | |
| 72 | - job-template: |
| 73 | name: lttng-modules_{mversion}_{buildtype}-vanilla |
| 74 | defaults: lttng-modules |
| 75 | description: | |
| 76 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 77 | 2.0 tracer toolset. |
| 78 | |
| 79 | This job will build the {mversion} branch against all stable vanilla |
| 80 | kernel tags. |
| 81 | |
| 82 | <p>Job is managed by Jenkins Job Builder.</p> |
| 83 | |
| 84 | node: 'master' |
| 85 | |
| 86 | parameters: |
| 87 | - string: |
| 88 | name: 'mversion' |
| 89 | default: '{mversion}' |
| 90 | description: 'The lttng-modules branch to build.' |
| 91 | - string: |
| 92 | name: 'maxConcurrentBuild' |
| 93 | default: '20' |
| 94 | description: 'The maximum number of concurrent child build to run.' |
| 95 | - string: |
| 96 | name: 'kverfloor' |
| 97 | default: '{kverfloor}' |
| 98 | description: 'The lowest kernel version to build.' |
| 99 | - string: |
| 100 | name: 'kverceil' |
| 101 | default: '{kverceil}' |
| 102 | description: 'The highest kernel version to build. (excluded)' |
| 103 | - string: |
| 104 | name: 'kverfilter' |
| 105 | default: '{kverfilter}' |
| 106 | description: 'Kernel versions list filtering strategy.' |
| 107 | - string: |
| 108 | name: 'kgitrepo' |
| 109 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 110 | description: 'The linux kernel git repository url.' |
| 111 | - string: |
| 112 | name: 'kbuildjob' |
| 113 | default: 'lttng-modules_VERSION_param-{buildtype}' |
| 114 | description: 'The parametrized job to use for child builds.' |
| 115 | |
| 116 | builders: |
| 117 | - system-groovy: |
| 118 | command: |
| 119 | !include-raw-escape: scripts/lttng-modules/master-vanilla.groovy |
| 120 | |
| 121 | publishers: |
| 122 | - workspace-cleanup |
| 123 | |
| 124 | - job-template: |
| 125 | name: lttng-modules_{mversion}_build-{uversion} |
| 126 | defaults: lttng-modules |
| 127 | description: | |
| 128 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 129 | 2.0 tracer toolset. |
| 130 | |
| 131 | This job will build the {mversion} branch against all Ubuntu {uversion} |
| 132 | released kernels, including the LTS backport kernels. |
| 133 | |
| 134 | <p>Job is managed by Jenkins Job Builder.</p> |
| 135 | |
| 136 | node: 'master' |
| 137 | |
| 138 | parameters: |
| 139 | - string: |
| 140 | name: 'mversion' |
| 141 | default: '{mversion}' |
| 142 | description: 'The lttng-modules branch to build.' |
| 143 | - string: |
| 144 | name: 'maxConcurrentBuild' |
| 145 | default: '20' |
| 146 | description: 'The maximum number of concurrent child build to run.' |
| 147 | - string: |
| 148 | name: 'uversion' |
| 149 | default: '{uversion}' |
| 150 | description: 'The lowest kernel version to build.' |
| 151 | - string: |
| 152 | name: 'kgitrepo' |
| 153 | default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' |
| 154 | description: 'The linux kernel git repository url.' |
| 155 | - string: |
| 156 | name: 'kbuildjob' |
| 157 | default: 'lttng-modules_VERSION_param-build' |
| 158 | description: 'The parametrized job to use for child builds.' |
| 159 | |
| 160 | builders: |
| 161 | - system-groovy: |
| 162 | command: |
| 163 | !include-raw-escape: scripts/lttng-modules/master-ubuntu.groovy |
| 164 | |
| 165 | publishers: |
| 166 | - workspace-cleanup |
| 167 | |
| 168 | - job-template: |
| 169 | name: lttng-modules_{mversion}_build-rt |
| 170 | defaults: lttng-modules |
| 171 | description: | |
| 172 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 173 | 2.0 tracer toolset. |
| 174 | |
| 175 | This job will build the {mversion} branch against all Linutronix RT |
| 176 | kernels. |
| 177 | |
| 178 | <p>Job is managed by Jenkins Job Builder.</p> |
| 179 | |
| 180 | node: 'master' |
| 181 | |
| 182 | parameters: |
| 183 | - string: |
| 184 | name: 'mversion' |
| 185 | default: '{mversion}' |
| 186 | description: 'The lttng-modules branch to build.' |
| 187 | - string: |
| 188 | name: 'maxConcurrentBuild' |
| 189 | default: '20' |
| 190 | description: 'The maximum number of concurrent child build to run.' |
| 191 | - string: |
| 192 | name: 'kverfloor' |
| 193 | default: 'v2.6.36-rt0-rebase' |
| 194 | description: 'The lowest kernel version to build.' |
| 195 | - string: |
| 196 | name: 'kgitrepo' |
| 197 | default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-rt-devel.git' |
| 198 | description: 'The linux kernel git repository url.' |
| 199 | - string: |
| 200 | name: 'kbuildjob' |
| 201 | default: 'lttng-modules_VERSION_param-build' |
| 202 | description: 'The parametrized job to use for child builds.' |
| 203 | |
| 204 | builders: |
| 205 | - system-groovy: |
| 206 | command: |
| 207 | !include-raw-escape: scripts/lttng-modules/master-rt.groovy |
| 208 | |
| 209 | publishers: |
| 210 | - workspace-cleanup |
| 211 | |
| 212 | - job-template: |
| 213 | name: lttng-modules_VERSION_param-build |
| 214 | defaults: lttng-modules |
| 215 | description: | |
| 216 | This is a parametrized job used by 'master' jobs to build any combinations |
| 217 | of lttng-modules and linux kernel versions. |
| 218 | |
| 219 | <p>Job is managed by Jenkins Job Builder.</p> |
| 220 | |
| 221 | project-type: matrix |
| 222 | node: 'master' # Applies only to matrix flyweight task |
| 223 | axes: |
| 224 | - axis: |
| 225 | type: slave |
| 226 | name: arch |
| 227 | values: '{obj:arch}' |
| 228 | |
| 229 | properties: |
| 230 | - build-discarder: |
| 231 | days-to-keep: 2 |
| 232 | |
| 233 | parameters: |
| 234 | - string: |
| 235 | name: 'mversion' |
| 236 | default: 'master' |
| 237 | description: 'The lttng-modules branch to build.' |
| 238 | - string: |
| 239 | name: 'kversion' |
| 240 | default: '' |
| 241 | description: 'The linux kernel git tag to build against.' |
| 242 | - string: |
| 243 | name: 'kgitrepo' |
| 244 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 245 | description: 'The linux kernel git repository url.' |
| 246 | |
| 247 | concurrent: true |
| 248 | |
| 249 | scm: |
| 250 | - git: |
| 251 | url: git://github.com/lttng/lttng-modules.git |
| 252 | browser: githubweb |
| 253 | browser-url: https://github.com/lttng/lttng-modules |
| 254 | branches: |
| 255 | - "${{mversion}}" |
| 256 | skip-tag: true |
| 257 | basedir: src/lttng-modules |
| 258 | |
| 259 | triggers: |
| 260 | |
| 261 | builders: |
| 262 | - shell: | |
| 263 | git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux |
| 264 | - shell: |
| 265 | !include-raw-escape: scripts/lttng-modules/param-build.sh |
| 266 | |
| 267 | publishers: |
| 268 | - workspace-cleanup |
| 269 | |
| 270 | - job-template: |
| 271 | name: lttng-modules_VERSION_param-crossbuild |
| 272 | defaults: lttng-modules |
| 273 | description: | |
| 274 | This is a parametrized job used by 'master' jobs to build any combinations |
| 275 | of lttng-modules and linux kernel versions. |
| 276 | |
| 277 | <p>Job is managed by Jenkins Job Builder.</p> |
| 278 | |
| 279 | project-type: matrix |
| 280 | node: 'master' # Applies only to matrix flyweight task |
| 281 | axes: |
| 282 | - axis: |
| 283 | type: user-defined |
| 284 | name: cross_arch |
| 285 | values: '{obj:cross_arch}' |
| 286 | |
| 287 | properties: |
| 288 | - build-discarder: |
| 289 | days-to-keep: 2 |
| 290 | |
| 291 | parameters: |
| 292 | - string: |
| 293 | name: 'mversion' |
| 294 | default: 'master' |
| 295 | description: 'The lttng-modules branch to build.' |
| 296 | - string: |
| 297 | name: 'kversion' |
| 298 | default: '' |
| 299 | description: 'The linux kernel git tag to build against.' |
| 300 | - string: |
| 301 | name: 'kgitrepo' |
| 302 | default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' |
| 303 | description: 'The linux kernel git repository url.' |
| 304 | |
| 305 | concurrent: true |
| 306 | |
| 307 | scm: |
| 308 | - git: |
| 309 | url: git://github.com/lttng/lttng-modules.git |
| 310 | browser: githubweb |
| 311 | browser-url: https://github.com/lttng/lttng-modules |
| 312 | branches: |
| 313 | - "${{mversion}}" |
| 314 | skip-tag: true |
| 315 | basedir: src/lttng-modules |
| 316 | |
| 317 | triggers: |
| 318 | |
| 319 | builders: |
| 320 | - shell: | |
| 321 | git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux |
| 322 | - shell: |
| 323 | !include-raw-escape: scripts/lttng-modules/param-build.sh |
| 324 | |
| 325 | publishers: |
| 326 | - workspace-cleanup |
| 327 | |
| 328 | - job-template: |
| 329 | name: lttng-modules_{mversion}_coverity |
| 330 | defaults: lttng-modules |
| 331 | node: 'x86-64' |
| 332 | |
| 333 | triggers: |
| 334 | - pollscm: |
| 335 | cron: "@daily" |
| 336 | |
| 337 | wrappers: |
| 338 | - workspace-cleanup |
| 339 | - timestamps |
| 340 | - ansicolor: |
| 341 | colormap: xterm |
| 342 | - credentials-binding: |
| 343 | - username-password-separated: |
| 344 | credential-id: lttng-modules_coverity_token |
| 345 | username: COVERITY_SCAN_PROJECT_NAME |
| 346 | password: COVERITY_SCAN_TOKEN |
| 347 | |
| 348 | builders: |
| 349 | - shell: | |
| 350 | git clone --depth=1 -b v4.9 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux |
| 351 | cd src/linux |
| 352 | make defconfig |
| 353 | sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config |
| 354 | make modules_prepare |
| 355 | - shell: |
| 356 | !include-raw-escape: scripts/common/coverity.sh |
| 357 | |
| 358 | publishers: |
| 359 | - workspace-cleanup |
| 360 | |
| 361 | - job-template: |
| 362 | name: lttng-modules_{mversion}_cppcheck |
| 363 | defaults: lttng-modules |
| 364 | |
| 365 | triggers: |
| 366 | - pollscm: |
| 367 | cron: "@daily" |
| 368 | |
| 369 | builders: |
| 370 | - shell: | |
| 371 | rm -f cppcheck.xml |
| 372 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml |
| 373 | |
| 374 | publishers: |
| 375 | - archive: |
| 376 | artifacts: 'cppcheck.xml' |
| 377 | allow-empty: false |
| 378 | - cppcheck: |
| 379 | pattern: 'cppcheck.xml' |
| 380 | - email: |
| 381 | recipients: 'ci-notification@lists.lttng.org' |
| 382 | notify-every-unstable-build: true |
| 383 | send-to-individuals: false |
| 384 | |
| 385 | - job-template: |
| 386 | name: lttng-modules_{mversion}_sloccount |
| 387 | defaults: lttng-modules |
| 388 | description: | |
| 389 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 390 | 2.0 tracer toolset. |
| 391 | |
| 392 | This job runs the sloccount utility and generates a trend report. |
| 393 | |
| 394 | <p>Job is managed by Jenkins Job Builder.</p> |
| 395 | |
| 396 | triggers: |
| 397 | - pollscm: |
| 398 | cron: "@daily" |
| 399 | |
| 400 | builders: |
| 401 | - shell: | |
| 402 | cloc --by-file --xml --out=cloc.xml src/lttng-modules/ |
| 403 | |
| 404 | publishers: |
| 405 | - archive: |
| 406 | artifacts: 'cloc.xml' |
| 407 | allow-empty: false |
| 408 | - sloccount: |
| 409 | report-files: 'cloc.xml' |
| 410 | |
| 411 | |
| 412 | ## Project |
| 413 | - project: |
| 414 | name: lttng-modules |
| 415 | github_user: lttng |
| 416 | github_name: lttng-modules |
| 417 | jobs: |
| 418 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 419 | mversion: |
| 420 | - stable-2.9 |
| 421 | - master |
| 422 | buildtype: build |
| 423 | kverfloor: v2.6.36 |
| 424 | kverceil: '' |
| 425 | kverfilter: none |
| 426 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 427 | mversion: stable-2.7 |
| 428 | buildtype: build |
| 429 | kverfloor: v2.6.36 |
| 430 | kverceil: v4.8-rc0 |
| 431 | kverfilter: none |
| 432 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 433 | mversion: stable-2.8 |
| 434 | buildtype: build |
| 435 | kverfloor: v2.6.36 |
| 436 | kverceil: v4.10-rc0 |
| 437 | kverfilter: none |
| 438 | - 'lttng-modules_{mversion}_build-rt': |
| 439 | mversion: master |
| 440 | - 'lttng-modules_{mversion}_build-{uversion}': |
| 441 | mversion: |
| 442 | - stable-2.8 |
| 443 | - stable-2.9 |
| 444 | - master |
| 445 | uversion: |
| 446 | - trusty |
| 447 | - xenial |
| 448 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 449 | mversion: |
| 450 | - stable-2.9 |
| 451 | - master |
| 452 | buildtype: crossbuild |
| 453 | kverfloor: v3.16 |
| 454 | kverceil: '' |
| 455 | kverfilter: stable-head |
| 456 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 457 | mversion: stable-2.7 |
| 458 | buildtype: crossbuild |
| 459 | kverfloor: v3.16 |
| 460 | kverceil: v4.8-rc0 |
| 461 | kverfilter: stable-head |
| 462 | - 'lttng-modules_{mversion}_{buildtype}-vanilla': |
| 463 | mversion: stable-2.8 |
| 464 | buildtype: crossbuild |
| 465 | kverfloor: v3.16 |
| 466 | kverceil: v4.10-rc0 |
| 467 | kverfilter: stable-head |
| 468 | - 'lttng-modules_VERSION_param-build': |
| 469 | arch: !!python/tuple [x86-32, x86-64] |
| 470 | - 'lttng-modules_VERSION_param-crossbuild': |
| 471 | cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 472 | - 'lttng-modules_{mversion}_cppcheck': |
| 473 | mversion: |
| 474 | - stable-2.8 |
| 475 | - stable-2.9 |
| 476 | - master |
| 477 | - 'lttng-modules_{mversion}_sloccount': |
| 478 | mversion: master |
| 479 | - 'lttng-modules_{mversion}_coverity': |
| 480 | mversion: master |