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