jjb: add lttng-tools jgalar dev jobs
[lttng-ci.git] / jobs / lttng-tools.yaml
CommitLineData
b4005bbf
MJ
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
b4005bbf
MJ
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
a0433b63 20 url: git://github.com/{github_user}/{github_name}.git
b4005bbf 21 browser: githubweb
51ca880a 22 browser-url: https://github.com/{github_user}/{github_name}
b4005bbf
MJ
23 branches:
24 - origin/{version}
25
26 triggers:
27 - pollscm:
28 cron: "@hourly"
29
30 properties:
31 - github:
51ca880a 32 url: https://github.com/{github_user}/{github_name}
edf72710
MJ
33 - build-discarder:
34 num-to-keep: 2
b4005bbf
MJ
35
36
37## Templates
7671741c
MJ
38
39- lttng-tools_version_buildtype_anchor: &lttng-tools_version_buildtype_anchor
40 name: 'lttng-tools_version_buildtype_anchor'
b4005bbf
MJ
41 defaults: lttng-tools
42
43 project-type: matrix
ca8c6144 44 node: 'master' # Applies only to matrix flyweight task
b4005bbf
MJ
45 axes:
46 - axis:
47 type: slave
48 name: arch
49 values: '{obj:arch}'
50 - axis:
51 type: user-defined
52 name: conf
95654431 53 values: '{obj:conf}'
b4005bbf
MJ
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
95654431 67 properties:
edf72710
MJ
68 - github:
69 url: https://github.com/{github_user}/{github_name}
70 - build-discarder:
71 num-to-keep: 2
95654431
MJ
72 - throttle:
73 max-per-node: 1
74 option: 'category'
75 categories:
76 - 'lttng-tools'
035ee855
MJ
77 matrix-builds: false
78 matrix-configs: true
edf72710 79
b4005bbf
MJ
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_{version}_{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'
95654431 111 regex: (python-bindings|no-ust)
b4005bbf
MJ
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_{version}_{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'
95654431 138 regex: (java-agent|python-agent)
b4005bbf
MJ
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:
95654431 156 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
b4005bbf
MJ
157 which-build: last-successful
158 stable: true
159 filter: 'build/**'
160 target: 'deps/lttng-ust'
161 do-not-fingerprint: true
162 - shell:
ef63064f 163 !include-raw-escape: scripts/lttng-tools/build.sh
b4005bbf 164
7671741c
MJ
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
b4005bbf
MJ
176 publishers:
177 - tap:
178 results: 'tap/**/*.tap'
179 failed-tests-mark-build-as-failure: true
95654431 180 todo-is-failure: false
b4005bbf
MJ
181 - warnings:
182 console-log-parsers:
183 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
184 total-thresholds:
185 unstable:
d2c76ee5
MJ
186 total-all: 0
187 total-high: 0
188 total-normal: 0
189 total-low: 0
b4005bbf
MJ
190 - archive:
191 artifacts: 'build/**'
192 allow-empty: false
193 - workspace-cleanup
95654431
MJ
194 - ircbot:
195 strategy: new-failure-and-fixed
196 matrix-notifier: only-parent
197 channels:
198 - name: '#lttng'
b4005bbf
MJ
199
200
7671741c
MJ
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
b4005bbf
MJ
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_{version}_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:
ef63064f 271 !include-raw-escape: scripts/lttng-tools/scan-build.sh
b4005bbf
MJ
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_master_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_{version}_build/liburcu_version={version},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:
ef63064f 315 !include-raw-escape: scripts/common/coverity.sh
b4005bbf
MJ
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:
ef63064f 341 !include-raw-escape: scripts/lttng-tools/pylint.sh
b4005bbf
MJ
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
51ca880a
MJ
366 github_user: lttng
367 github_name: lttng-tools
b4005bbf 368 version:
9beacf91
MJ
369 - stable-2.7
370 - stable-2.8
371 - master
b4005bbf
MJ
372 jobs:
373 - 'lttng-tools_{version}_{buildtype}':
374 buildtype: build
375 version: master
376 arch: !!python/tuple [x86-32, x86-64]
377 build: !!python/tuple [std, oot, dist]
95654431 378 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
379 urcuversion: !!python/tuple [master]
380 babelversion: !!python/tuple [master]
381 - 'lttng-tools_{version}_{buildtype}':
382 buildtype: portbuild
383 version: master
027ddec8 384 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
b4005bbf 385 build: !!python/tuple [std]
95654431 386 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
387 urcuversion: !!python/tuple [master]
388 babelversion: !!python/tuple [master]
20f81bbb
JR
389 - 'lttng-tools_{version}_{buildtype}':
390 buildtype: build
391 version: stable-2.8
392 arch: !!python/tuple [x86-32, x86-64]
393 build: !!python/tuple [std, oot, dist]
394 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
395 urcuversion: !!python/tuple [stable-0.9]
ecf9997a 396 babelversion: !!python/tuple [stable-1.4]
20f81bbb
JR
397 - 'lttng-tools_{version}_{buildtype}':
398 buildtype: portbuild
399 version: stable-2.8
bf4d352d 400 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
20f81bbb
JR
401 build: !!python/tuple [std]
402 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
403 urcuversion: !!python/tuple [stable-0.9]
ecf9997a 404 babelversion: !!python/tuple [stable-1.4]
b4005bbf
MJ
405 - 'lttng-tools_{version}_{buildtype}':
406 buildtype: build
407 version: stable-2.7
408 arch: !!python/tuple [x86-32, x86-64]
409 build: !!python/tuple [std, oot, dist]
95654431 410 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
411 urcuversion: !!python/tuple [stable-0.9]
412 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
413 - 'lttng-tools_{version}_{buildtype}':
414 buildtype: portbuild
415 version: stable-2.7
027ddec8 416 arch: !!python/tuple [armhf, arm64, powerpc]
b4005bbf 417 build: !!python/tuple [std]
95654431 418 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
419 urcuversion: !!python/tuple [stable-0.9]
420 babelversion: !!python/tuple [stable-1.3]
7671741c
MJ
421 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
422 user: jgalar
423 github_user: jgalar
424 github_name: lttng-tools
425 buildtype: build
426 version: master-staging
427 arch: !!python/tuple [x86-32, x86-64]
428 build: !!python/tuple [std, oot, dist]
429 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
430 urcuversion: !!python/tuple [master]
431 babelversion: !!python/tuple [master]
432 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
433 user: jgalar
434 github_user: jgalar
435 github_name: lttng-tools
436 buildtype: build
437 version: stable-2.8-staging
438 arch: !!python/tuple [x86-32, x86-64]
439 build: !!python/tuple [std, oot, dist]
440 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
441 urcuversion: !!python/tuple [stable-0.9]
442 babelversion: !!python/tuple [stable-1.4]
443 - 'dev_{user}_lttng-tools_{version}_{buildtype}':
444 user: jgalar
445 github_user: jgalar
446 github_name: lttng-tools
447 buildtype: build
448 version: stable-2.7-staging
449 arch: !!python/tuple [x86-32, x86-64]
450 build: !!python/tuple [std, oot, dist]
451 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
452 urcuversion: !!python/tuple [stable-0.9]
453 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
454 - 'lttng-tools_{version}_cppcheck'
455 - 'lttng-tools_{version}_scan-build':
456 version: master
457 urcuversion: master
20f81bbb
JR
458 - 'lttng-tools_{version}_scan-build':
459 version: stable-2.8
460 urcuversion: stable-0.9
b4005bbf
MJ
461 - 'lttng-tools_{version}_scan-build':
462 version: stable-2.7
0b475830 463 urcuversion: stable-0.9
b4005bbf
MJ
464 #- 'lttng-tools_{version}_pylint'
465 - 'lttng-tools_{version}_coverity':
466 version: master
467
This page took 0.042823 seconds and 4 git commands to generate.