Commit | Line | Data |
---|---|---|
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 | |
ca8c6144 | 48 | node: 'master' # 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 | |
a3c2d81c | 65 | - workspace-cleanup |
598af463 MJ |
66 | |
67 | ||
68 | ## Project | |
69 | - project: | |
70 | name: kernel | |
71 | kversion: | |
72 | !include jobs/inc/kernel-versions.yaml.inc | |
73 | jobs: | |
74 | - 'kernel_{kversion}_{buildtype}': | |
75 | buildtype: build | |
76 | arch: !!python/tuple [x86-32, x86-64] | |
af978102 MJ |
77 | #- 'kernel_{kversion}_{buildtype}': |
78 | # buildtype: portbuild | |
79 | # arch: !!python/tuple [armhf, powerpc] |