Commit | Line | Data |
---|---|---|
2b68721a MJ |
1 | - defaults: |
2 | name: lttng-ust | |
3 | description: | | |
4 | LTTng-UST, the Linux Trace Toolkit Next Generation Userspace Tracer, is a | |
5 | port of the low-overhead tracing capabilities of the LTTng kernel tracer | |
6 | to user-space. The library "liblttng-ust" enables tracing of | |
7 | applications and libraries. | |
8 | ||
9 | <p>Job is managed by Jenkins Job Builder.</p> | |
10 | ||
11 | project-type: freestyle | |
12 | ||
2b68721a MJ |
13 | wrappers: |
14 | - workspace-cleanup | |
15 | - timestamps | |
16 | - ansicolor | |
17 | ||
18 | scm: | |
19 | - git: | |
51ca880a | 20 | url: git://github.com/{github_user}/{github_name}.git |
2b68721a | 21 | browser: githubweb |
51ca880a | 22 | browser-url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
23 | branches: |
24 | - origin/{version} | |
1f4fba8c | 25 | basedir: src/lttng-ust |
89b9225e | 26 | skip-tag: true |
2b68721a MJ |
27 | |
28 | triggers: | |
29 | - pollscm: | |
30 | cron: "@hourly" | |
31 | ||
32 | properties: | |
69f05d59 MJ |
33 | - inject: |
34 | properties-content: | | |
35 | PROJECT_NAME=lttng-ust | |
edf72710 MJ |
36 | - build-discarder: |
37 | num-to-keep: 2 | |
2b68721a | 38 | - github: |
51ca880a | 39 | url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
40 | |
41 | ||
a3bc0379 MJ |
42 | ## Anchors |
43 | - lttng-ust_build_axes_defaults: <tng-ust_build_axes_defaults | |
44 | name: 'lttng-ust_build_axes_defaults' | |
2b68721a | 45 | project-type: matrix |
ca8c6144 | 46 | node: 'master' # Applies only to matrix flyweight task |
2b68721a | 47 | execution-strategy: |
568b5cbd | 48 | combination-filter: '{filter}' |
2b68721a MJ |
49 | axes: |
50 | - axis: | |
51 | type: slave | |
52 | name: arch | |
53 | values: '{obj:arch}' | |
54 | - axis: | |
55 | type: user-defined | |
56 | name: conf | |
95654431 | 57 | values: '{obj:conf}' |
2b68721a MJ |
58 | - axis: |
59 | type: user-defined | |
60 | name: liburcu_version | |
81bf613d | 61 | values: '{obj:liburcu_version}' |
2b68721a MJ |
62 | - axis: |
63 | type: user-defined | |
64 | name: build | |
65 | values: '{obj:build}' | |
66 | ||
a3bc0379 MJ |
67 | - lttng-ust_build_builders_defaults: <tng-ust_build_builders_defaults |
68 | name: 'lttng-ust_build_builders_defaults' | |
2b68721a | 69 | builders: |
0349e2c0 JR |
70 | - conditional-step: |
71 | condition-kind: regex-match | |
72 | label: '$conf' | |
73 | regex: (std|agents) | |
74 | on-evaluation-failure: run | |
75 | steps: | |
76 | - copyartifact: | |
77 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
78 | which-build: last-successful | |
79 | stable: false | |
80 | filter: 'build/**' | |
3579dc14 | 81 | target: 'deps' |
0349e2c0 JR |
82 | do-not-fingerprint: true |
83 | ||
84 | - conditional-step: | |
85 | condition-kind: regex-match | |
86 | label: '$conf' | |
87 | regex: (debug-rcu) | |
88 | on-evaluation-failure: run | |
89 | steps: | |
90 | - copyartifact: | |
91 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std | |
92 | which-build: last-successful | |
93 | stable: false | |
94 | filter: 'build/**' | |
3579dc14 | 95 | target: 'deps' |
0349e2c0 | 96 | do-not-fingerprint: true |
3e93ffa2 MJ |
97 | - conditional-step: |
98 | condition-kind: regex-match | |
99 | label: '$conf' | |
100 | regex: (tls_fallback) | |
101 | on-evaluation-failure: run | |
102 | steps: | |
103 | - copyartifact: | |
104 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=tls_fallback,build=std | |
105 | which-build: last-successful | |
106 | stable: false | |
107 | filter: 'build/**' | |
108 | target: 'deps' | |
109 | do-not-fingerprint: true | |
2b68721a | 110 | - shell: |
ef63064f | 111 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a | 112 | |
a3bc0379 MJ |
113 | |
114 | ## Templates | |
115 | - job-template: | |
116 | name: lttng-ust_{version}_{buildtype} | |
117 | defaults: lttng-ust | |
118 | ||
119 | <<: *lttng-ust_build_axes_defaults | |
120 | <<: *lttng-ust_build_builders_defaults | |
121 | ||
2b68721a MJ |
122 | # TODO: Scan for open tasks |
123 | publishers: | |
124 | - tap: | |
1f4fba8c | 125 | results: 'tap/**/*.log' |
1d56e325 | 126 | fail-if-no-results: true |
2b68721a | 127 | failed-tests-mark-build-as-failure: true |
95654431 | 128 | todo-is-failure: false |
2b68721a MJ |
129 | - warnings: |
130 | console-log-parsers: | |
131 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
132 | total-thresholds: |
133 | unstable: | |
d2c76ee5 MJ |
134 | total-all: 0 |
135 | total-high: 0 | |
136 | total-normal: 0 | |
137 | total-low: 0 | |
2b68721a | 138 | - archive: |
3579dc14 | 139 | artifacts: 'build/**,tap/**' |
2b68721a MJ |
140 | allow-empty: false |
141 | - workspace-cleanup | |
68fff945 JR |
142 | - email-ext: |
143 | recipients: '{obj:email_to}' | |
144 | reply-to: ci-notification@lists.lttng.org | |
145 | always: false | |
146 | unstable: false | |
147 | first-failure: true | |
148 | first-unstable: true | |
149 | not-built: false | |
150 | aborted: false | |
151 | regression: false | |
152 | failure: false | |
153 | second-failure: false | |
154 | improvement: false | |
155 | still-failing: false | |
156 | success: false | |
157 | fixed: false | |
158 | fixed-unhealthy: true | |
159 | still-unstable: false | |
160 | pre-build: false | |
161 | matrix-trigger: only-parent | |
162 | send-to: | |
163 | - recipients | |
2b68721a | 164 | |
a3bc0379 MJ |
165 | - job-template: |
166 | name: dev_gerrit_lttng-ust_{buildtype} | |
167 | defaults: lttng-ust | |
168 | concurrent: true | |
169 | ||
170 | scm: | |
171 | - git: | |
172 | url: https://review.lttng.org/lttng-ust | |
173 | refspec: 'refs/changes/*:refs/changes/*' | |
174 | branches: | |
175 | - '$GERRIT_REFSPEC' | |
176 | basedir: src/lttng-ust | |
177 | skip-tag: true | |
178 | ||
179 | triggers: | |
180 | - gerrit: | |
181 | trigger-on: | |
182 | - comment-added-event: | |
183 | approval-category: 'CI-Build' | |
184 | approval-value: 1 | |
185 | projects: | |
186 | - project-compare-type: 'PLAIN' | |
187 | project-pattern: 'lttng-ust' | |
188 | branches: | |
189 | - branch-compare-type: 'ANT' | |
190 | branch-pattern: '**' | |
191 | trigger-for-unreviewed-patches: true | |
192 | ||
193 | <<: *lttng-ust_build_axes_defaults | |
194 | <<: *lttng-ust_build_builders_defaults | |
195 | ||
85d7c882 MJ |
196 | properties: |
197 | - inject: | |
198 | properties-content: | | |
199 | PROJECT_NAME=lttng-ust | |
200 | - build-discarder: | |
201 | days-to-keep: 1 | |
202 | - throttle: | |
203 | option: 'category' | |
204 | categories: | |
205 | - 'gerrit-{buildtype}' | |
206 | ||
a3bc0379 MJ |
207 | publishers: |
208 | - tap: | |
209 | results: 'tap/**/*.log' | |
210 | fail-if-no-results: true | |
211 | failed-tests-mark-build-as-failure: true | |
212 | todo-is-failure: false | |
213 | - warnings: | |
214 | console-log-parsers: | |
215 | - 'GNU Make + GNU C Compiler (gcc)' | |
216 | total-thresholds: | |
217 | failed: | |
218 | total-all: 0 | |
219 | total-high: 0 | |
220 | total-normal: 0 | |
221 | total-low: 0 | |
222 | - archive: | |
223 | artifacts: 'build/**,tap/**' | |
224 | allow-empty: false | |
225 | - workspace-cleanup | |
226 | ||
2b68721a MJ |
227 | - job-template: |
228 | name: lttng-ust_{version}_cppcheck | |
229 | defaults: lttng-ust | |
230 | ||
231 | triggers: | |
232 | - pollscm: | |
233 | cron: "@daily" | |
234 | ||
235 | builders: | |
236 | - shell: | | |
5279b0f2 MJ |
237 | rm -f cppcheck-result.xml |
238 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml | |
2b68721a MJ |
239 | |
240 | publishers: | |
241 | - archive: | |
5279b0f2 | 242 | artifacts: 'cppcheck-result.xml' |
2b68721a MJ |
243 | allow-empty: false |
244 | - cppcheck: | |
5279b0f2 | 245 | pattern: 'cppcheck-result.xml' |
2b68721a MJ |
246 | - email: |
247 | recipients: 'ci-notification@lists.lttng.org' | |
248 | notify-every-unstable-build: true | |
249 | send-to-individuals: false | |
250 | ||
251 | - job-template: | |
252 | name: lttng-ust_{version}_scan-build | |
253 | defaults: lttng-ust | |
16844a6d | 254 | node: 'amd64' |
2b68721a MJ |
255 | |
256 | triggers: | |
257 | - pollscm: | |
258 | cron: "@daily" | |
259 | ||
260 | builders: | |
c9b78c7b | 261 | - copyartifact: |
16844a6d | 262 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
c9b78c7b | 263 | which-build: last-successful |
3522265a | 264 | stable: false |
c9b78c7b | 265 | filter: 'build/**' |
6544f0ff | 266 | target: 'deps' |
c9b78c7b | 267 | do-not-fingerprint: true |
2b68721a | 268 | - shell: |
69f05d59 | 269 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
270 | |
271 | publishers: | |
272 | - html-publisher: | |
273 | name: 'HTML Report' | |
274 | dir: 'scan-build-archive/' | |
275 | files: 'index.html' | |
276 | ||
cdb4cba4 MJ |
277 | - job-template: |
278 | name: lttng-ust_{version}_coverity | |
279 | defaults: lttng-ust | |
16844a6d | 280 | node: 'amd64' |
cdb4cba4 MJ |
281 | |
282 | triggers: | |
283 | - pollscm: | |
284 | cron: "@daily" | |
285 | ||
286 | wrappers: | |
287 | - workspace-cleanup | |
288 | - timestamps | |
289 | - ansicolor: | |
290 | colormap: xterm | |
291 | - credentials-binding: | |
292 | - username-password-separated: | |
293 | credential-id: lttng-ust_coverity_token | |
294 | username: COVERITY_SCAN_PROJECT_NAME | |
295 | password: COVERITY_SCAN_TOKEN | |
296 | ||
297 | builders: | |
298 | - copyartifact: | |
16844a6d | 299 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
cdb4cba4 | 300 | which-build: last-successful |
3522265a | 301 | stable: false |
cdb4cba4 | 302 | filter: 'build/**' |
30c8dfac | 303 | target: 'deps' |
cdb4cba4 MJ |
304 | do-not-fingerprint: true |
305 | - shell: | |
ef63064f | 306 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
307 | |
308 | publishers: | |
309 | - workspace-cleanup | |
1f4fba8c MJ |
310 | - archive: |
311 | artifacts: 'analysis-results.tgz,cov-int/**' | |
312 | allow-empty: false | |
2b68721a | 313 | |
2b68721a | 314 | |
3579dc14 MJ |
315 | ## Views |
316 | - view-template: | |
317 | name: 'LTTng-ust' | |
318 | view-type: list | |
319 | regex: 'lttng-ust[-_].*' | |
2b68721a | 320 | |
2b68721a | 321 | |
3579dc14 | 322 | ## Projects |
2b68721a MJ |
323 | - project: |
324 | name: lttng-ust | |
51ca880a MJ |
325 | github_user: lttng |
326 | github_name: lttng-ust | |
68fff945 | 327 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
2b68721a | 328 | version: |
b631316e | 329 | - stable-2.10 |
7f5ffb7a | 330 | - stable-2.11 |
2b68721a MJ |
331 | jobs: |
332 | - 'lttng-ust_{version}_{buildtype}': | |
333 | buildtype: build | |
16844a6d | 334 | arch: !!python/tuple [amd64] |
67122b96 | 335 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 336 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
03a8831e | 337 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
3e93ffa2 | 338 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
2b68721a MJ |
339 | - 'lttng-ust_{version}_{buildtype}': |
340 | buildtype: portbuild | |
16844a6d | 341 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
2b68721a | 342 | build: !!python/tuple [std] |
67122b96 | 343 | conf: !!python/tuple [std, agents] |
03a8831e | 344 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 345 | filter: '' |
81bf613d MJ |
346 | - 'lttng-ust_{version}_{buildtype}': |
347 | buildtype: slesbuild | |
348 | arch: !!python/tuple [sles12sp2] | |
349 | build: !!python/tuple [std] | |
60bb9bde | 350 | conf: !!python/tuple [agents] |
0faaf34a | 351 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd MJ |
352 | filter: '' |
353 | - 'lttng-ust_{version}_{buildtype}': | |
354 | buildtype: elbuild | |
355 | arch: !!python/tuple [el8] | |
356 | build: !!python/tuple [std] | |
357 | conf: !!python/tuple [std] | |
0faaf34a | 358 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
568b5cbd | 359 | filter: '' |
2b68721a MJ |
360 | - 'lttng-ust_{version}_cppcheck' |
361 | - 'lttng-ust_{version}_scan-build' | |
8713492f | 362 | |
03297c9e | 363 | ## Master ## |
fe16cb00 MJ |
364 | - 'lttng-ust_{version}_{buildtype}': |
365 | buildtype: build | |
366 | version: master | |
16844a6d | 367 | arch: !!python/tuple [amd64] |
fe16cb00 | 368 | build: !!python/tuple [std, dist, oot, oot-dist] |
3e93ffa2 | 369 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 370 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 371 | filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))' |
fe16cb00 MJ |
372 | - 'lttng-ust_{version}_{buildtype}': |
373 | buildtype: portbuild | |
374 | version: master | |
16844a6d | 375 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
fe16cb00 MJ |
376 | build: !!python/tuple [std] |
377 | conf: !!python/tuple [std, agents] | |
0faaf34a | 378 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 379 | filter: '' |
fe16cb00 MJ |
380 | - 'lttng-ust_{version}_{buildtype}': |
381 | buildtype: slesbuild | |
382 | version: master | |
383 | arch: !!python/tuple [sles12sp2] | |
384 | build: !!python/tuple [std] | |
60bb9bde | 385 | conf: !!python/tuple [agents] |
0faaf34a | 386 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd MJ |
387 | filter: '' |
388 | - 'lttng-ust_{version}_{buildtype}': | |
389 | buildtype: elbuild | |
390 | version: master | |
391 | arch: !!python/tuple [el8] | |
392 | build: !!python/tuple [std] | |
393 | conf: !!python/tuple [std] | |
0faaf34a | 394 | liburcu_version: !!python/tuple [stable-0.12, master] |
568b5cbd | 395 | filter: '' |
fe16cb00 MJ |
396 | - 'lttng-ust_{version}_cppcheck': |
397 | version: master | |
398 | - 'lttng-ust_{version}_scan-build': | |
399 | version: master | |
cdb4cba4 MJ |
400 | - 'lttng-ust_{version}_coverity': |
401 | version: master | |
8713492f | 402 | |
03297c9e MJ |
403 | ## Stable 2.12 ## |
404 | - 'lttng-ust_{version}_{buildtype}': | |
405 | buildtype: build | |
406 | version: stable-2.12 | |
407 | arch: !!python/tuple [amd64] | |
408 | build: !!python/tuple [std, dist, oot, oot-dist] | |
3e93ffa2 | 409 | conf: !!python/tuple [std, agents, debug-rcu, tls_fallback] |
0faaf34a | 410 | liburcu_version: !!python/tuple [stable-0.12, master] |
3e93ffa2 | 411 | filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))' |
03297c9e MJ |
412 | - 'lttng-ust_{version}_{buildtype}': |
413 | buildtype: portbuild | |
414 | version: stable-2.12 | |
415 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
416 | build: !!python/tuple [std] | |
417 | conf: !!python/tuple [std, agents] | |
0faaf34a | 418 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
419 | filter: '' |
420 | - 'lttng-ust_{version}_{buildtype}': | |
421 | buildtype: slesbuild | |
422 | version: stable-2.12 | |
423 | arch: !!python/tuple [sles12sp2] | |
424 | build: !!python/tuple [std] | |
60bb9bde | 425 | conf: !!python/tuple [agents] |
0faaf34a | 426 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
427 | filter: '' |
428 | - 'lttng-ust_{version}_{buildtype}': | |
429 | buildtype: elbuild | |
430 | version: stable-2.12 | |
431 | arch: !!python/tuple [el8] | |
432 | build: !!python/tuple [std] | |
433 | conf: !!python/tuple [std] | |
0faaf34a | 434 | liburcu_version: !!python/tuple [stable-0.12, master] |
03297c9e MJ |
435 | filter: '' |
436 | - 'lttng-ust_{version}_cppcheck': | |
437 | version: stable-2.12 | |
438 | - 'lttng-ust_{version}_scan-build': | |
439 | version: stable-2.12 | |
2b68721a | 440 | |
0104d146 MJ |
441 | ## Stable 2.9 ## |
442 | - 'lttng-ust_{version}_{buildtype}': | |
443 | buildtype: slesbuild | |
444 | version: stable-2.9 | |
445 | arch: !!python/tuple [sles12sp2] | |
446 | build: !!python/tuple [std] | |
60bb9bde | 447 | conf: !!python/tuple [agents] |
0104d146 MJ |
448 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
449 | filter: '' | |
450 | ||
8713492f MJ |
451 | ## Stable 2.8 ## |
452 | - 'lttng-ust_{version}_{buildtype}': | |
453 | buildtype: slesbuild | |
454 | version: stable-2.8 | |
455 | arch: !!python/tuple [sles12sp2] | |
456 | build: !!python/tuple [std] | |
60bb9bde | 457 | conf: !!python/tuple [agents] |
8713492f MJ |
458 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master] |
459 | filter: '' | |
460 | ||
461 | ||
a3bc0379 MJ |
462 | - project: |
463 | name: gerrit-lttng-ust | |
464 | github_user: lttng | |
465 | github_name: lttng-ust | |
466 | jobs: | |
467 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
468 | buildtype: build | |
469 | arch: !!python/tuple [amd64] | |
470 | build: !!python/tuple [std, oot, dist, oot-dist] | |
471 | conf: !!python/tuple [std, agents] | |
0faaf34a | 472 | liburcu_version: !!python/tuple [stable-0.12] |
c8370e00 MJ |
473 | filter: '' |
474 | - 'dev_gerrit_lttng-ust_{buildtype}': | |
475 | buildtype: portbuild | |
476 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
477 | build: !!python/tuple [std] | |
478 | conf: !!python/tuple [agents] | |
479 | liburcu_version: !!python/tuple [stable-0.12] | |
480 | filter: '' | |
a3bc0379 | 481 | |
3579dc14 | 482 | - project: |
e04f80ef | 483 | name: lttng-ust-views |
3579dc14 MJ |
484 | views: |
485 | - LTTng-ust |