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