jjb: Make scan-build a common script
[lttng-ci.git] / jobs / lttng-modules.yaml
index 27436c6b4f8dc817ee01638a79272e5f091383a8..1b0c8fe6b7fa1ce63e920e0fa64ec7e9c0512dc6 100644 (file)
@@ -9,9 +9,6 @@
 
     project-type: freestyle
 
-    logrotate:
-        numToKeep: 2
-
     wrappers:
       - workspace-cleanup
       - timestamps
 
     scm:
       - git:
-          url: git://github.com/lttng/lttng-modules.git
+          url: git://github.com/{github_user}/{github_name}.git
           browser: githubweb
-          browser-url: https://github.com/lttng/lttng-modules
+          browser-url: https://github.com/{github_user}/{github_name}
           branches:
             - "{mversion}"
           shallow-clone: true
           skip-tag: true
           fastpoll: true
-          basedir: lttng-modules
+          basedir: src/lttng-modules
 
     triggers:
       - pollscm:
           cron: "@hourly"
 
     properties:
+      - build-discarder:
+          num-to-keep: 2
       - github:
-          url: https://github.com/lttng/lttng-modules
+          url: https://github.com/{github_user}/{github_name}
 
 
 ## Templates
@@ -60,7 +59,7 @@
           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
+          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
 
@@ -91,7 +90,7 @@
           description: 'The lttng-modules branch to build.'
       - string:
           name: 'maxConcurrentBuild'
-          default: '4'
+          default: '20'
           description: 'The maximum number of concurrent child build to run.'
       - string:
           name: 'kverfloor'
@@ -99,7 +98,7 @@
           description: 'The lowest kernel version to build.'
       - string:
           name: 'kgitrepo'
-          default: 'git://artifacts.internal.efficios.com/git/linux-stable.git'
+          default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git'
           description: 'The linux kernel git repository url.'
       - string:
           name: 'kbuildjob'
           description: 'The lttng-modules branch to build.'
       - string:
           name: 'maxConcurrentBuild'
-          default: '4'
+          default: '20'
           description: 'The maximum number of concurrent child build to run.'
       - string:
           name: 'uversion'
           description: 'The lowest kernel version to build.'
       - string:
           name: 'kgitrepo'
-          default: 'git://artifacts.internal.efficios.com/git/ubuntu-{uversion}.git'
+          default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git'
           description: 'The linux kernel git repository url.'
       - string:
           name: 'kbuildjob'
           description: 'The lttng-modules branch to build.'
       - string:
           name: 'maxConcurrentBuild'
-          default: '4'
+          default: '20'
           description: 'The maximum number of concurrent child build to run.'
       - string:
           name: 'kverfloor'
           description: 'The lowest kernel version to build.'
       - string:
           name: 'kgitrepo'
-          default: 'git://artifacts.internal.efficios.com/git/linux-rt-devel.git'
+          default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-rt-devel.git'
           description: 'The linux kernel git repository url.'
       - string:
           name: 'kbuildjob'
           description: 'The linux kernel git tag to build against.'
       - string:
           name: 'kgitrepo'
-          default: 'git://artifacts.internal.efficios.com/git/linux-stable.git'
+          default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git'
           description: 'The linux kernel git repository url.'
 
     concurrent: true
-    logrotate:
-      daysToKeep: 2
 
     scm:
       - git:
           branches:
             - "${{mversion}}"
           skip-tag: true
-          basedir: lttng-modules
+          basedir: src/lttng-modules
 
     triggers:
 
     builders:
       - shell: |
-          git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" linux
+          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
 
       - 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
               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
 
       - 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
+          cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml
 
     publishers:
       - archive:
 
     builders:
       - shell: |
-          cloc --by-file --xml --out=cloc.xml lttng-modules/
+          cloc --by-file --xml --out=cloc.xml src/lttng-modules/
 
     publishers:
       - archive:
 ## Project
 - project:
     name: lttng-modules
+    github_user: lttng
+    github_name: lttng-modules
     mversion:
-      !include: jobs/inc/lttng-modules-versions.yaml.inc
+      - stable-2.7
+      - stable-2.8
+      - master
     jobs:
       - 'lttng-modules_{mversion}_build-vanilla'
       - 'lttng-modules_{mversion}_build-rt':
This page took 0.027599 seconds and 4 git commands to generate.