+- job-template:
+ name: lttng-modules_{mversion}_build-vanilla
+ defaults: lttng-modules
+
+ node: 'master'
+
+ parameters:
+ - string:
+ name: 'mversion'
+ default: '{mversion}'
+ description: 'The lttng-modules branch to build.'
+ - string:
+ name: 'maxConcurrentBuild'
+ default: '4'
+ 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://artifacts.internal.efficios.com/git/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.groovy
+
+ publishers:
+ - workspace-cleanup
+
+- job-template:
+ name: lttng-modules_{mversion}_build-{uversion}
+ defaults: lttng-modules
+
+ node: 'master'
+
+ parameters:
+ - string:
+ name: 'mversion'
+ default: '{mversion}'
+ description: 'The lttng-modules branch to build.'
+ - string:
+ name: 'maxConcurrentBuild'
+ default: '4'
+ 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://artifacts.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_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.
+
+ <p>Job is managed by Jenkins Job Builder.</p>
+
+ 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://artifacts.internal.efficios.com/git/linux-stable.git'
+ description: 'The linux kernel git repository url.'
+
+ concurrent: true
+ logrotate:
+ daysToKeep: -1
+
+ 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: lttng-modules
+
+ builders:
+ - shell: |
+ git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" 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"
+
+ scm:
+ - git:
+ url: git://github.com/lttng/lttng-modules.git
+ browser: githubweb
+ browser-url: https://github.com/lttng/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/lttng/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
+