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