X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flttng-modules.yaml;h=f834f2331fc5b5b323157ae3c9e19e711ddc8ded;hb=ef63064fd40c71fa23ea36a9121d06936b361add;hp=195c0e5e2f54f5095db38bbf53bd2df200de2a4e;hpb=bb2f38b122b0f3c45437656e149a7efb3ef7ef7b;p=lttng-ci.git diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 195c0e5..f834f23 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -2,7 +2,10 @@ - defaults: name: lttng-modules description: | - TODO + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + +

Job is managed by Jenkins Job Builder.

project-type: freestyle @@ -19,24 +22,27 @@ scm: - git: - url: git://artifacts.internal.efficios.com/git/linux-stable.git + url: git://github.com/lttng/lttng-modules.git + browser: githubweb + browser-url: https://github.com/efficios/lttng-modules 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 + triggers: + - pollscm: + cron: "@daily" + properties: + - github: + url: https://github.com/efficios/lttng-modules - throttle: max-per-node: 0 max-total: 0 + option: category categories: - 'lttng-module-linux' @@ -47,6 +53,7 @@ defaults: lttng-modules project-type: matrix + node: 'master' # Applies only to matrix flyweight task axes: - axis: type: slave @@ -60,27 +67,100 @@ 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://artifacts.internal.efficios.com/git/linux-stable.git 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}_coverity + defaults: lttng-modules + node: 'x86-64' + + triggers: + - pollscm: + cron: "@daily" + + scm: + - git: + url: git://github.com/lttng/lttng-modules.git + browser: githubweb + browser-url: https://github.com/efficios/lttng-modules + branches: + - "{mversion}" + + 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: + !include-raw-escape: scripts/common/coverity.sh + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_cppcheck + defaults: lttng-modules + + triggers: + - pollscm: + cron: "@daily" + + scm: + - git: + url: git://github.com/lttng/lttng-modules.git + browser: githubweb + browser-url: https://github.com/efficios/lttng-modules + branches: + - "{mversion}" + + builders: + - shell: | + rm -f cppcheck.xml + cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 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 ## Project - project: name: lttng-modules mversion: - !include jobs/inc/lttng-modules-versions.yaml.inc + !include: jobs/inc/lttng-modules-versions.yaml.inc kversion: - !include jobs/inc/kernel-versions.yaml.inc + !include: jobs/inc/kernel-versions.yaml.inc jobs: - 'lttng-modules_{mversion}_{kversion}_{buildtype}': buildtype: build arch: !!python/tuple [x86-32, x86-64] - - 'lttng-modules_{mversion}_{kversion}_{buildtype}': - buildtype: portbuild - arch: !!python/tuple [armhf, powerpc] + #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': + # buildtype: portbuild + # arch: !!python/tuple [armhf, powerpc] + - 'lttng-modules_{mversion}_cppcheck' + - 'lttng-modules_{mversion}_coverity': + mversion: master