61f46acf9f3991c10cd1fdb1f5b3ee7d7c633b9a
[lttng-ci.git] / jobs / lttng-tools.yaml
1 - defaults:
2 name: lttng-tools
3 description: |
4 The lttng-tools project provides a session daemon (lttng-sessiond)
5 that acts as a tracing registry, the "lttng" command line for tracing
6 control, a lttng-ctl library for tracing control and a lttng-relayd
7 for network streaming.
8
9 <p>Job is managed by Jenkins Job Builder.</p>
10
11 project-type: freestyle
12
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
20 url: git://github.com/{github_user}/{github_name}.git
21 browser: githubweb
22 browser-url: https://github.com/{github_user}/{github_name}
23 branches:
24 - origin/{version}
25
26 triggers:
27 - pollscm:
28 cron: "@hourly"
29
30 properties:
31 - github:
32 url: https://github.com/{github_user}/{github_name}
33 - build-discarder:
34 num-to-keep: 20
35 artifact-num-to-keep: 2
36
37
38 ## Templates
39
40 - lttng-tools_version_buildtype_anchor: &lttng-tools_version_buildtype_anchor
41 name: 'lttng-tools_version_buildtype_anchor'
42 defaults: lttng-tools
43
44 project-type: matrix
45 node: 'master' # Applies only to matrix flyweight task
46 axes:
47 - axis:
48 type: slave
49 name: arch
50 values: '{obj:arch}'
51 - axis:
52 type: user-defined
53 name: conf
54 values: '{obj:conf}'
55 - axis:
56 type: user-defined
57 name: liburcu_version
58 values: '{obj:urcuversion}'
59 - axis:
60 type: user-defined
61 name: babeltrace_version
62 values: '{obj:babelversion}'
63 - axis:
64 type: user-defined
65 name: build
66 values: '{obj:build}'
67
68 properties:
69 - github:
70 url: https://github.com/{github_user}/{github_name}
71 - build-discarder:
72 num-to-keep: 20
73 artifact-num-to-keep: 2
74 - throttle:
75 max-per-node: 1
76 option: 'category'
77 categories:
78 - 'lttng-tools'
79 matrix-builds: false
80 matrix-configs: true
81
82 builders:
83 - conditional-step:
84 condition-kind: regex-match
85 label: '$conf'
86 regex: (std|static)
87 on-evaluation-failure: run
88 steps:
89 - copyartifact:
90 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
91 which-build: last-successful
92 stable: true
93 filter: 'build/**'
94 target: 'deps/liburcu'
95 do-not-fingerprint: true
96 - copyartifact:
97 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
98 which-build: last-successful
99 stable: true
100 filter: 'build/**'
101 target: 'deps/babeltrace'
102 do-not-fingerprint: true
103 - copyartifact:
104 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
105 which-build: last-successful
106 stable: true
107 filter: 'build/**'
108 target: 'deps/lttng-ust'
109 do-not-fingerprint: true
110 - conditional-step:
111 condition-kind: regex-match
112 label: '$conf'
113 regex: (python-bindings|no-ust)
114 on-evaluation-failure: run
115 steps:
116 - copyartifact:
117 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
118 which-build: last-successful
119 stable: true
120 filter: 'build/**'
121 target: 'deps/liburcu'
122 do-not-fingerprint: true
123 - copyartifact:
124 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
125 which-build: last-successful
126 stable: true
127 filter: 'build/**'
128 target: 'deps/babeltrace'
129 do-not-fingerprint: true
130 - copyartifact:
131 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
132 which-build: last-successful
133 stable: true
134 filter: 'build/**'
135 target: 'deps/lttng-ust'
136 do-not-fingerprint: true
137 - conditional-step:
138 condition-kind: regex-match
139 label: '$conf'
140 regex: (java-agent|python-agent)
141 on-evaluation-failure: run
142 steps:
143 - copyartifact:
144 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
145 which-build: last-successful
146 stable: true
147 filter: 'build/**'
148 target: 'deps/liburcu'
149 do-not-fingerprint: true
150 - copyartifact:
151 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
152 which-build: last-successful
153 stable: true
154 filter: 'build/**'
155 target: 'deps/babeltrace'
156 do-not-fingerprint: true
157 - copyartifact:
158 project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
159 which-build: last-successful
160 stable: true
161 filter: 'build/**'
162 target: 'deps/lttng-ust'
163 do-not-fingerprint: true
164 - shell:
165 !include-raw-escape: scripts/lttng-tools/build.sh
166
167
168 - job-template:
169 name: lttng-tools_{version}_{buildtype}
170 <<: *lttng-tools_version_buildtype_anchor
171 triggers:
172 - pollscm:
173 cron: "@hourly"
174 - reverse:
175 jobs: 'lttng-ust_{version}_{buildtype}'
176 result: 'success'
177
178 publishers:
179 - tap:
180 results: 'tap/**/*.tap'
181 failed-tests-mark-build-as-failure: true
182 todo-is-failure: false
183 - warnings:
184 console-log-parsers:
185 - 'GNU Make + GNU C Compiler (gcc)'
186 total-thresholds:
187 unstable:
188 total-all: 0
189 total-high: 0
190 total-normal: 0
191 total-low: 0
192 - archive:
193 artifacts: 'build/**'
194 allow-empty: false
195 - workspace-cleanup:
196 clean-if:
197 - failure: false
198 - ircbot:
199 strategy: new-failure-and-fixed
200 matrix-notifier: only-parent
201 channels:
202 - name: '#lttng'
203
204
205 - job-template:
206 name: dev_{user}_lttng-tools_{version}_{buildtype}
207 <<: *lttng-tools_version_buildtype_anchor
208
209 publishers:
210 - tap:
211 results: 'tap/**/*.tap'
212 failed-tests-mark-build-as-failure: true
213 todo-is-failure: false
214 - warnings:
215 console-log-parsers:
216 - 'GNU Make + GNU C Compiler (gcc)'
217 total-thresholds:
218 unstable:
219 total-all: 0
220 total-high: 0
221 total-normal: 0
222 total-low: 0
223 - workspace-cleanup:
224 clean-if:
225 - failure: false
226
227
228 - job-template:
229 name: lttng-tools_{version}_cppcheck
230 defaults: lttng-tools
231
232 triggers:
233 - pollscm:
234 cron: "@daily"
235
236 builders:
237 - shell: |
238 rm -f lttng-tools-cppcheck.xml
239 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
240
241 publishers:
242 - archive:
243 artifacts: 'lttng-tools-cppcheck.xml'
244 allow-empty: false
245 - cppcheck:
246 pattern: 'lttng-tools-cppcheck.xml'
247 - email:
248 recipients: 'ci-notification@lists.lttng.org'
249 notify-every-unstable-build: true
250 send-to-individuals: false
251
252 - job-template:
253 name: lttng-tools_{version}_scan-build
254 defaults: lttng-tools
255 node: 'x86-64'
256
257 triggers:
258 - pollscm:
259 cron: "@daily"
260
261 builders:
262 - copyartifact:
263 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
264 which-build: last-successful
265 stable: true
266 filter: 'build/**'
267 target: 'deps/liburcu'
268 do-not-fingerprint: true
269 - copyartifact:
270 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
271 which-build: last-successful
272 stable: true
273 filter: 'build/**'
274 target: 'deps/lttng-ust'
275 do-not-fingerprint: true
276 - shell:
277 !include-raw-escape: scripts/lttng-tools/scan-build.sh
278
279 publishers:
280 - html-publisher:
281 name: 'HTML Report'
282 dir: 'scan-build-archive/'
283 files: 'index.html'
284
285 - job-template:
286 name: lttng-tools_{version}_coverity
287 defaults: lttng-tools
288 node: 'x86-64'
289
290 triggers:
291 - pollscm:
292 cron: "@daily"
293
294 wrappers:
295 - workspace-cleanup
296 - timestamps
297 - ansicolor:
298 colormap: xterm
299 - credentials-binding:
300 - username-password-separated:
301 credential-id: lttng-tools_coverity_token
302 username: COVERITY_SCAN_PROJECT_NAME
303 password: COVERITY_SCAN_TOKEN
304
305 builders:
306 - copyartifact:
307 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
308 which-build: last-successful
309 stable: true
310 filter: 'build/**'
311 target: 'deps/liburcu'
312 do-not-fingerprint: true
313 - copyartifact:
314 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
315 which-build: last-successful
316 stable: true
317 filter: 'build/**'
318 target: 'deps/lttng-ust'
319 do-not-fingerprint: true
320 - shell:
321 !include-raw-escape: scripts/common/coverity.sh
322
323 publishers:
324 - workspace-cleanup
325
326 # TODO
327 - job-template:
328 name: lttng-tools_{version}_pylint
329 defaults: lttng-tools
330 node: 'x86-64'
331
332 scm: []
333
334 triggers:
335 - pollscm:
336 cron: "@daily"
337
338 builders:
339 - copyartifact:
340 project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent
341 which-build: last-successful
342 stable: true
343 filter: 'build/**'
344 target: 'deps/lttng-tools'
345 do-not-fingerprint: true
346 - shell:
347 !include-raw-escape: scripts/lttng-tools/pylint.sh
348
349 publishers:
350 - archive:
351 artifacts: 'pep8.out,pylint.out'
352 - violations:
353 pep8:
354 pattern: pep8.out
355 min: 10
356 max: 999
357 unstable: 999
358 pylint:
359 pattern: pylint.out
360 min: 10
361 max: 999
362 unstable: 999
363 - email:
364 recipients: 'ci-notification@lists.lttng.org'
365 notify-every-unstable-build: true
366 send-to-individuals: false
367
368
369 ## Project
370 - project:
371 name: lttng-tools
372 github_user: lttng
373 github_name: lttng-tools
374 version:
375 - stable-2.7
376 - stable-2.8
377 - master
378 jobs:
379 - 'lttng-tools_{version}_{buildtype}':
380 buildtype: build
381 version: master
382 ustversion: master
383 arch: !!python/tuple [x86-32, x86-64]
384 build: !!python/tuple [std, oot, dist]
385 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
386 urcuversion: !!python/tuple [master]
387 babelversion: !!python/tuple [master]
388 - 'lttng-tools_{version}_{buildtype}':
389 buildtype: portbuild
390 version: master
391 ustversion: master
392 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
393 build: !!python/tuple [std]
394 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
395 urcuversion: !!python/tuple [master]
396 babelversion: !!python/tuple [master]
397 - 'lttng-tools_{version}_{buildtype}':
398 buildtype: build
399 version: stable-2.8
400 ustversion: stable-2.8
401 arch: !!python/tuple [x86-32, x86-64]
402 build: !!python/tuple [std, oot, dist]
403 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
404 urcuversion: !!python/tuple [stable-0.9]
405 babelversion: !!python/tuple [stable-1.4]
406 - 'lttng-tools_{version}_{buildtype}':
407 buildtype: portbuild
408 version: stable-2.8
409 ustversion: stable-2.8
410 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
411 build: !!python/tuple [std]
412 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
413 urcuversion: !!python/tuple [stable-0.9]
414 babelversion: !!python/tuple [stable-1.4]
415 - 'lttng-tools_{version}_{buildtype}':
416 buildtype: build
417 version: stable-2.7
418 ustversion: stable-2.7
419 arch: !!python/tuple [x86-32, x86-64]
420 build: !!python/tuple [std, oot, dist]
421 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
422 urcuversion: !!python/tuple [stable-0.9]
423 babelversion: !!python/tuple [stable-1.3]
424 - 'lttng-tools_{version}_{buildtype}':
425 buildtype: portbuild
426 version: stable-2.7
427 ustversion: stable-2.7
428 arch: !!python/tuple [armhf, arm64, powerpc]
429 build: !!python/tuple [std]
430 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
431 urcuversion: !!python/tuple [stable-0.9]
432 babelversion: !!python/tuple [stable-1.3]
433 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
434 user: jgalar
435 github_user: jgalar
436 github_name: lttng-tools
437 buildtype: build
438 version: master-staging
439 ustversion: master
440 arch: !!python/tuple [x86-32, x86-64]
441 build: !!python/tuple [std, oot, dist]
442 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
443 urcuversion: !!python/tuple [master]
444 babelversion: !!python/tuple [master]
445 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
446 user: jgalar
447 github_user: jgalar
448 github_name: lttng-tools
449 buildtype: build
450 version: stable-2.8-staging
451 ustversion: stable-2.8
452 arch: !!python/tuple [x86-32, x86-64]
453 build: !!python/tuple [std, oot, dist]
454 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
455 urcuversion: !!python/tuple [stable-0.9]
456 babelversion: !!python/tuple [stable-1.4]
457 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
458 user: jgalar
459 github_user: jgalar
460 github_name: lttng-tools
461 buildtype: build
462 version: stable-2.7-staging
463 ustversion: stable-2.7
464 arch: !!python/tuple [x86-32, x86-64]
465 build: !!python/tuple [std, oot, dist]
466 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
467 urcuversion: !!python/tuple [stable-0.9]
468 babelversion: !!python/tuple [stable-1.3]
469 - 'lttng-tools_{version}_cppcheck'
470 - 'lttng-tools_{version}_scan-build':
471 version: master
472 urcuversion: master
473 ustversion: master
474 - 'lttng-tools_{version}_scan-build':
475 version: stable-2.8
476 urcuversion: stable-0.9
477 ustversion: stable-2.8
478 - 'lttng-tools_{version}_scan-build':
479 version: stable-2.7
480 urcuversion: stable-0.9
481 ustversion: stable-2.7
482 #- 'lttng-tools_{version}_pylint'
483 - 'lttng-tools_{version}_coverity':
484 version: master
485 urcuversion: master
486 ustversion: master
487
This page took 0.038429 seconds and 4 git commands to generate.