jjb: Add urcu tls fallback config to ust and tools
[lttng-ci.git] / jobs / lttng-ust.yaml
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
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
20 url: git://github.com/{github_user}/{github_name}.git
21 browser: githubweb
22 browser-url: https://github.com/{github_user}/{github_name}
23 branches:
24 - origin/{version}
25 basedir: src/lttng-ust
26 skip-tag: true
27
28 triggers:
29 - pollscm:
30 cron: "@hourly"
31
32 properties:
33 - inject:
34 properties-content: |
35 PROJECT_NAME=lttng-ust
36 - build-discarder:
37 num-to-keep: 2
38 - github:
39 url: https://github.com/{github_user}/{github_name}
40
41
42 ## Anchors
43 - lttng-ust_build_axes_defaults: &lttng-ust_build_axes_defaults
44 name: 'lttng-ust_build_axes_defaults'
45 project-type: matrix
46 node: 'master' # Applies only to matrix flyweight task
47 execution-strategy:
48 combination-filter: '{filter}'
49 axes:
50 - axis:
51 type: slave
52 name: arch
53 values: '{obj:arch}'
54 - axis:
55 type: user-defined
56 name: conf
57 values: '{obj:conf}'
58 - axis:
59 type: user-defined
60 name: liburcu_version
61 values: '{obj:liburcu_version}'
62 - axis:
63 type: user-defined
64 name: build
65 values: '{obj:build}'
66
67 - lttng-ust_build_builders_defaults: &lttng-ust_build_builders_defaults
68 name: 'lttng-ust_build_builders_defaults'
69 builders:
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/**'
81 target: 'deps'
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/**'
95 target: 'deps'
96 do-not-fingerprint: true
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
110 - shell:
111 !include-raw-escape: scripts/lttng-ust/build.sh
112
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
122 # TODO: Scan for open tasks
123 publishers:
124 - tap:
125 results: 'tap/**/*.log'
126 fail-if-no-results: true
127 failed-tests-mark-build-as-failure: true
128 todo-is-failure: false
129 - warnings:
130 console-log-parsers:
131 - 'GNU Make + GNU C Compiler (gcc)'
132 total-thresholds:
133 unstable:
134 total-all: 0
135 total-high: 0
136 total-normal: 0
137 total-low: 0
138 - archive:
139 artifacts: 'build/**,tap/**'
140 allow-empty: false
141 - workspace-cleanup
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
164
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
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
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
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: |
237 rm -f cppcheck-result.xml
238 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
239
240 publishers:
241 - archive:
242 artifacts: 'cppcheck-result.xml'
243 allow-empty: false
244 - cppcheck:
245 pattern: 'cppcheck-result.xml'
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
254 node: 'amd64'
255
256 triggers:
257 - pollscm:
258 cron: "@daily"
259
260 builders:
261 - copyartifact:
262 project: liburcu_master_build/arch=amd64,conf=std,build=std
263 which-build: last-successful
264 stable: false
265 filter: 'build/**'
266 target: 'deps'
267 do-not-fingerprint: true
268 - shell:
269 !include-raw-escape: scripts/common/scan-build.sh
270
271 publishers:
272 - html-publisher:
273 name: 'HTML Report'
274 dir: 'scan-build-archive/'
275 files: 'index.html'
276
277 - job-template:
278 name: lttng-ust_{version}_coverity
279 defaults: lttng-ust
280 node: 'amd64'
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:
299 project: liburcu_master_build/arch=amd64,conf=std,build=std
300 which-build: last-successful
301 stable: false
302 filter: 'build/**'
303 target: 'deps'
304 do-not-fingerprint: true
305 - shell:
306 !include-raw-escape: scripts/common/coverity.sh
307
308 publishers:
309 - workspace-cleanup
310 - archive:
311 artifacts: 'analysis-results.tgz,cov-int/**'
312 allow-empty: false
313
314
315 ## Views
316 - view-template:
317 name: 'LTTng-ust'
318 view-type: list
319 regex: 'lttng-ust[-_].*'
320
321
322 ## Projects
323 - project:
324 name: lttng-ust
325 github_user: lttng
326 github_name: lttng-ust
327 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
328 version:
329 - stable-2.10
330 - stable-2.11
331 jobs:
332 - 'lttng-ust_{version}_{buildtype}':
333 buildtype: build
334 arch: !!python/tuple [amd64]
335 build: !!python/tuple [std, dist, oot, oot-dist]
336 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
337 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
338 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
339 - 'lttng-ust_{version}_{buildtype}':
340 buildtype: portbuild
341 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
342 build: !!python/tuple [std]
343 conf: !!python/tuple [std, agents]
344 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
345 filter: ''
346 - 'lttng-ust_{version}_{buildtype}':
347 buildtype: slesbuild
348 arch: !!python/tuple [sles12sp2]
349 build: !!python/tuple [std]
350 conf: !!python/tuple [agents]
351 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
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]
358 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
359 filter: ''
360 - 'lttng-ust_{version}_cppcheck'
361 - 'lttng-ust_{version}_scan-build'
362
363 ## Master ##
364 - 'lttng-ust_{version}_{buildtype}':
365 buildtype: build
366 version: master
367 arch: !!python/tuple [amd64]
368 build: !!python/tuple [std, dist, oot, oot-dist]
369 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
370 liburcu_version: !!python/tuple [stable-0.12, master]
371 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
372 - 'lttng-ust_{version}_{buildtype}':
373 buildtype: portbuild
374 version: master
375 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
376 build: !!python/tuple [std]
377 conf: !!python/tuple [std, agents]
378 liburcu_version: !!python/tuple [stable-0.12, master]
379 filter: ''
380 - 'lttng-ust_{version}_{buildtype}':
381 buildtype: slesbuild
382 version: master
383 arch: !!python/tuple [sles12sp2]
384 build: !!python/tuple [std]
385 conf: !!python/tuple [agents]
386 liburcu_version: !!python/tuple [stable-0.12, master]
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]
394 liburcu_version: !!python/tuple [stable-0.12, master]
395 filter: ''
396 - 'lttng-ust_{version}_cppcheck':
397 version: master
398 - 'lttng-ust_{version}_scan-build':
399 version: master
400 - 'lttng-ust_{version}_coverity':
401 version: master
402
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]
409 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
410 liburcu_version: !!python/tuple [stable-0.12, master]
411 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
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]
418 liburcu_version: !!python/tuple [stable-0.12, master]
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]
425 conf: !!python/tuple [agents]
426 liburcu_version: !!python/tuple [stable-0.12, master]
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]
434 liburcu_version: !!python/tuple [stable-0.12, master]
435 filter: ''
436 - 'lttng-ust_{version}_cppcheck':
437 version: stable-2.12
438 - 'lttng-ust_{version}_scan-build':
439 version: stable-2.12
440
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]
447 conf: !!python/tuple [agents]
448 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
449 filter: ''
450
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]
457 conf: !!python/tuple [agents]
458 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
459 filter: ''
460
461
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]
472 liburcu_version: !!python/tuple [stable-0.12]
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: ''
481
482 - project:
483 name: lttng-ust-views
484 views:
485 - LTTng-ust
This page took 0.039047 seconds and 5 git commands to generate.