c4ce57369b7a428bedf33457010da5a6e81e7f97
[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 - ircbot:
197 strategy: new-failure-and-fixed
198 matrix-notifier: only-parent
199 channels:
200 - name: '#lttng'
201
202
203 - job-template:
204 name: dev_{user}_lttng-tools_{version}_{buildtype}
205 <<: *lttng-tools_version_buildtype_anchor
206
207 publishers:
208 - tap:
209 results: 'tap/**/*.tap'
210 failed-tests-mark-build-as-failure: true
211 todo-is-failure: false
212 - warnings:
213 console-log-parsers:
214 - 'GNU Make + GNU C Compiler (gcc)'
215 total-thresholds:
216 unstable:
217 total-all: 0
218 total-high: 0
219 total-normal: 0
220 total-low: 0
221 - workspace-cleanup
222
223
224 - job-template:
225 name: lttng-tools_{version}_cppcheck
226 defaults: lttng-tools
227
228 triggers:
229 - pollscm:
230 cron: "@daily"
231
232 builders:
233 - shell: |
234 rm -f lttng-tools-cppcheck.xml
235 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
236
237 publishers:
238 - archive:
239 artifacts: 'lttng-tools-cppcheck.xml'
240 allow-empty: false
241 - cppcheck:
242 pattern: 'lttng-tools-cppcheck.xml'
243 - email:
244 recipients: 'ci-notification@lists.lttng.org'
245 notify-every-unstable-build: true
246 send-to-individuals: false
247
248 - job-template:
249 name: lttng-tools_{version}_scan-build
250 defaults: lttng-tools
251 node: 'x86-64'
252
253 triggers:
254 - pollscm:
255 cron: "@daily"
256
257 builders:
258 - copyartifact:
259 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
260 which-build: last-successful
261 stable: true
262 filter: 'build/**'
263 target: 'deps/liburcu'
264 do-not-fingerprint: true
265 - copyartifact:
266 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
267 which-build: last-successful
268 stable: true
269 filter: 'build/**'
270 target: 'deps/lttng-ust'
271 do-not-fingerprint: true
272 - shell:
273 !include-raw-escape: scripts/lttng-tools/scan-build.sh
274
275 publishers:
276 - html-publisher:
277 name: 'HTML Report'
278 dir: 'scan-build-archive/'
279 files: 'index.html'
280
281 - job-template:
282 name: lttng-tools_{version}_coverity
283 defaults: lttng-tools
284 node: 'x86-64'
285
286 triggers:
287 - pollscm:
288 cron: "@daily"
289
290 wrappers:
291 - workspace-cleanup
292 - timestamps
293 - ansicolor:
294 colormap: xterm
295 - credentials-binding:
296 - username-password-separated:
297 credential-id: lttng-tools_coverity_token
298 username: COVERITY_SCAN_PROJECT_NAME
299 password: COVERITY_SCAN_TOKEN
300
301 builders:
302 - copyartifact:
303 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
304 which-build: last-successful
305 stable: true
306 filter: 'build/**'
307 target: 'deps/liburcu'
308 do-not-fingerprint: true
309 - copyartifact:
310 project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
311 which-build: last-successful
312 stable: true
313 filter: 'build/**'
314 target: 'deps/lttng-ust'
315 do-not-fingerprint: true
316 - shell:
317 !include-raw-escape: scripts/common/coverity.sh
318
319 publishers:
320 - workspace-cleanup
321
322 # TODO
323 - job-template:
324 name: lttng-tools_{version}_pylint
325 defaults: lttng-tools
326 node: 'x86-64'
327
328 scm: []
329
330 triggers:
331 - pollscm:
332 cron: "@daily"
333
334 builders:
335 - copyartifact:
336 project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent
337 which-build: last-successful
338 stable: true
339 filter: 'build/**'
340 target: 'deps/lttng-tools'
341 do-not-fingerprint: true
342 - shell:
343 !include-raw-escape: scripts/lttng-tools/pylint.sh
344
345 publishers:
346 - archive:
347 artifacts: 'pep8.out,pylint.out'
348 - violations:
349 pep8:
350 pattern: pep8.out
351 min: 10
352 max: 999
353 unstable: 999
354 pylint:
355 pattern: pylint.out
356 min: 10
357 max: 999
358 unstable: 999
359 - email:
360 recipients: 'ci-notification@lists.lttng.org'
361 notify-every-unstable-build: true
362 send-to-individuals: false
363
364
365 ## Project
366 - project:
367 name: lttng-tools
368 github_user: lttng
369 github_name: lttng-tools
370 version:
371 - stable-2.7
372 - stable-2.8
373 - master
374 jobs:
375 - 'lttng-tools_{version}_{buildtype}':
376 buildtype: build
377 version: master
378 ustversion: master
379 arch: !!python/tuple [x86-32, x86-64]
380 build: !!python/tuple [std, oot, dist]
381 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
382 urcuversion: !!python/tuple [master]
383 babelversion: !!python/tuple [master]
384 - 'lttng-tools_{version}_{buildtype}':
385 buildtype: portbuild
386 version: master
387 ustversion: master
388 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
389 build: !!python/tuple [std]
390 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
391 urcuversion: !!python/tuple [master]
392 babelversion: !!python/tuple [master]
393 - 'lttng-tools_{version}_{buildtype}':
394 buildtype: build
395 version: stable-2.8
396 ustversion: stable-2.8
397 arch: !!python/tuple [x86-32, x86-64]
398 build: !!python/tuple [std, oot, dist]
399 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
400 urcuversion: !!python/tuple [stable-0.9]
401 babelversion: !!python/tuple [stable-1.4]
402 - 'lttng-tools_{version}_{buildtype}':
403 buildtype: portbuild
404 version: stable-2.8
405 ustversion: stable-2.8
406 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
407 build: !!python/tuple [std]
408 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
409 urcuversion: !!python/tuple [stable-0.9]
410 babelversion: !!python/tuple [stable-1.4]
411 - 'lttng-tools_{version}_{buildtype}':
412 buildtype: build
413 version: stable-2.7
414 ustversion: stable-2.7
415 arch: !!python/tuple [x86-32, x86-64]
416 build: !!python/tuple [std, oot, dist]
417 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
418 urcuversion: !!python/tuple [stable-0.9]
419 babelversion: !!python/tuple [stable-1.3]
420 - 'lttng-tools_{version}_{buildtype}':
421 buildtype: portbuild
422 version: stable-2.7
423 ustversion: stable-2.7
424 arch: !!python/tuple [armhf, arm64, powerpc]
425 build: !!python/tuple [std]
426 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
427 urcuversion: !!python/tuple [stable-0.9]
428 babelversion: !!python/tuple [stable-1.3]
429 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
430 user: jgalar
431 github_user: jgalar
432 github_name: lttng-tools
433 buildtype: build
434 version: master-staging
435 ustversion: master
436 arch: !!python/tuple [x86-32, x86-64]
437 build: !!python/tuple [std, oot, dist]
438 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
439 urcuversion: !!python/tuple [master]
440 babelversion: !!python/tuple [master]
441 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
442 user: jgalar
443 github_user: jgalar
444 github_name: lttng-tools
445 buildtype: build
446 version: stable-2.8-staging
447 ustversion: stable-2.8
448 arch: !!python/tuple [x86-32, x86-64]
449 build: !!python/tuple [std, oot, dist]
450 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
451 urcuversion: !!python/tuple [stable-0.9]
452 babelversion: !!python/tuple [stable-1.4]
453 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
454 user: jgalar
455 github_user: jgalar
456 github_name: lttng-tools
457 buildtype: build
458 version: stable-2.7-staging
459 ustversion: stable-2.7
460 arch: !!python/tuple [x86-32, x86-64]
461 build: !!python/tuple [std, oot, dist]
462 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
463 urcuversion: !!python/tuple [stable-0.9]
464 babelversion: !!python/tuple [stable-1.3]
465 - 'lttng-tools_{version}_cppcheck'
466 - 'lttng-tools_{version}_scan-build':
467 version: master
468 urcuversion: master
469 ustversion: master
470 - 'lttng-tools_{version}_scan-build':
471 version: stable-2.8
472 urcuversion: stable-0.9
473 ustversion: stable-2.8
474 - 'lttng-tools_{version}_scan-build':
475 version: stable-2.7
476 urcuversion: stable-0.9
477 ustversion: stable-2.7
478 #- 'lttng-tools_{version}_pylint'
479 - 'lttng-tools_{version}_coverity':
480 version: master
481 urcuversion: master
482 ustversion: master
483
This page took 0.040379 seconds and 4 git commands to generate.