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