From: Michael Jeanson Date: Thu, 3 Sep 2015 21:09:31 +0000 (-0400) Subject: Fix coverity and add cppcheck to lttng-modules X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f899b1bed55562298cfa0d86bcefd9bc27f98ba1;p=lttng-ci.git Fix coverity and add cppcheck to lttng-modules --- diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 3062232..ac30cf0 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -2,7 +2,8 @@ - defaults: name: lttng-modules description: | - Build lttng-modules against different Linux kernels. + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset.

Job is managed by Jenkins Job Builder.

@@ -79,7 +80,7 @@ - workspace-cleanup - job-template: - name: lttng-modules_{version}_coverity + name: lttng-modules_{mversion}_coverity defaults: lttng-modules node: 'x86-64' @@ -87,6 +88,14 @@ - 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 @@ -105,6 +114,39 @@ 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 @@ -119,5 +161,6 @@ #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': # buildtype: portbuild # arch: !!python/tuple [armhf, powerpc] - - 'lttng-modules_{version}_coverity': - version: master + - 'lttng-modules_{mversion}_cppcheck' + - 'lttng-modules_{mversion}_coverity': + mversion: master