Improve reliability of kernel jobs
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 26 Aug 2015 15:33:16 +0000 (11:33 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 26 Aug 2015 15:33:16 +0000 (11:33 -0400)
jobs/kernel.yaml
jobs/lttng-modules.yaml

index cb968d2a2e3a46d30c268eff4e4591c5c7689ca9..0bc925550935a2f6b7be4882266b9e0bdb2853e6 100644 (file)
@@ -2,7 +2,9 @@
 - defaults:
     name: kernel
     description: |
-      TODO
+      Prepare kernel tree for OOT build of lttng-modules
+
+      <p>Job is managed by Jenkins Job Builder.</p>
 
     project-type: freestyle
 
       - timestamps
       - ansicolor
 
-    scm:
-      - git:
-          url: git://artifacts.internal.efficios.com/git/linux-stable.git
-          branches:
-            - refs/tags/v{kversion}
-          shallow-clone: true
-          skip-tag: true
-          fastpoll: true
-          basedir: linux
-          reference-repo: $HOME/gitcache/linux-stable.git/
+    #scm:
+    #  - git:
+    #      url: git://artifacts.internal.efficios.com/git/linux-stable.git
+    #      branches:
+    #        - refs/tags/v{kversion}
+    #      shallow-clone: true
+    #      skip-tag: true
+    #      fastpoll: true
+    #      basedir: linux
+    #      reference-repo: $HOME/gitcache/linux-stable.git/
 
     properties:
       - throttle:
           max-per-node: 0
           max-total: 0
+          option: category
           categories:
             - 'lttng-module-linux'
 
@@ -42,6 +45,7 @@
     defaults: kernel
 
     project-type: matrix
+    node: 'x86-32 || x86-64' # Applies only to matrix flyweight task
     axes:
       - axis:
          type: slave
@@ -49,6 +53,8 @@
          values: '{obj:arch}'
 
     builders:
+      - 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/kernel/build.sh
 
@@ -57,9 +63,7 @@
           artifacts: 'build/**'
           allow-empty: false
           fingerprint: true
-      - trigger:
-          project: lttng-modules_master_{kversion}_{buildtype}
-          threshold: SUCCESS
+      - workspace-cleanup
 
 
 ## Project
index 23eb06b96fadde570ed9576120fcf6936a2a6618..0c837adb4752dff5573db86e11e1f31707742bd6 100644 (file)
@@ -2,7 +2,9 @@
 - defaults:
     name: lttng-modules
     description: |
-      TODO
+      Build lttng-modules against different Linux kernels.
+
+      <p>Job is managed by Jenkins Job Builder.</p>
 
     project-type: freestyle
 
       - ansicolor
 
     scm:
-      - git:
-          url: git://artifacts.internal.efficios.com/git/linux-stable.git
-          branches:
-            - refs/tags/v{kversion}
-          shallow-clone: true
-          skip-tag: true
-          fastpoll: true
-          basedir: linux
-          reference-repo: $HOME/gitcache/linux-stable.git/
+      #- git:
+      #    url: git://artifacts.internal.efficios.com/git/linux-stable.git
+      #    branches:
+      #      - refs/tags/v{kversion}
+      #    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:
@@ -37,6 +39,7 @@
       - throttle:
           max-per-node: 0
           max-total: 0
+          option: category
           categories:
             - 'lttng-module-linux'
 
@@ -47,6 +50,7 @@
     defaults: lttng-modules
 
     project-type: matrix
+    node: 'x86_32 || x86_64' # Applies only to matrix flyweight task
     axes:
       - axis:
          type: slave
@@ -60,6 +64,8 @@
           stable: true
           filter: 'build/**'
           target: 'deps/linux'
+      - 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
 
@@ -68,6 +74,7 @@
           artifacts: 'build/**'
           allow-empty: false
           fingerprint: true
+      - workspace-cleanup
 
 
 ## Project
This page took 0.025679 seconds and 4 git commands to generate.