32bb99516b3e27baba07f97ade234011123e762a
[lttng-ci.git] / jobs / lttng-baremetal-tests.yaml
1 - defaults:
2 name: baremetal_benchmarks
3 description: |
4 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
5
6 triggers:
7 - pollscm:
8 cron: "@hourly"
9 logrotate:
10 numToKeep: 10
11
12 properties:
13 - throttle:
14 max-total: 2
15 option: 'category'
16 categories:
17 - 'baremetal-tests'
18 project-type: freestyle
19 node: 'x86-64'
20 wrappers:
21 - workspace-cleanup
22 - timestamps
23 - ansicolor
24 - credentials-binding:
25 - text:
26 credential-id: jenkins_lava_key
27 variable: LAVA_FRDESO_TOKEN
28 - inject:
29 properties-content: |
30 TOOLS_BRANCH={lttngversion}
31 UST_BRANCH={lttngversion}
32 BUILD_DEVICE=baremetal
33 publishers:
34 - archive:
35 artifacts: '*.png,*.csv'
36 stable: true
37 do-not-fingerprint: true
38 - email:
39 recipients: 'francis.deslauriers@efficios.com'
40 - image-gallery:
41 - gallery-type: archived-images-gallery
42 title: Results
43 includes: '*.png'
44 scm:
45 - git:
46 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
47 branches:
48 - "{lttngversion}"
49 shallow-clone: true
50 skip-tag: true
51 fastpoll: true
52 basedir: src/lttng-tools
53 - git:
54 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
55 branches:
56 - "{lttngversion}"
57 shallow-clone: true
58 skip-tag: true
59 fastpoll: true
60 basedir: src/lttng-modules
61 - git:
62 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
63 branches:
64 - "{kversion}"
65 shallow-clone: true
66 skip-tag: true
67 fastpoll: true
68 basedir: src/linux
69
70 builders:
71 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
72 - trigger-builds:
73 - project: "build_kernel_PARAM"
74 property-file: 'properties.txt'
75 block: true
76 - inject:
77 properties-file: properties.txt
78 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh
79
80 - defaults:
81 name: kvm_tests
82 description: |
83 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
84 project-type: freestyle
85 node: 'master'
86 properties:
87 - throttle:
88 max-total: 2
89 option: 'category'
90 categories:
91 - 'kvm-tests'
92 triggers:
93 - pollscm:
94 cron: "@hourly"
95 logrotate:
96 numToKeep: 10
97
98 wrappers:
99 - workspace-cleanup
100 - timestamps
101 - ansicolor
102 - credentials-binding:
103 - text:
104 credential-id: jenkins_lava_key
105 variable: LAVA_FRDESO_TOKEN
106 - inject:
107 properties-content: |
108 BUILD_DEVICE=kvm
109 TOOLS_BRANCH={lttngversion}
110 UST_BRANCH={lttngversion}
111 scm:
112 - git:
113 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
114 branches:
115 - "{lttngversion}"
116 shallow-clone: true
117 skip-tag: true
118 fastpoll: true
119 basedir: src/lttng-tools
120 - git:
121 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
122 branches:
123 - "{lttngversion}"
124 shallow-clone: true
125 skip-tag: true
126 fastpoll: true
127 basedir: src/lttng-modules
128 - git:
129 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
130 branches:
131 - "{kversion}"
132 shallow-clone: true
133 skip-tag: true
134 fastpoll: true
135 basedir: src/linux
136
137 publishers:
138 - email:
139 recipients: 'francis.deslauriers@efficios.com'
140 builders:
141 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
142 - trigger-builds:
143 - project: "build_kernel_PARAM"
144 property-file: 'properties.txt'
145 block: true
146 - inject:
147 properties-file: properties.txt
148 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh
149
150 - defaults:
151 name: baremetal_tests
152 description: |
153 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
154 project-type: freestyle
155 node: 'master'
156 properties:
157 - throttle:
158 max-total: 2
159 option: 'category'
160 categories:
161 - 'baremetal-tests'
162 triggers:
163 - pollscm:
164 cron: "@hourly"
165 logrotate:
166 numToKeep: 10
167
168 wrappers:
169 - workspace-cleanup
170 - timestamps
171 - ansicolor
172 - credentials-binding:
173 - text:
174 credential-id: jenkins_lava_key
175 variable: LAVA_FRDESO_TOKEN
176 - inject:
177 properties-content: |
178 UST_BRANCH={lttngversion}
179 BUILD_DEVICE=baremetal
180 scm:
181 - git:
182 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
183 branches:
184 - "{lttngversion}"
185 shallow-clone: true
186 skip-tag: true
187 fastpoll: true
188 basedir: src/lttng-tools
189 - git:
190 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
191 branches:
192 - "{lttngversion}"
193 shallow-clone: true
194 skip-tag: true
195 fastpoll: true
196 basedir: src/lttng-modules
197 - git:
198 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
199 branches:
200 - "{kversion}"
201 shallow-clone: true
202 skip-tag: true
203 fastpoll: true
204 basedir: src/linux
205
206 publishers:
207 - email:
208 recipients: 'francis.deslauriers@efficios.com'
209 builders:
210 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
211 - trigger-builds:
212 - project: "build_kernel_PARAM"
213 property-file: 'properties.txt'
214 block: true
215 - inject:
216 properties-file: properties.txt
217 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh
218
219 - job-template:
220 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
221 defaults: baremetal_benchmarks
222 - job-template:
223 name: kvm_tests_k{kversion}_l{lttngversion}
224 defaults: kvm_tests
225 - job-template:
226 name: baremetal_tests_k{kversion}_l{lttngversion}
227 defaults: baremetal_tests
228
229 - job-template:
230 name: baremetal_tests_k{kversion}_l{lttngversion}_canary
231 defaults: baremetal_tests
232 - job-template:
233 name: kvm_tests_k{kversion}_l{lttngversion}_canary
234 defaults: kvm_tests
235 - job-template:
236 name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary
237 defaults: baremetal_benchmarks
238
239 - job-template:
240 name: kvm_tests_kmainline_l{lttngversion}
241 defaults: kvm_tests
242 triggers:
243 - pollscm:
244 cron: "@daily"
245 scm:
246 - git:
247 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
248 branches:
249 - "{lttngversion}"
250 shallow-clone: true
251 skip-tag: true
252 fastpoll: true
253 basedir: src/lttng-tools
254 - git:
255 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
256 branches:
257 - "{lttngversion}"
258 shallow-clone: true
259 skip-tag: true
260 fastpoll: true
261 basedir: src/lttng-modules
262 - git:
263 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
264 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
265 branches:
266 - "master"
267 fastpoll: true
268 basedir: src/linux
269
270 - job-template:
271 name: baremetal_tests_kmainline_l{lttngversion}
272 defaults: baremetal_tests
273 triggers:
274 - pollscm:
275 cron: "@daily"
276 scm:
277 - git:
278 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
279 branches:
280 - "{lttngversion}"
281 shallow-clone: true
282 skip-tag: true
283 fastpoll: true
284 basedir: src/lttng-tools
285 - git:
286 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
287 branches:
288 - "{lttngversion}"
289 shallow-clone: true
290 skip-tag: true
291 fastpoll: true
292 basedir: src/lttng-modules
293 - git:
294 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
295 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
296 branches:
297 - "master"
298 fastpoll: true
299 basedir: src/linux
300
301 - job-template:
302 name: baremetal_benchmarks_kmainline_l{lttngversion}
303 defaults: baremetal_benchmarks
304 triggers:
305 - pollscm:
306 cron: "@daily"
307 scm:
308 - git:
309 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
310 branches:
311 - "{lttngversion}"
312 shallow-clone: true
313 skip-tag: true
314 fastpoll: true
315 basedir: src/lttng-tools
316 - git:
317 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
318 branches:
319 - "{lttngversion}"
320 shallow-clone: true
321 skip-tag: true
322 fastpoll: true
323 basedir: src/lttng-modules
324 - git:
325 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
326 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
327 branches:
328 - "master"
329 fastpoll: true
330 basedir: src/linux
331
332 - job:
333 name: build_kernel_PARAM
334 description: |
335 Builds a Linux Kernel and LTTng Modules if necessary
336 defaults: global
337 concurrent: true
338
339 logrotate:
340 numToKeep: 20
341 node: 'x86-64'
342
343 wrappers:
344 - workspace-cleanup
345 - timestamps
346 - ansicolor
347 - credentials-binding:
348 - file:
349 credential-id: lava_jenkins_storage_frdeso
350 variable: identity_file
351 builders:
352 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh
353 - inject:
354 properties-file: properties.txt
355 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh
356 - conditional-step:
357 condition-kind: not
358 condition-operand:
359 condition-kind: file-exists
360 condition-filename: kernel-built.txt
361 condition-basedir: workspace
362 steps:
363 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh
364 - conditional-step:
365 condition-kind: not
366 condition-operand:
367 condition-kind: file-exists
368 condition-filename: modules-built.txt
369 condition-basedir: workspace
370 steps:
371 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh
372
373 parameters:
374 - string:
375 name: 'LTTNG_MODULES_COMMIT_ID'
376 description: 'The lttng-modules commmit to build.'
377 - string:
378 name: 'KERNEL_COMMIT_ID'
379 description: 'The kernel commit to build.'
380 - string:
381 name: 'KGITREPO'
382 description: 'The kernel git repo to fetch from'
383 - string:
384 name: 'STORAGE_KERNEL_FOLDER'
385 description: 'Path to store the Kernel image'
386 - string:
387 name: 'STORAGE_KERNEL_IMAGE'
388 description: 'Path to store the Kernel IMAGE'
389 - string:
390 name: 'STORAGE_LINUX_MODULES'
391 description: 'Path to store the Kernel Modules'
392 - string:
393 name: 'STORAGE_LTTNG_MODULES'
394 description: 'Path to store the LTTng Modules'
395 - string:
396 name: 'BUILD_DEVICE'
397 description: 'The target device. (kvm or baremetal)'
398
399 ## Project
400 - project:
401 name: lttng-kernel-tests
402 kversion:
403 - linux-4.4.y
404 - linux-4.8.y
405 - v4.8.1
406 lttngversion:
407 - master
408 - stable-2.8
409 - stable-2.9
410 jobs:
411 - 'kvm_tests_k{kversion}_l{lttngversion}'
412 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
413 - 'baremetal_tests_k{kversion}_l{lttngversion}'
414
415 - project:
416 name: lttng-kernel-tests-oldkernel
417 kversion:
418 - linux-3.18.y
419 - linux-4.4.y
420 lttngversion:
421 - stable-2.7
422 jobs:
423 - 'kvm_tests_k{kversion}_l{lttngversion}':
424 - 'baremetal_tests_k{kversion}_l{lttngversion}':
425 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}':
426
427 - project:
428 name: lttng-kernel-tests-canary
429 kversion:
430 - v4.4.9
431 lttngversion:
432 - v2.8.1
433 jobs:
434 - 'kvm_tests_k{kversion}_l{lttngversion}_canary'
435 - 'baremetal_tests_k{kversion}_l{lttngversion}_canary'
436 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary'
437
438 - project:
439 name: lttng-kernel-tests-mainline
440 lttngversion:
441 - v2.8.1
442 jobs:
443 - 'kvm_tests_kmainline_l{lttngversion}'
444 - 'baremetal_tests_kmainline_l{lttngversion}'
445 - 'baremetal_benchmarks_kmainline_l{lttngversion}'
This page took 0.04108 seconds and 4 git commands to generate.