X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=jobs%2Flttng-modules.yaml;h=1b0c8fe6b7fa1ce63e920e0fa64ec7e9c0512dc6;hb=944a6c86f6eab1c0b3d65c2f3f771764851baf05;hp=195c0e5e2f54f5095db38bbf53bd2df200de2a4e;hpb=bb2f38b122b0f3c45437656e149a7efb3ef7ef7b;p=lttng-ci.git diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 195c0e5..1b0c8fe 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -2,15 +2,12 @@ - defaults: name: lttng-modules description: | - TODO + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. - project-type: freestyle +
Job is managed by Jenkins Job Builder.
- logrotate: - daysToKeep: -1 - numToKeep: 2 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 + project-type: freestyle wrappers: - workspace-cleanup @@ -19,26 +16,25 @@ scm: - git: - url: git://artifacts.internal.efficios.com/git/linux-stable.git + url: git://github.com/{github_user}/{github_name}.git + browser: githubweb + browser-url: https://github.com/{github_user}/{github_name} branches: - - refs/tags/v{kversion} + - "{mversion}" shallow-clone: true skip-tag: true fastpoll: true - basedir: linux - reference-repo: $HOME/gitcache/linux-stable.git/ - - git: - url: git://github.com/lttng/lttng-modules.git - branches: - - "{mversion}" - basedir: lttng-modules + basedir: src/lttng-modules + + triggers: + - pollscm: + cron: "@hourly" properties: - - throttle: - max-per-node: 0 - max-total: 0 - categories: - - 'lttng-module-linux' + - build-discarder: + num-to-keep: 2 + - github: + url: https://github.com/{github_user}/{github_name} ## Templates @@ -47,6 +43,7 @@ defaults: lttng-modules project-type: matrix + node: 'master' # Applies only to matrix flyweight task axes: - axis: type: slave @@ -60,27 +57,309 @@ stable: true filter: 'build/**' target: 'deps/linux' + do-not-fingerprint: true + - shell: | + git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux - shell: - !include-raw-escape scripts/lttng-modules/build.sh + !include-raw-escape: scripts/lttng-modules/build.sh publishers: - archive: artifacts: 'build/**' allow-empty: false - fingerprint: true + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_build-vanilla + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against all stable vanilla + kernel tags. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + parameters: + - string: + name: 'mversion' + default: '{mversion}' + description: 'The lttng-modules branch to build.' + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: 'v2.6.36' + description: 'The lowest kernel version to build.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_VERSION_param-build' + description: 'The parametrized job to use for child builds.' + + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/master-vanilla.groovy + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_build-{uversion} + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against all Ubuntu {uversion} + released kernels, including the LTS backport kernels. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + parameters: + - string: + name: 'mversion' + default: '{mversion}' + description: 'The lttng-modules branch to build.' + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'uversion' + default: '{uversion}' + description: 'The lowest kernel version to build.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_VERSION_param-build' + description: 'The parametrized job to use for child builds.' + + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/master-ubuntu.groovy + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_build-rt + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against all Linutronix RT + kernels. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + parameters: + - string: + name: 'mversion' + default: '{mversion}' + description: 'The lttng-modules branch to build.' + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: 'v2.6.36-rt0-rebase' + description: 'The lowest kernel version to build.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-rt-devel.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_VERSION_param-build' + description: 'The parametrized job to use for child builds.' + + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/master-rt.groovy + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_VERSION_param-build + defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +Job is managed by Jenkins Job Builder.
+ + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: slave + name: arch + values: '{obj:arch}' + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'kversion' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: + - git: + url: git://github.com/lttng/lttng-modules.git + browser: githubweb + browser-url: https://github.com/lttng/lttng-modules + branches: + - "${{mversion}}" + skip-tag: true + basedir: src/lttng-modules + + triggers: + + builders: + - shell: | + git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux + - shell: + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_coverity + defaults: lttng-modules + node: 'x86-64' + + triggers: + - pollscm: + cron: "@daily" + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor: + colormap: xterm + - credentials-binding: + - username-password-separated: + credential-id: lttng-modules_coverity_token + username: COVERITY_SCAN_PROJECT_NAME + password: COVERITY_SCAN_TOKEN + + builders: + - shell: | + git clone --depth=1 -b v4.4 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux + cd src/linux + make defconfig + sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config + make modules_prepare + - shell: + !include-raw-escape: scripts/common/coverity.sh + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_cppcheck + defaults: lttng-modules + + triggers: + - pollscm: + cron: "@daily" + + builders: + - shell: | + rm -f cppcheck.xml + cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml + + publishers: + - archive: + artifacts: 'cppcheck.xml' + allow-empty: false + - cppcheck: + pattern: 'cppcheck.xml' + - email: + recipients: 'ci-notification@lists.lttng.org' + notify-every-unstable-build: true + send-to-individuals: false + +- job-template: + name: lttng-modules_{mversion}_sloccount + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job runs the sloccount utility and generates a trend report. + +Job is managed by Jenkins Job Builder.
+ + triggers: + - pollscm: + cron: "@daily" + + builders: + - shell: | + cloc --by-file --xml --out=cloc.xml src/lttng-modules/ + + publishers: + - archive: + artifacts: 'cloc.xml' + allow-empty: false + - sloccount: + report-files: 'cloc.xml' ## Project - project: name: lttng-modules + github_user: lttng + github_name: lttng-modules mversion: - !include jobs/inc/lttng-modules-versions.yaml.inc - kversion: - !include jobs/inc/kernel-versions.yaml.inc + - stable-2.7 + - stable-2.8 + - master jobs: - - 'lttng-modules_{mversion}_{kversion}_{buildtype}': - buildtype: build + - 'lttng-modules_{mversion}_build-vanilla' + - 'lttng-modules_{mversion}_build-rt': + mversion: master + - 'lttng-modules_{mversion}_build-{uversion}': + uversion: + - trusty + - xenial + - 'lttng-modules_VERSION_param-build': arch: !!python/tuple [x86-32, x86-64] - - 'lttng-modules_{mversion}_{kversion}_{buildtype}': - buildtype: portbuild - arch: !!python/tuple [armhf, powerpc] + - 'lttng-modules_{mversion}_cppcheck' + - 'lttng-modules_{mversion}_sloccount': + mversion: master + - 'lttng-modules_{mversion}_coverity': + mversion: master