Commit | Line | Data |
---|---|---|
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 | 33 | - build-discarder: |
a3636f24 JR |
34 | num-to-keep: 20 |
35 | artifact-num-to-keep: 2 | |
b4005bbf MJ |
36 | |
37 | ||
38 | ## Templates | |
7671741c MJ |
39 | |
40 | - lttng-tools_version_buildtype_anchor: <tng-tools_version_buildtype_anchor | |
41 | name: 'lttng-tools_version_buildtype_anchor' | |
b4005bbf MJ |
42 | defaults: lttng-tools |
43 | ||
44 | project-type: matrix | |
ca8c6144 | 45 | node: 'master' # Applies only to matrix flyweight task |
b4005bbf MJ |
46 | axes: |
47 | - axis: | |
48 | type: slave | |
49 | name: arch | |
50 | values: '{obj:arch}' | |
51 | - axis: | |
52 | type: user-defined | |
53 | name: conf | |
95654431 | 54 | values: '{obj:conf}' |
b4005bbf MJ |
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 | ||
95654431 | 68 | properties: |
edf72710 MJ |
69 | - github: |
70 | url: https://github.com/{github_user}/{github_name} | |
71 | - build-discarder: | |
a3636f24 JR |
72 | num-to-keep: 20 |
73 | artifact-num-to-keep: 2 | |
95654431 MJ |
74 | - throttle: |
75 | max-per-node: 1 | |
76 | option: 'category' | |
77 | categories: | |
78 | - 'lttng-tools' | |
035ee855 MJ |
79 | matrix-builds: false |
80 | matrix-configs: true | |
edf72710 | 81 | |
b4005bbf MJ |
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: | |
aa27566e | 104 | project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std |
b4005bbf MJ |
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' | |
95654431 | 113 | regex: (python-bindings|no-ust) |
b4005bbf MJ |
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: | |
aa27566e | 131 | project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std |
b4005bbf MJ |
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' | |
95654431 | 140 | regex: (java-agent|python-agent) |
b4005bbf MJ |
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: | |
aa27566e | 158 | project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std |
b4005bbf MJ |
159 | which-build: last-successful |
160 | stable: true | |
161 | filter: 'build/**' | |
162 | target: 'deps/lttng-ust' | |
163 | do-not-fingerprint: true | |
164 | - shell: | |
ef63064f | 165 | !include-raw-escape: scripts/lttng-tools/build.sh |
b4005bbf | 166 | |
7671741c MJ |
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 | ||
b4005bbf MJ |
178 | publishers: |
179 | - tap: | |
180 | results: 'tap/**/*.tap' | |
181 | failed-tests-mark-build-as-failure: true | |
95654431 | 182 | todo-is-failure: false |
b4005bbf MJ |
183 | - warnings: |
184 | console-log-parsers: | |
185 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
186 | total-thresholds: |
187 | unstable: | |
d2c76ee5 MJ |
188 | total-all: 0 |
189 | total-high: 0 | |
190 | total-normal: 0 | |
191 | total-low: 0 | |
b4005bbf MJ |
192 | - archive: |
193 | artifacts: 'build/**' | |
194 | allow-empty: false | |
2cc29ca7 JR |
195 | - workspace-cleanup: |
196 | clean-if: | |
197 | - failure: false | |
95654431 MJ |
198 | - ircbot: |
199 | strategy: new-failure-and-fixed | |
200 | matrix-notifier: only-parent | |
201 | channels: | |
202 | - name: '#lttng' | |
b4005bbf MJ |
203 | |
204 | ||
7671741c MJ |
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 | |
2cc29ca7 JR |
223 | - workspace-cleanup: |
224 | clean-if: | |
225 | - failure: false | |
7671741c MJ |
226 | |
227 | ||
b4005bbf MJ |
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: | |
aa27566e | 270 | project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std |
b4005bbf MJ |
271 | which-build: last-successful |
272 | stable: true | |
273 | filter: 'build/**' | |
274 | target: 'deps/lttng-ust' | |
275 | do-not-fingerprint: true | |
276 | - shell: | |
ef63064f | 277 | !include-raw-escape: scripts/lttng-tools/scan-build.sh |
b4005bbf MJ |
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: | |
aa27566e | 307 | project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std |
b4005bbf MJ |
308 | which-build: last-successful |
309 | stable: true | |
310 | filter: 'build/**' | |
311 | target: 'deps/liburcu' | |
312 | do-not-fingerprint: true | |
313 | - copyartifact: | |
aa27566e | 314 | project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std |
b4005bbf MJ |
315 | which-build: last-successful |
316 | stable: true | |
317 | filter: 'build/**' | |
318 | target: 'deps/lttng-ust' | |
319 | do-not-fingerprint: true | |
320 | - shell: | |
ef63064f | 321 | !include-raw-escape: scripts/common/coverity.sh |
b4005bbf MJ |
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: | |
ef63064f | 347 | !include-raw-escape: scripts/lttng-tools/pylint.sh |
b4005bbf MJ |
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 | |
51ca880a MJ |
372 | github_user: lttng |
373 | github_name: lttng-tools | |
b4005bbf | 374 | version: |
9beacf91 MJ |
375 | - stable-2.7 |
376 | - stable-2.8 | |
377 | - master | |
b4005bbf MJ |
378 | jobs: |
379 | - 'lttng-tools_{version}_{buildtype}': | |
380 | buildtype: build | |
381 | version: master | |
aa27566e | 382 | ustversion: master |
b4005bbf MJ |
383 | arch: !!python/tuple [x86-32, x86-64] |
384 | build: !!python/tuple [std, oot, dist] | |
95654431 | 385 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
b4005bbf MJ |
386 | urcuversion: !!python/tuple [master] |
387 | babelversion: !!python/tuple [master] | |
388 | - 'lttng-tools_{version}_{buildtype}': | |
389 | buildtype: portbuild | |
390 | version: master | |
aa27566e | 391 | ustversion: master |
027ddec8 | 392 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
b4005bbf | 393 | build: !!python/tuple [std] |
95654431 | 394 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
b4005bbf MJ |
395 | urcuversion: !!python/tuple [master] |
396 | babelversion: !!python/tuple [master] | |
20f81bbb JR |
397 | - 'lttng-tools_{version}_{buildtype}': |
398 | buildtype: build | |
399 | version: stable-2.8 | |
aa27566e | 400 | ustversion: stable-2.8 |
20f81bbb JR |
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] | |
ecf9997a | 405 | babelversion: !!python/tuple [stable-1.4] |
20f81bbb JR |
406 | - 'lttng-tools_{version}_{buildtype}': |
407 | buildtype: portbuild | |
408 | version: stable-2.8 | |
aa27566e | 409 | ustversion: stable-2.8 |
bf4d352d | 410 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
20f81bbb JR |
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] | |
ecf9997a | 414 | babelversion: !!python/tuple [stable-1.4] |
b4005bbf MJ |
415 | - 'lttng-tools_{version}_{buildtype}': |
416 | buildtype: build | |
417 | version: stable-2.7 | |
aa27566e | 418 | ustversion: stable-2.7 |
b4005bbf MJ |
419 | arch: !!python/tuple [x86-32, x86-64] |
420 | build: !!python/tuple [std, oot, dist] | |
95654431 | 421 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
422 | urcuversion: !!python/tuple [stable-0.9] |
423 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
424 | - 'lttng-tools_{version}_{buildtype}': |
425 | buildtype: portbuild | |
426 | version: stable-2.7 | |
aa27566e | 427 | ustversion: stable-2.7 |
027ddec8 | 428 | arch: !!python/tuple [armhf, arm64, powerpc] |
b4005bbf | 429 | build: !!python/tuple [std] |
95654431 | 430 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
431 | urcuversion: !!python/tuple [stable-0.9] |
432 | babelversion: !!python/tuple [stable-1.3] | |
7671741c MJ |
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 | |
aa27566e | 439 | ustversion: master |
7671741c MJ |
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 | |
aa27566e | 451 | ustversion: stable-2.8 |
7671741c MJ |
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 | |
aa27566e | 463 | ustversion: stable-2.7 |
7671741c MJ |
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] | |
b4005bbf MJ |
469 | - 'lttng-tools_{version}_cppcheck' |
470 | - 'lttng-tools_{version}_scan-build': | |
471 | version: master | |
472 | urcuversion: master | |
aa27566e | 473 | ustversion: master |
20f81bbb JR |
474 | - 'lttng-tools_{version}_scan-build': |
475 | version: stable-2.8 | |
476 | urcuversion: stable-0.9 | |
aa27566e | 477 | ustversion: stable-2.8 |
b4005bbf MJ |
478 | - 'lttng-tools_{version}_scan-build': |
479 | version: stable-2.7 | |
0b475830 | 480 | urcuversion: stable-0.9 |
aa27566e | 481 | ustversion: stable-2.7 |
b4005bbf MJ |
482 | #- 'lttng-tools_{version}_pylint' |
483 | - 'lttng-tools_{version}_coverity': | |
484 | version: master | |
aa27566e MJ |
485 | urcuversion: master |
486 | ustversion: master | |
b4005bbf | 487 |