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: | |
26 | url: git://github.com/lttng/lttng-tools.git | |
27 | browser: githubweb | |
28 | browser-url: https://github.com/lttng/lttng-tools | |
29 | branches: | |
30 | - origin/{version} | |
31 | ||
32 | triggers: | |
33 | - pollscm: | |
34 | cron: "@hourly" | |
35 | ||
36 | properties: | |
37 | - github: | |
38 | url: https://github.com/lttng/lttng-tools | |
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 | execution-strategy: |
49 | combination-filter: | | |
50 | (build=="std") || (liburcu_version=="master") | |
51 | axes: | |
52 | - axis: | |
53 | type: slave | |
54 | name: arch | |
55 | values: '{obj:arch}' | |
56 | - axis: | |
57 | type: user-defined | |
58 | name: conf | |
95654431 | 59 | values: '{obj:conf}' |
b4005bbf MJ |
60 | - axis: |
61 | type: user-defined | |
62 | name: liburcu_version | |
63 | values: '{obj:urcuversion}' | |
64 | - axis: | |
65 | type: user-defined | |
66 | name: babeltrace_version | |
67 | values: '{obj:babelversion}' | |
68 | - axis: | |
69 | type: user-defined | |
70 | name: build | |
71 | values: '{obj:build}' | |
72 | ||
95654431 MJ |
73 | properties: |
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 | |
95654431 | 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: | |
104 | project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std | |
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: | |
131 | project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std | |
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: | |
95654431 | 158 | project: lttng-ust_{version}_{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 MJ |
166 | |
167 | # TODO: Scan for open tasks | |
168 | publishers: | |
169 | - tap: | |
170 | results: 'tap/**/*.tap' | |
171 | failed-tests-mark-build-as-failure: true | |
95654431 | 172 | todo-is-failure: false |
b4005bbf MJ |
173 | - warnings: |
174 | console-log-parsers: | |
175 | - 'GNU Make + GNU C Compiler (gcc)' | |
176 | #total-thresholds: | |
177 | # failed: | |
178 | # total-all: 0 | |
179 | # total-high: 0 | |
180 | # total-normal: 0 | |
181 | # total-low: 0 | |
182 | - archive: | |
183 | artifacts: 'build/**' | |
184 | allow-empty: false | |
185 | - workspace-cleanup | |
95654431 MJ |
186 | - ircbot: |
187 | strategy: new-failure-and-fixed | |
188 | matrix-notifier: only-parent | |
189 | channels: | |
190 | - name: '#lttng' | |
b4005bbf MJ |
191 | |
192 | ||
193 | - job-template: | |
194 | name: lttng-tools_{version}_cppcheck | |
195 | defaults: lttng-tools | |
196 | ||
197 | triggers: | |
198 | - pollscm: | |
199 | cron: "@daily" | |
200 | ||
201 | builders: | |
202 | - shell: | | |
203 | rm -f lttng-tools-cppcheck.xml | |
204 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml | |
205 | ||
206 | publishers: | |
207 | - archive: | |
208 | artifacts: 'lttng-tools-cppcheck.xml' | |
209 | allow-empty: false | |
210 | - cppcheck: | |
211 | pattern: 'lttng-tools-cppcheck.xml' | |
212 | - email: | |
213 | recipients: 'ci-notification@lists.lttng.org' | |
214 | notify-every-unstable-build: true | |
215 | send-to-individuals: false | |
216 | ||
217 | - job-template: | |
218 | name: lttng-tools_{version}_scan-build | |
219 | defaults: lttng-tools | |
220 | node: 'x86-64' | |
221 | ||
222 | triggers: | |
223 | - pollscm: | |
224 | cron: "@daily" | |
225 | ||
226 | builders: | |
227 | - copyartifact: | |
228 | project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std | |
229 | which-build: last-successful | |
230 | stable: true | |
231 | filter: 'build/**' | |
232 | target: 'deps/liburcu' | |
233 | do-not-fingerprint: true | |
234 | - copyartifact: | |
235 | project: lttng-ust_{version}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std | |
236 | which-build: last-successful | |
237 | stable: true | |
238 | filter: 'build/**' | |
239 | target: 'deps/lttng-ust' | |
240 | do-not-fingerprint: true | |
241 | - shell: | |
ef63064f | 242 | !include-raw-escape: scripts/lttng-tools/scan-build.sh |
b4005bbf MJ |
243 | |
244 | publishers: | |
245 | - html-publisher: | |
246 | name: 'HTML Report' | |
247 | dir: 'scan-build-archive/' | |
248 | files: 'index.html' | |
249 | ||
250 | - job-template: | |
251 | name: lttng-tools_{version}_coverity | |
252 | defaults: lttng-tools | |
253 | node: 'x86-64' | |
254 | ||
255 | triggers: | |
256 | - pollscm: | |
257 | cron: "@daily" | |
258 | ||
259 | wrappers: | |
260 | - workspace-cleanup | |
261 | - timestamps | |
262 | - ansicolor: | |
263 | colormap: xterm | |
264 | - credentials-binding: | |
265 | - username-password-separated: | |
266 | credential-id: lttng-tools_coverity_token | |
267 | username: COVERITY_SCAN_PROJECT_NAME | |
268 | password: COVERITY_SCAN_TOKEN | |
269 | ||
270 | builders: | |
271 | - copyartifact: | |
272 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
273 | which-build: last-successful | |
274 | stable: true | |
275 | filter: 'build/**' | |
276 | target: 'deps/liburcu' | |
277 | do-not-fingerprint: true | |
278 | - copyartifact: | |
279 | project: lttng-ust_{version}_build/liburcu_version={version},arch=x86-64,conf=std,build=std | |
280 | which-build: last-successful | |
281 | stable: true | |
282 | filter: 'build/**' | |
283 | target: 'deps/lttng-ust' | |
284 | do-not-fingerprint: true | |
285 | - shell: | |
ef63064f | 286 | !include-raw-escape: scripts/common/coverity.sh |
b4005bbf MJ |
287 | |
288 | publishers: | |
289 | - workspace-cleanup | |
290 | ||
291 | # TODO | |
292 | - job-template: | |
293 | name: lttng-tools_{version}_pylint | |
294 | defaults: lttng-tools | |
295 | node: 'x86-64' | |
296 | ||
297 | scm: [] | |
298 | ||
299 | triggers: | |
300 | - pollscm: | |
301 | cron: "@daily" | |
302 | ||
303 | builders: | |
304 | - copyartifact: | |
305 | project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent | |
306 | which-build: last-successful | |
307 | stable: true | |
308 | filter: 'build/**' | |
309 | target: 'deps/lttng-tools' | |
310 | do-not-fingerprint: true | |
311 | - shell: | |
ef63064f | 312 | !include-raw-escape: scripts/lttng-tools/pylint.sh |
b4005bbf MJ |
313 | |
314 | publishers: | |
315 | - archive: | |
316 | artifacts: 'pep8.out,pylint.out' | |
317 | - violations: | |
318 | pep8: | |
319 | pattern: pep8.out | |
320 | min: 10 | |
321 | max: 999 | |
322 | unstable: 999 | |
323 | pylint: | |
324 | pattern: pylint.out | |
325 | min: 10 | |
326 | max: 999 | |
327 | unstable: 999 | |
328 | - email: | |
329 | recipients: 'ci-notification@lists.lttng.org' | |
330 | notify-every-unstable-build: true | |
331 | send-to-individuals: false | |
332 | ||
333 | ||
334 | ## Project | |
335 | - project: | |
336 | name: lttng-tools | |
337 | version: | |
ef63064f | 338 | !include: jobs/inc/lttng-tools-versions.yaml.inc |
b4005bbf MJ |
339 | jobs: |
340 | - 'lttng-tools_{version}_{buildtype}': | |
341 | buildtype: build | |
342 | version: master | |
343 | arch: !!python/tuple [x86-32, x86-64] | |
344 | build: !!python/tuple [std, oot, dist] | |
95654431 | 345 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
b4005bbf MJ |
346 | urcuversion: !!python/tuple [master] |
347 | babelversion: !!python/tuple [master] | |
348 | - 'lttng-tools_{version}_{buildtype}': | |
349 | buildtype: portbuild | |
350 | version: master | |
027ddec8 | 351 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
b4005bbf | 352 | build: !!python/tuple [std] |
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: build | |
358 | version: stable-2.7 | |
359 | arch: !!python/tuple [x86-32, x86-64] | |
360 | build: !!python/tuple [std, oot, dist] | |
95654431 | 361 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
362 | urcuversion: !!python/tuple [stable-0.9] |
363 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
364 | - 'lttng-tools_{version}_{buildtype}': |
365 | buildtype: portbuild | |
366 | version: stable-2.7 | |
027ddec8 | 367 | arch: !!python/tuple [armhf, arm64, powerpc] |
b4005bbf | 368 | build: !!python/tuple [std] |
95654431 | 369 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
0b475830 MJ |
370 | urcuversion: !!python/tuple [stable-0.9] |
371 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
372 | - 'lttng-tools_{version}_{buildtype}': |
373 | buildtype: build | |
374 | version: stable-2.6 | |
375 | arch: !!python/tuple [x86-32, x86-64] | |
376 | build: !!python/tuple [std, oot, dist] | |
95654431 | 377 | conf: !!python/tuple [std, no-ust, python-bindings] |
0b475830 MJ |
378 | urcuversion: !!python/tuple [stable-0.9] |
379 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
380 | - 'lttng-tools_{version}_{buildtype}': |
381 | buildtype: portbuild | |
382 | version: stable-2.6 | |
027ddec8 | 383 | arch: !!python/tuple [armhf, arm64, powerpc] |
b4005bbf | 384 | build: !!python/tuple [std] |
95654431 | 385 | conf: !!python/tuple [std, no-ust, python-bindings] |
0b475830 MJ |
386 | urcuversion: !!python/tuple [stable-0.9] |
387 | babelversion: !!python/tuple [stable-1.3] | |
b4005bbf MJ |
388 | - 'lttng-tools_{version}_cppcheck' |
389 | - 'lttng-tools_{version}_scan-build': | |
390 | version: master | |
391 | urcuversion: master | |
392 | - 'lttng-tools_{version}_scan-build': | |
393 | version: stable-2.7 | |
0b475830 | 394 | urcuversion: stable-0.9 |
b4005bbf MJ |
395 | - 'lttng-tools_{version}_scan-build': |
396 | version: stable-2.6 | |
0b475830 | 397 | urcuversion: stable-0.9 |
b4005bbf MJ |
398 | #- 'lttng-tools_{version}_pylint' |
399 | - 'lttng-tools_{version}_coverity': | |
400 | version: master | |
401 |