Commit | Line | Data |
---|---|---|
a2a6063c FD |
1 | - defaults: |
2 | name: lttng-baremetal-tests | |
3 | ||
4 | logrotate: | |
5 | numToKeep: 5 | |
6 | ||
7 | project-type: freestyle | |
8 | node: 'master' | |
9 | scm: | |
10 | - git: | |
11 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
12 | branches: | |
13 | - "{lttngversion}" | |
14 | shallow-clone: true | |
15 | skip-tag: true | |
16 | fastpoll: true | |
17 | basedir: src/lttng-tools | |
18 | - git: | |
19 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
20 | branches: | |
21 | - "{lttngversion}" | |
22 | shallow-clone: true | |
23 | skip-tag: true | |
24 | fastpoll: true | |
25 | basedir: src/lttng-modules | |
26 | - git: | |
27 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
28 | branches: | |
29 | - "{kversion}" | |
30 | shallow-clone: true | |
31 | skip-tag: true | |
32 | fastpoll: true | |
33 | basedir: src/linux | |
34 | ||
35 | triggers: | |
36 | - pollscm: | |
37 | cron: "@hourly" | |
38 | ||
39 | properties: | |
40 | - throttle: | |
41 | max-total: 3 | |
42 | option: 'category' | |
43 | categories: | |
44 | - 'baremetal-tests' | |
45 | publishers: | |
46 | - email: | |
47 | recipients: 'francis.deslauriers@efficios.com' | |
48 | ||
49 | ## Templates | |
50 | - job-template: | |
51 | name: baremetal_tests_k{kversion}_l{lttngversion} | |
52 | description: | | |
53 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. | |
54 | defaults: lttng-baremetal-tests | |
55 | wrappers: | |
56 | - workspace-cleanup | |
57 | - timestamps | |
58 | - ansicolor | |
59 | - credentials-binding: | |
60 | - text: | |
61 | credential-id: jenkins_lava_key | |
62 | variable: LAVA_FRDESO_TOKEN | |
63 | - inject: | |
64 | properties-content: | | |
65 | TOOLS_BRANCH={lttngversion} | |
66 | UST_BRANCH={lttngversion} | |
67 | ||
68 | builders: | |
69 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh | |
70 | - trigger-builds: | |
71 | - project: "build_kernel_PARAM" | |
72 | property-file: 'properties.txt' | |
73 | block: true | |
74 | - inject: | |
75 | properties-file: properties.txt | |
76 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-tests.sh | |
77 | ||
78 | - job-template: | |
79 | name: baremetal_benchmarks_k{kversion}_l{lttngversion} | |
80 | description: | | |
81 | Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations. | |
82 | defaults: lttng-baremetal-tests | |
83 | logrotate: | |
84 | numToKeep: 5 | |
85 | ||
86 | scm: | |
87 | - git: | |
88 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
89 | branches: | |
90 | - "{lttngversion}" | |
91 | shallow-clone: true | |
92 | skip-tag: true | |
93 | fastpoll: true | |
94 | basedir: src/lttng-tools | |
95 | - git: | |
96 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
97 | branches: | |
98 | - "{lttngversion}" | |
99 | shallow-clone: true | |
100 | skip-tag: true | |
101 | fastpoll: true | |
102 | basedir: src/lttng-modules | |
103 | - git: | |
104 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
105 | branches: | |
106 | - "{kversion}" | |
107 | shallow-clone: true | |
108 | skip-tag: true | |
109 | fastpoll: true | |
110 | basedir: src/linux | |
111 | wrappers: | |
112 | - workspace-cleanup | |
113 | - timestamps | |
114 | - ansicolor | |
115 | - credentials-binding: | |
116 | - text: | |
117 | credential-id: jenkins_lava_key | |
118 | variable: LAVA_FRDESO_TOKEN | |
119 | builders: | |
120 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh | |
121 | - trigger-builds: | |
122 | - project: "build_kernel_PARAM" | |
123 | property-file: 'properties.txt' | |
124 | block: true | |
125 | - inject: | |
126 | properties-file: properties.txt | |
127 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-benchmarks.sh | |
128 | ||
129 | - job: | |
130 | name: build_kernel_PARAM | |
131 | description: | | |
132 | Builds a Linux Kernel and LTTng Modules if necessary | |
133 | defaults: global | |
134 | concurrent: true | |
135 | ||
136 | logrotate: | |
137 | numToKeep: 2 | |
138 | node: 'x86-64' | |
139 | ||
140 | wrappers: | |
141 | - workspace-cleanup | |
142 | - timestamps | |
143 | - ansicolor | |
144 | - credentials-binding: | |
145 | - file: | |
146 | credential-id: lava_jenkins_storage_frdeso | |
147 | variable: identity_file | |
148 | builders: | |
149 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh | |
150 | - inject: | |
151 | properties-file: properties.txt | |
152 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh | |
153 | - conditional-step: | |
154 | condition-kind: not | |
155 | condition-operand: | |
156 | condition-kind: file-exists | |
157 | condition-filename: kernel-built.txt | |
158 | condition-basedir: workspace | |
159 | steps: | |
160 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh | |
161 | - conditional-step: | |
162 | condition-kind: not | |
163 | condition-operand: | |
164 | condition-kind: file-exists | |
165 | condition-filename: modules-built.txt | |
166 | condition-basedir: workspace | |
167 | steps: | |
168 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh | |
169 | ||
170 | parameters: | |
171 | - string: | |
172 | name: 'LTTNG_MODULES_COMMIT_ID' | |
173 | description: 'The lttng-modules commmit to build.' | |
174 | - string: | |
175 | name: 'KERNEL_COMMIT_ID' | |
176 | description: 'The kernel commit to build.' | |
177 | - string: | |
178 | name: 'KGITREPO' | |
179 | description: 'The kernel git repo to fetch from' | |
180 | - string: | |
181 | name: 'STORAGE_KERNEL_FOLDER' | |
182 | description: 'Path to store the Kernel image' | |
183 | - string: | |
184 | name: 'STORAGE_KERNEL_IMAGE' | |
185 | description: 'Path to store the Kernel IMAGE' | |
186 | - string: | |
187 | name: 'STORAGE_LINUX_MODULES' | |
188 | description: 'Path to store the Kernel Modules' | |
189 | - string: | |
190 | name: 'STORAGE_LTTNG_MODULES' | |
191 | description: 'Path to store the LTTng Modules' | |
192 | ||
193 | ## Project | |
194 | - project: | |
195 | name: lttng-kernel-tests | |
196 | kversion: | |
197 | - linux-4.4.y | |
198 | - linux-4.8.y | |
199 | - v4.8.1 | |
200 | lttngversion: | |
201 | - master | |
202 | - stable-2.8 | |
203 | - stable-2.9 | |
204 | jobs: | |
205 | - 'baremetal_tests_k{kversion}_l{lttngversion}' | |
206 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' | |
207 | ||
208 | - project: | |
209 | name: lttng-kernel-tests-oldkernel | |
210 | kversion: | |
211 | - linux-3.18.y | |
212 | - linux-4.4.y | |
213 | lttngversion: | |
214 | - stable-2.7 | |
215 | jobs: | |
216 | - 'baremetal_tests_k{kversion}_l{lttngversion}': | |
217 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}': |