Improve reliability of kernel jobs
[lttng-ci.git] / jobs / kernel.yaml
CommitLineData
598af463
MJ
1---
2- defaults:
3 name: kernel
4 description: |
a3c2d81c
MJ
5 Prepare kernel tree for OOT build of lttng-modules
6
7 <p>Job is managed by Jenkins Job Builder.</p>
598af463
MJ
8
9 project-type: freestyle
10
11 logrotate:
12 daysToKeep: -1
13 numToKeep: 2
14 artifactDaysToKeep: -1
15 artifactNumToKeep: -1
16
17 wrappers:
18 - workspace-cleanup
19 - timestamps
20 - ansicolor
21
a3c2d81c
MJ
22 #scm:
23 # - git:
24 # url: git://artifacts.internal.efficios.com/git/linux-stable.git
25 # branches:
26 # - refs/tags/v{kversion}
27 # shallow-clone: true
28 # skip-tag: true
29 # fastpoll: true
30 # basedir: linux
31 # reference-repo: $HOME/gitcache/linux-stable.git/
598af463
MJ
32
33 properties:
34 - throttle:
35 max-per-node: 0
36 max-total: 0
a3c2d81c 37 option: category
598af463
MJ
38 categories:
39 - 'lttng-module-linux'
40
41
42## Templates
43- job-template:
44 name: kernel_{kversion}_{buildtype}
45 defaults: kernel
46
47 project-type: matrix
a3c2d81c 48 node: 'x86-32 || x86-64' # Applies only to matrix flyweight task
598af463
MJ
49 axes:
50 - axis:
51 type: slave
52 name: arch
53 values: '{obj:arch}'
54
55 builders:
a3c2d81c
MJ
56 - shell: |
57 git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://artifacts.internal.efficios.com/git/linux-stable.git linux
598af463
MJ
58 - shell:
59 !include-raw-escape scripts/kernel/build.sh
60
61 publishers:
62 - archive:
63 artifacts: 'build/**'
64 allow-empty: false
65 fingerprint: true
a3c2d81c 66 - workspace-cleanup
598af463
MJ
67
68
69## Project
70- project:
71 name: kernel
72 kversion:
73 !include jobs/inc/kernel-versions.yaml.inc
74 jobs:
75 - 'kernel_{kversion}_{buildtype}':
76 buildtype: build
77 arch: !!python/tuple [x86-32, x86-64]
af978102
MJ
78 #- 'kernel_{kversion}_{buildtype}':
79 # buildtype: portbuild
80 # arch: !!python/tuple [armhf, powerpc]
This page took 0.026138 seconds and 4 git commands to generate.