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