Improve reliability of kernel jobs
[lttng-ci.git] / jobs / lttng-modules.yaml
1 ---
2 - defaults:
3 name: lttng-modules
4 description: |
5 Build lttng-modules against different Linux kernels.
6
7 <p>Job is managed by Jenkins Job Builder.</p>
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
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/
32 - git:
33 url: git://github.com/lttng/lttng-modules.git
34 branches:
35 - "{mversion}"
36 basedir: lttng-modules
37
38 properties:
39 - throttle:
40 max-per-node: 0
41 max-total: 0
42 option: category
43 categories:
44 - 'lttng-module-linux'
45
46
47 ## Templates
48 - job-template:
49 name: lttng-modules_{mversion}_{kversion}_{buildtype}
50 defaults: lttng-modules
51
52 project-type: matrix
53 node: 'x86_32 || x86_64' # Applies only to matrix flyweight task
54 axes:
55 - axis:
56 type: slave
57 name: arch
58 values: '{obj:arch}'
59
60 builders:
61 - copyartifact:
62 project: kernel_{kversion}_{buildtype}/arch=$arch
63 which-build: last-successful
64 stable: true
65 filter: 'build/**'
66 target: 'deps/linux'
67 - shell: |
68 git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://artifacts.internal.efficios.com/git/linux-stable.git linux
69 - shell:
70 !include-raw-escape scripts/lttng-modules/build.sh
71
72 publishers:
73 - archive:
74 artifacts: 'build/**'
75 allow-empty: false
76 fingerprint: true
77 - workspace-cleanup
78
79
80 ## Project
81 - project:
82 name: lttng-modules
83 mversion:
84 !include jobs/inc/lttng-modules-versions.yaml.inc
85 kversion:
86 !include jobs/inc/kernel-versions.yaml.inc
87 jobs:
88 - 'lttng-modules_{mversion}_{kversion}_{buildtype}':
89 buildtype: build
90 arch: !!python/tuple [x86-32, x86-64]
91 #- 'lttng-modules_{mversion}_{kversion}_{buildtype}':
92 # buildtype: portbuild
93 # arch: !!python/tuple [armhf, powerpc]
This page took 0.033426 seconds and 5 git commands to generate.