- defaults: name: baremetal_benchmarks description: | Runs baremetal kernel tests over different combination of kernel and lttng configurations. triggers: - pollscm: cron: "@hourly" logrotate: numToKeep: 10 properties: - throttle: max-total: 2 option: 'category' categories: - 'baremetal-tests' project-type: freestyle node: 'master' wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - text: credential-id: jenkins_lava_key variable: LAVA_FRDESO_TOKEN - inject: properties-content: | TOOLS_BRANCH={lttngversion} UST_BRANCH={lttngversion} BUILD_DEVICE=baremetal publishers: - email: recipients: 'francis.deslauriers@efficios.com' scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git branches: - "{kversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/linux builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' block: true - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh - defaults: name: kvm_tests description: | Runs baremetal kernel tests over different combination of kernel and lttng configurations. project-type: freestyle node: 'master' properties: - throttle: max-total: 2 option: 'category' categories: - 'kvm-tests' triggers: - pollscm: cron: "@hourly" logrotate: numToKeep: 10 wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - text: credential-id: jenkins_lava_key variable: LAVA_FRDESO_TOKEN - inject: properties-content: | BUILD_DEVICE=kvm TOOLS_BRANCH={lttngversion} UST_BRANCH={lttngversion} scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git branches: - "{kversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/linux publishers: - email: recipients: 'francis.deslauriers@efficios.com' builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' block: true - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh - defaults: name: baremetal_tests description: | Runs baremetal kernel tests over different combination of kernel and lttng configurations. project-type: freestyle node: 'master' properties: - throttle: max-total: 2 option: 'category' categories: - 'baremetal-tests' triggers: - pollscm: cron: "@hourly" logrotate: numToKeep: 10 wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - text: credential-id: jenkins_lava_key variable: LAVA_FRDESO_TOKEN - inject: properties-content: | UST_BRANCH={lttngversion} BUILD_DEVICE=baremetal scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git branches: - "{kversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/linux publishers: - email: recipients: 'francis.deslauriers@efficios.com' builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' block: true - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh - job-template: name: baremetal_benchmarks_k{kversion}_l{lttngversion} defaults: baremetal_benchmarks - job-template: name: kvm_tests_k{kversion}_l{lttngversion} defaults: kvm_tests - job-template: name: baremetal_tests_k{kversion}_l{lttngversion} defaults: baremetal_tests - job-template: name: baremetal_tests_k{kversion}_l{lttngversion}_canary defaults: baremetal_tests - job-template: name: kvm_tests_k{kversion}_l{lttngversion}_canary defaults: kvm_tests - job-template: name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary defaults: baremetal_benchmarks - job-template: name: kvm_tests_kmainline_l{lttngversion} defaults: kvm_tests triggers: - pollscm: cron: "@daily" scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git refspec: "+refs/tags/*:refs/remotes/origin/tags/*" branches: - "master" fastpoll: true basedir: src/linux - job-template: name: baremetal_tests_kmainline_l{lttngversion} defaults: baremetal_tests triggers: - pollscm: cron: "@daily" scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git refspec: "+refs/tags/*:refs/remotes/origin/tags/*" branches: - "master" fastpoll: true basedir: src/linux wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - text: credential-id: jenkins_lava_key variable: LAVA_FRDESO_TOKEN - inject: properties-content: | BUILD_DEVICE=baremetal builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' block: true - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh - job-template: name: baremetal_benchmarks_kmainline_l{lttngversion} defaults: baremetal_benchmarks triggers: - pollscm: cron: "@daily" scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-tools - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git branches: - "{lttngversion}" shallow-clone: true skip-tag: true fastpoll: true basedir: src/lttng-modules - git: url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git refspec: "+refs/tags/*:refs/remotes/origin/tags/*" branches: - "master" fastpoll: true basedir: src/linux wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - text: credential-id: jenkins_lava_key variable: LAVA_FRDESO_TOKEN - inject: properties-content: | BUILD_DEVICE=baremetal builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' block: true - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh - job: name: build_kernel_PARAM description: | Builds a Linux Kernel and LTTng Modules if necessary defaults: global concurrent: true logrotate: numToKeep: 20 node: 'x86-64' wrappers: - workspace-cleanup - timestamps - ansicolor - credentials-binding: - file: credential-id: lava_jenkins_storage_frdeso variable: identity_file builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh - inject: properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh - conditional-step: condition-kind: not condition-operand: condition-kind: file-exists condition-filename: kernel-built.txt condition-basedir: workspace steps: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh - conditional-step: condition-kind: not condition-operand: condition-kind: file-exists condition-filename: modules-built.txt condition-basedir: workspace steps: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh parameters: - string: name: 'LTTNG_MODULES_COMMIT_ID' description: 'The lttng-modules commmit to build.' - string: name: 'KERNEL_COMMIT_ID' description: 'The kernel commit to build.' - string: name: 'KGITREPO' description: 'The kernel git repo to fetch from' - string: name: 'STORAGE_KERNEL_FOLDER' description: 'Path to store the Kernel image' - string: name: 'STORAGE_KERNEL_IMAGE' description: 'Path to store the Kernel IMAGE' - string: name: 'STORAGE_LINUX_MODULES' description: 'Path to store the Kernel Modules' - string: name: 'STORAGE_LTTNG_MODULES' description: 'Path to store the LTTng Modules' - string: name: 'BUILD_DEVICE' description: 'The target device. (kvm or baremetal)' ## Project - project: name: lttng-kernel-tests kversion: - linux-4.4.y - linux-4.8.y - v4.8.1 lttngversion: - master - stable-2.8 - stable-2.9 jobs: - 'kvm_tests_k{kversion}_l{lttngversion}' - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' - 'baremetal_tests_k{kversion}_l{lttngversion}' - project: name: lttng-kernel-tests-oldkernel kversion: - linux-3.18.y - linux-4.4.y lttngversion: - stable-2.7 jobs: - 'kvm_tests_k{kversion}_l{lttngversion}': - 'baremetal_tests_k{kversion}_l{lttngversion}': - 'baremetal_benchmarks_k{kversion}_l{lttngversion}': - project: name: lttng-kernel-tests-canary kversion: - v4.4.9 lttngversion: - v2.8.1 jobs: - 'kvm_tests_k{kversion}_l{lttngversion}_canary' - 'baremetal_tests_k{kversion}_l{lttngversion}_canary' - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary' - project: name: lttng-kernel-tests-mainline lttngversion: - v2.8.1 jobs: - 'kvm_tests_kmainline_l{lttngversion}' - 'baremetal_tests_kmainline_l{lttngversion}' - 'baremetal_benchmarks_kmainline_l{lttngversion}'