Commit | Line | Data |
---|---|---|
598af463 MJ |
1 | --- |
2 | - defaults: | |
3 | name: lttng-modules | |
4 | description: | | |
a3c2d81c MJ |
5 | Build lttng-modules against different Linux kernels. |
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 | ||
22 | scm: | |
a3c2d81c MJ |
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 | - git: |
33 | url: git://github.com/lttng/lttng-modules.git | |
34 | branches: | |
35 | - "{mversion}" | |
36 | basedir: lttng-modules | |
37 | ||
598af463 MJ |
38 | properties: |
39 | - throttle: | |
40 | max-per-node: 0 | |
41 | max-total: 0 | |
a3c2d81c | 42 | option: category |
598af463 MJ |
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 | |
a3c2d81c | 53 | node: 'x86_32 || x86_64' # Applies only to matrix flyweight task |
598af463 MJ |
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' | |
a3c2d81c MJ |
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 | |
598af463 MJ |
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 | |
a3c2d81c | 77 | - workspace-cleanup |
598af463 MJ |
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] | |
af978102 MJ |
91 | #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
92 | # buildtype: portbuild | |
93 | # arch: !!python/tuple [armhf, powerpc] |