+- 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
+