| 1 | - defaults: |
| 2 | name: baremetal_benchmarks |
| 3 | description: | |
| 4 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. |
| 5 | |
| 6 | triggers: |
| 7 | - pollscm: |
| 8 | cron: "@hourly" |
| 9 | logrotate: |
| 10 | numToKeep: 10 |
| 11 | |
| 12 | properties: |
| 13 | - throttle: |
| 14 | max-total: 2 |
| 15 | option: 'category' |
| 16 | categories: |
| 17 | - 'baremetal-tests' |
| 18 | project-type: freestyle |
| 19 | node: 'master' |
| 20 | wrappers: |
| 21 | - workspace-cleanup |
| 22 | - timestamps |
| 23 | - ansicolor |
| 24 | - credentials-binding: |
| 25 | - text: |
| 26 | credential-id: jenkins_lava_key |
| 27 | variable: LAVA_FRDESO_TOKEN |
| 28 | - inject: |
| 29 | properties-content: | |
| 30 | TOOLS_BRANCH={lttngversion} |
| 31 | UST_BRANCH={lttngversion} |
| 32 | BUILD_DEVICE=baremetal |
| 33 | publishers: |
| 34 | - archive: |
| 35 | artifacts: '*.png,*.csv' |
| 36 | stable: true |
| 37 | do-not-fingerprint: true |
| 38 | - email: |
| 39 | recipients: 'francis.deslauriers@efficios.com' |
| 40 | - image-gallery: |
| 41 | - gallery-type: archived-images-gallery |
| 42 | title: Results |
| 43 | includes: '*.png' |
| 44 | scm: |
| 45 | - git: |
| 46 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 47 | branches: |
| 48 | - "{lttngversion}" |
| 49 | shallow-clone: true |
| 50 | skip-tag: true |
| 51 | fastpoll: true |
| 52 | basedir: src/lttng-tools |
| 53 | - git: |
| 54 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 55 | branches: |
| 56 | - "{lttngversion}" |
| 57 | shallow-clone: true |
| 58 | skip-tag: true |
| 59 | fastpoll: true |
| 60 | basedir: src/lttng-modules |
| 61 | - git: |
| 62 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 63 | branches: |
| 64 | - "{kversion}" |
| 65 | shallow-clone: true |
| 66 | skip-tag: true |
| 67 | fastpoll: true |
| 68 | basedir: src/linux |
| 69 | |
| 70 | builders: |
| 71 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh |
| 72 | - trigger-builds: |
| 73 | - project: "build_kernel_PARAM" |
| 74 | property-file: 'properties.txt' |
| 75 | block: true |
| 76 | - inject: |
| 77 | properties-file: properties.txt |
| 78 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh |
| 79 | |
| 80 | |
| 81 | |
| 82 | - defaults: |
| 83 | name: kvm_tests |
| 84 | description: | |
| 85 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. |
| 86 | project-type: freestyle |
| 87 | node: 'master' |
| 88 | properties: |
| 89 | - throttle: |
| 90 | max-total: 2 |
| 91 | option: 'category' |
| 92 | categories: |
| 93 | - 'kvm-tests' |
| 94 | triggers: |
| 95 | - pollscm: |
| 96 | cron: "@hourly" |
| 97 | logrotate: |
| 98 | numToKeep: 10 |
| 99 | |
| 100 | wrappers: |
| 101 | - workspace-cleanup |
| 102 | - timestamps |
| 103 | - ansicolor |
| 104 | - credentials-binding: |
| 105 | - text: |
| 106 | credential-id: jenkins_lava_key |
| 107 | variable: LAVA_FRDESO_TOKEN |
| 108 | - inject: |
| 109 | properties-content: | |
| 110 | BUILD_DEVICE=kvm |
| 111 | TOOLS_BRANCH={lttngversion} |
| 112 | UST_BRANCH={lttngversion} |
| 113 | scm: |
| 114 | - git: |
| 115 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 116 | branches: |
| 117 | - "{lttngversion}" |
| 118 | shallow-clone: true |
| 119 | skip-tag: true |
| 120 | fastpoll: true |
| 121 | basedir: src/lttng-tools |
| 122 | - git: |
| 123 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 124 | branches: |
| 125 | - "{lttngversion}" |
| 126 | shallow-clone: true |
| 127 | skip-tag: true |
| 128 | fastpoll: true |
| 129 | basedir: src/lttng-modules |
| 130 | - git: |
| 131 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 132 | branches: |
| 133 | - "{kversion}" |
| 134 | shallow-clone: true |
| 135 | skip-tag: true |
| 136 | fastpoll: true |
| 137 | basedir: src/linux |
| 138 | |
| 139 | publishers: |
| 140 | - email: |
| 141 | recipients: 'francis.deslauriers@efficios.com' |
| 142 | builders: |
| 143 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh |
| 144 | - trigger-builds: |
| 145 | - project: "build_kernel_PARAM" |
| 146 | property-file: 'properties.txt' |
| 147 | block: true |
| 148 | - inject: |
| 149 | properties-file: properties.txt |
| 150 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh |
| 151 | |
| 152 | - defaults: |
| 153 | name: baremetal_tests |
| 154 | description: | |
| 155 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. |
| 156 | project-type: freestyle |
| 157 | node: 'master' |
| 158 | properties: |
| 159 | - throttle: |
| 160 | max-total: 2 |
| 161 | option: 'category' |
| 162 | categories: |
| 163 | - 'baremetal-tests' |
| 164 | triggers: |
| 165 | - pollscm: |
| 166 | cron: "@hourly" |
| 167 | logrotate: |
| 168 | numToKeep: 10 |
| 169 | |
| 170 | wrappers: |
| 171 | - workspace-cleanup |
| 172 | - timestamps |
| 173 | - ansicolor |
| 174 | - credentials-binding: |
| 175 | - text: |
| 176 | credential-id: jenkins_lava_key |
| 177 | variable: LAVA_FRDESO_TOKEN |
| 178 | - inject: |
| 179 | properties-content: | |
| 180 | UST_BRANCH={lttngversion} |
| 181 | BUILD_DEVICE=baremetal |
| 182 | scm: |
| 183 | - git: |
| 184 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 185 | branches: |
| 186 | - "{lttngversion}" |
| 187 | shallow-clone: true |
| 188 | skip-tag: true |
| 189 | fastpoll: true |
| 190 | basedir: src/lttng-tools |
| 191 | - git: |
| 192 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 193 | branches: |
| 194 | - "{lttngversion}" |
| 195 | shallow-clone: true |
| 196 | skip-tag: true |
| 197 | fastpoll: true |
| 198 | basedir: src/lttng-modules |
| 199 | - git: |
| 200 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 201 | branches: |
| 202 | - "{kversion}" |
| 203 | shallow-clone: true |
| 204 | skip-tag: true |
| 205 | fastpoll: true |
| 206 | basedir: src/linux |
| 207 | |
| 208 | publishers: |
| 209 | - email: |
| 210 | recipients: 'francis.deslauriers@efficios.com' |
| 211 | builders: |
| 212 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh |
| 213 | - trigger-builds: |
| 214 | - project: "build_kernel_PARAM" |
| 215 | property-file: 'properties.txt' |
| 216 | block: true |
| 217 | - inject: |
| 218 | properties-file: properties.txt |
| 219 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh |
| 220 | |
| 221 | - job-template: |
| 222 | name: baremetal_benchmarks_k{kversion}_l{lttngversion} |
| 223 | defaults: baremetal_benchmarks |
| 224 | - job-template: |
| 225 | name: kvm_tests_k{kversion}_l{lttngversion} |
| 226 | defaults: kvm_tests |
| 227 | - job-template: |
| 228 | name: baremetal_tests_k{kversion}_l{lttngversion} |
| 229 | defaults: baremetal_tests |
| 230 | |
| 231 | - job-template: |
| 232 | name: baremetal_tests_k{kversion}_l{lttngversion}_canary |
| 233 | defaults: baremetal_tests |
| 234 | - job-template: |
| 235 | name: kvm_tests_k{kversion}_l{lttngversion}_canary |
| 236 | defaults: kvm_tests |
| 237 | - job-template: |
| 238 | name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary |
| 239 | defaults: baremetal_benchmarks |
| 240 | |
| 241 | - job-template: |
| 242 | name: kvm_tests_kmainline_l{lttngversion} |
| 243 | defaults: kvm_tests |
| 244 | triggers: |
| 245 | - pollscm: |
| 246 | cron: "@daily" |
| 247 | scm: |
| 248 | - git: |
| 249 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 250 | branches: |
| 251 | - "{lttngversion}" |
| 252 | shallow-clone: true |
| 253 | skip-tag: true |
| 254 | fastpoll: true |
| 255 | basedir: src/lttng-tools |
| 256 | - git: |
| 257 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 258 | branches: |
| 259 | - "{lttngversion}" |
| 260 | shallow-clone: true |
| 261 | skip-tag: true |
| 262 | fastpoll: true |
| 263 | basedir: src/lttng-modules |
| 264 | - git: |
| 265 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 266 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" |
| 267 | branches: |
| 268 | - "master" |
| 269 | fastpoll: true |
| 270 | basedir: src/linux |
| 271 | |
| 272 | - job-template: |
| 273 | name: baremetal_tests_kmainline_l{lttngversion} |
| 274 | defaults: baremetal_tests |
| 275 | triggers: |
| 276 | - pollscm: |
| 277 | cron: "@daily" |
| 278 | scm: |
| 279 | - git: |
| 280 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 281 | branches: |
| 282 | - "{lttngversion}" |
| 283 | shallow-clone: true |
| 284 | skip-tag: true |
| 285 | fastpoll: true |
| 286 | basedir: src/lttng-tools |
| 287 | - git: |
| 288 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 289 | branches: |
| 290 | - "{lttngversion}" |
| 291 | shallow-clone: true |
| 292 | skip-tag: true |
| 293 | fastpoll: true |
| 294 | basedir: src/lttng-modules |
| 295 | - git: |
| 296 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 297 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" |
| 298 | branches: |
| 299 | - "master" |
| 300 | fastpoll: true |
| 301 | basedir: src/linux |
| 302 | wrappers: |
| 303 | - workspace-cleanup |
| 304 | - timestamps |
| 305 | - ansicolor |
| 306 | - credentials-binding: |
| 307 | - text: |
| 308 | credential-id: jenkins_lava_key |
| 309 | variable: LAVA_FRDESO_TOKEN |
| 310 | - inject: |
| 311 | properties-content: | |
| 312 | BUILD_DEVICE=baremetal |
| 313 | builders: |
| 314 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh |
| 315 | - trigger-builds: |
| 316 | - project: "build_kernel_PARAM" |
| 317 | property-file: 'properties.txt' |
| 318 | block: true |
| 319 | - inject: |
| 320 | properties-file: properties.txt |
| 321 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh |
| 322 | - job-template: |
| 323 | name: baremetal_benchmarks_kmainline_l{lttngversion} |
| 324 | defaults: baremetal_benchmarks |
| 325 | triggers: |
| 326 | - pollscm: |
| 327 | cron: "@daily" |
| 328 | scm: |
| 329 | - git: |
| 330 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git |
| 331 | branches: |
| 332 | - "{lttngversion}" |
| 333 | shallow-clone: true |
| 334 | skip-tag: true |
| 335 | fastpoll: true |
| 336 | basedir: src/lttng-tools |
| 337 | - git: |
| 338 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git |
| 339 | branches: |
| 340 | - "{lttngversion}" |
| 341 | shallow-clone: true |
| 342 | skip-tag: true |
| 343 | fastpoll: true |
| 344 | basedir: src/lttng-modules |
| 345 | - git: |
| 346 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git |
| 347 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" |
| 348 | branches: |
| 349 | - "master" |
| 350 | fastpoll: true |
| 351 | basedir: src/linux |
| 352 | wrappers: |
| 353 | - workspace-cleanup |
| 354 | - timestamps |
| 355 | - ansicolor |
| 356 | - credentials-binding: |
| 357 | - text: |
| 358 | credential-id: jenkins_lava_key |
| 359 | variable: LAVA_FRDESO_TOKEN |
| 360 | - inject: |
| 361 | properties-content: | |
| 362 | BUILD_DEVICE=baremetal |
| 363 | builders: |
| 364 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh |
| 365 | - trigger-builds: |
| 366 | - project: "build_kernel_PARAM" |
| 367 | property-file: 'properties.txt' |
| 368 | block: true |
| 369 | - inject: |
| 370 | properties-file: properties.txt |
| 371 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh |
| 372 | |
| 373 | - job: |
| 374 | name: build_kernel_PARAM |
| 375 | description: | |
| 376 | Builds a Linux Kernel and LTTng Modules if necessary |
| 377 | defaults: global |
| 378 | concurrent: true |
| 379 | |
| 380 | logrotate: |
| 381 | numToKeep: 20 |
| 382 | node: 'x86-64' |
| 383 | |
| 384 | wrappers: |
| 385 | - workspace-cleanup |
| 386 | - timestamps |
| 387 | - ansicolor |
| 388 | - credentials-binding: |
| 389 | - file: |
| 390 | credential-id: lava_jenkins_storage_frdeso |
| 391 | variable: identity_file |
| 392 | builders: |
| 393 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh |
| 394 | - inject: |
| 395 | properties-file: properties.txt |
| 396 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh |
| 397 | - conditional-step: |
| 398 | condition-kind: not |
| 399 | condition-operand: |
| 400 | condition-kind: file-exists |
| 401 | condition-filename: kernel-built.txt |
| 402 | condition-basedir: workspace |
| 403 | steps: |
| 404 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh |
| 405 | - conditional-step: |
| 406 | condition-kind: not |
| 407 | condition-operand: |
| 408 | condition-kind: file-exists |
| 409 | condition-filename: modules-built.txt |
| 410 | condition-basedir: workspace |
| 411 | steps: |
| 412 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh |
| 413 | |
| 414 | parameters: |
| 415 | - string: |
| 416 | name: 'LTTNG_MODULES_COMMIT_ID' |
| 417 | description: 'The lttng-modules commmit to build.' |
| 418 | - string: |
| 419 | name: 'KERNEL_COMMIT_ID' |
| 420 | description: 'The kernel commit to build.' |
| 421 | - string: |
| 422 | name: 'KGITREPO' |
| 423 | description: 'The kernel git repo to fetch from' |
| 424 | - string: |
| 425 | name: 'STORAGE_KERNEL_FOLDER' |
| 426 | description: 'Path to store the Kernel image' |
| 427 | - string: |
| 428 | name: 'STORAGE_KERNEL_IMAGE' |
| 429 | description: 'Path to store the Kernel IMAGE' |
| 430 | - string: |
| 431 | name: 'STORAGE_LINUX_MODULES' |
| 432 | description: 'Path to store the Kernel Modules' |
| 433 | - string: |
| 434 | name: 'STORAGE_LTTNG_MODULES' |
| 435 | description: 'Path to store the LTTng Modules' |
| 436 | - string: |
| 437 | name: 'BUILD_DEVICE' |
| 438 | description: 'The target device. (kvm or baremetal)' |
| 439 | |
| 440 | ## Project |
| 441 | - project: |
| 442 | name: lttng-kernel-tests |
| 443 | kversion: |
| 444 | - linux-4.4.y |
| 445 | - linux-4.8.y |
| 446 | - v4.8.1 |
| 447 | lttngversion: |
| 448 | - master |
| 449 | - stable-2.8 |
| 450 | - stable-2.9 |
| 451 | jobs: |
| 452 | - 'kvm_tests_k{kversion}_l{lttngversion}' |
| 453 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' |
| 454 | - 'baremetal_tests_k{kversion}_l{lttngversion}' |
| 455 | |
| 456 | - project: |
| 457 | name: lttng-kernel-tests-oldkernel |
| 458 | kversion: |
| 459 | - linux-3.18.y |
| 460 | - linux-4.4.y |
| 461 | lttngversion: |
| 462 | - stable-2.7 |
| 463 | jobs: |
| 464 | - 'kvm_tests_k{kversion}_l{lttngversion}': |
| 465 | - 'baremetal_tests_k{kversion}_l{lttngversion}': |
| 466 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}': |
| 467 | |
| 468 | - project: |
| 469 | name: lttng-kernel-tests-canary |
| 470 | kversion: |
| 471 | - v4.4.9 |
| 472 | lttngversion: |
| 473 | - v2.8.1 |
| 474 | jobs: |
| 475 | - 'kvm_tests_k{kversion}_l{lttngversion}_canary' |
| 476 | - 'baremetal_tests_k{kversion}_l{lttngversion}_canary' |
| 477 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary' |
| 478 | |
| 479 | - project: |
| 480 | name: lttng-kernel-tests-mainline |
| 481 | lttngversion: |
| 482 | - v2.8.1 |
| 483 | jobs: |
| 484 | - 'kvm_tests_kmainline_l{lttngversion}' |
| 485 | - 'baremetal_tests_kmainline_l{lttngversion}' |
| 486 | - 'baremetal_benchmarks_kmainline_l{lttngversion}' |