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 MJ |
33 | - build-discarder: |
34 | num-to-keep: 2 | |
b4005bbf MJ |
35 | |
36 | ||
37 | ## Templates | |
7671741c MJ |
38 | |
39 | - lttng-tools_version_buildtype_anchor: <tng-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: | |
aa27566e | 102 | project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std |
b4005bbf MJ |
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: | |
aa27566e | 129 | project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std |
b4005bbf MJ |
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: | |
aa27566e | 156 | project: lttng-ust_{ustversion}_{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: | |
aa27566e | 264 | project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std |
b4005bbf MJ |
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: | |
aa27566e | 301 | project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std |
b4005bbf MJ |
302 | which-build: last-successful |
303 | stable: true | |
304 | filter: 'build/**' | |
305 | target: 'deps/liburcu' | |
306 | do-not-fingerprint: true | |
307 | - copyartifact: | |
aa27566e | 308 | project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std |
b4005bbf MJ |
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 | |
aa27566e | 376 | ustversion: master |
b4005bbf MJ |
377 | arch: !!python/tuple [x86-32, x86-64] |
378 | build: !!python/tuple [std, oot, dist] | |
95654431 | 379 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
b4005bbf MJ |
380 | urcuversion: !!python/tuple [master] |
381 | babelversion: !!python/tuple [master] | |
382 | - 'lttng-tools_{version}_{buildtype}': | |
383 | buildtype: portbuild | |
384 | version: master | |
aa27566e | 385 | ustversion: master |
027ddec8 | 386 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
b4005bbf | 387 | build: !!python/tuple [std] |
95654431 | 388 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
b4005bbf MJ |
389 | urcuversion: !!python/tuple [master] |
390 | babelversion: !!python/tuple [master] | |
20f81bbb JR |
391 | - 'lttng-tools_{version}_{buildtype}': |
392 | buildtype: build | |
393 | version: stable-2.8 | |
aa27566e | 394 | ustversion: stable-2.8 |
20f81bbb JR |
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] | |
ecf9997a | 399 | babelversion: !!python/tuple [stable-1.4] |
20f81bbb JR |
400 | - 'lttng-tools_{version}_{buildtype}': |
401 | buildtype: portbuild | |
402 | version: stable-2.8 | |
aa27566e | 403 | ustversion: stable-2.8 |
bf4d352d | 404 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
20f81bbb JR |
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] | |
ecf9997a | 408 | babelversion: !!python/tuple [stable-1.4] |
b4005bbf MJ |
409 | - 'lttng-tools_{version}_{buildtype}': |
410 | buildtype: build | |
411 | version: stable-2.7 | |
aa27566e | 412 | ustversion: stable-2.7 |
b4005bbf MJ |
413 | arch: !!python/tuple [x86-32, x86-64] |
414 | build: !!python/tuple [std, oot, dist] | |
95654431 | 415 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
416 | urcuversion: !!python/tuple [stable-0.9] |
417 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
418 | - 'lttng-tools_{version}_{buildtype}': |
419 | buildtype: portbuild | |
420 | version: stable-2.7 | |
aa27566e | 421 | ustversion: stable-2.7 |
027ddec8 | 422 | arch: !!python/tuple [armhf, arm64, powerpc] |
b4005bbf | 423 | build: !!python/tuple [std] |
95654431 | 424 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
425 | urcuversion: !!python/tuple [stable-0.9] |
426 | babelversion: !!python/tuple [stable-1.3] | |
7671741c MJ |
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 | |
aa27566e | 433 | ustversion: master |
7671741c MJ |
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 | |
aa27566e | 445 | ustversion: stable-2.8 |
7671741c MJ |
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 | |
aa27566e | 457 | ustversion: stable-2.7 |
7671741c MJ |
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] | |
b4005bbf MJ |
463 | - 'lttng-tools_{version}_cppcheck' |
464 | - 'lttng-tools_{version}_scan-build': | |
465 | version: master | |
466 | urcuversion: master | |
aa27566e | 467 | ustversion: master |
20f81bbb JR |
468 | - 'lttng-tools_{version}_scan-build': |
469 | version: stable-2.8 | |
470 | urcuversion: stable-0.9 | |
aa27566e | 471 | ustversion: stable-2.8 |
b4005bbf MJ |
472 | - 'lttng-tools_{version}_scan-build': |
473 | version: stable-2.7 | |
0b475830 | 474 | urcuversion: stable-0.9 |
aa27566e | 475 | ustversion: stable-2.7 |
b4005bbf MJ |
476 | #- 'lttng-tools_{version}_pylint' |
477 | - 'lttng-tools_{version}_coverity': | |
478 | version: master | |
aa27566e MJ |
479 | urcuversion: master |
480 | ustversion: master | |
b4005bbf | 481 |