jjb: lttng-ust: Add FreeBSD jobs
[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: https://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:
112 - scripts/common/print.sh
113 - scripts/lttng-ust/build.sh
114
115
116 ## Templates
117 - job-template:
118 name: lttng-ust_{version}_{buildtype}
119 defaults: lttng-ust
120
121 <<: *lttng-ust_build_axes_defaults
122 <<: *lttng-ust_build_builders_defaults
123
124 # TODO: Scan for open tasks
125 publishers:
126 - tap:
127 results: 'tap/**/*.log'
128 fail-if-no-results: true
129 failed-tests-mark-build-as-failure: true
130 todo-is-failure: false
131 - warnings:
132 console-log-parsers:
133 - 'GNU Make + GNU C Compiler (gcc)'
134 total-thresholds:
135 unstable:
136 total-all: 0
137 total-high: 0
138 total-normal: 0
139 total-low: 0
140 - archive:
141 artifacts: 'build/**,tap/**'
142 allow-empty: false
143 - workspace-cleanup
144 - email-ext:
145 recipients: '{obj:email_to}'
146 reply-to: ci-notification@lists.lttng.org
147 always: false
148 unstable: false
149 first-failure: true
150 first-unstable: true
151 not-built: false
152 aborted: false
153 regression: false
154 failure: false
155 second-failure: false
156 improvement: false
157 still-failing: false
158 success: false
159 fixed: false
160 fixed-unhealthy: true
161 still-unstable: false
162 pre-build: false
163 matrix-trigger: only-parent
164 send-to:
165 - recipients
166
167 - job-template:
168 name: dev_gerrit_lttng-ust_{buildtype}
169 defaults: lttng-ust
170 concurrent: true
171
172 scm:
173 - git:
174 url: https://review.lttng.org/lttng-ust
175 refspec: 'refs/changes/*:refs/changes/*'
176 branches:
177 - '$GERRIT_REFSPEC'
178 basedir: src/lttng-ust
179 skip-tag: true
180
181 triggers:
182 - gerrit:
183 trigger-on:
184 - comment-added-event:
185 approval-category: 'CI-Build'
186 approval-value: 1
187 projects:
188 - project-compare-type: 'PLAIN'
189 project-pattern: 'lttng-ust'
190 branches:
191 - branch-compare-type: 'ANT'
192 branch-pattern: '**'
193
194 <<: *lttng-ust_build_axes_defaults
195 <<: *lttng-ust_build_builders_defaults
196
197 properties:
198 - inject:
199 properties-content: |
200 PROJECT_NAME=lttng-ust
201 - build-discarder:
202 days-to-keep: 1
203 - throttle:
204 option: 'category'
205 categories:
206 - 'gerrit-{buildtype}'
207
208 publishers:
209 - tap:
210 results: 'tap/**/*.log'
211 fail-if-no-results: true
212 failed-tests-mark-build-as-failure: true
213 todo-is-failure: false
214 - warnings:
215 console-log-parsers:
216 - 'GNU Make + GNU C Compiler (gcc)'
217 total-thresholds:
218 failed:
219 total-all: 0
220 total-high: 0
221 total-normal: 0
222 total-low: 0
223 - archive:
224 artifacts: 'build/**,tap/**'
225 allow-empty: false
226 - workspace-cleanup
227
228 - job-template:
229 name: lttng-ust_{version}_cppcheck
230 defaults: lttng-ust
231
232 triggers:
233 - pollscm:
234 cron: "@daily"
235
236 builders:
237 - shell: |
238 rm -f cppcheck-result.xml
239 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
240
241 publishers:
242 - archive:
243 artifacts: 'cppcheck-result.xml'
244 allow-empty: false
245 - cppcheck:
246 pattern: 'cppcheck-result.xml'
247 - email:
248 recipients: 'ci-notification@lists.lttng.org'
249 notify-every-unstable-build: true
250 send-to-individuals: false
251
252 - job-template:
253 name: lttng-ust_{version}_scan-build
254 defaults: lttng-ust
255 node: 'amd64'
256
257 triggers:
258 - pollscm:
259 cron: "@daily"
260
261 builders:
262 - copyartifact:
263 project: liburcu_master_build/arch=amd64,conf=std,build=std
264 which-build: last-successful
265 stable: false
266 filter: 'build/**'
267 target: 'deps'
268 do-not-fingerprint: true
269 - shell:
270 !include-raw-escape: scripts/common/scan-build.sh
271
272 publishers:
273 - html-publisher:
274 name: 'HTML Report'
275 dir: 'scan-build-archive/'
276 files: 'index.html'
277
278 - job-template:
279 name: lttng-ust_{version}_coverity
280 defaults: lttng-ust
281 node: 'amd64'
282
283 triggers:
284 - pollscm:
285 cron: "@daily"
286
287 wrappers:
288 - workspace-cleanup
289 - timestamps
290 - ansicolor:
291 colormap: xterm
292 - credentials-binding:
293 - username-password-separated:
294 credential-id: lttng-ust_coverity_token
295 username: COVERITY_SCAN_PROJECT_NAME
296 password: COVERITY_SCAN_TOKEN
297
298 builders:
299 - copyartifact:
300 project: liburcu_master_build/arch=amd64,conf=std,build=std
301 which-build: last-successful
302 stable: false
303 filter: 'build/**'
304 target: 'deps'
305 do-not-fingerprint: true
306 - shell:
307 !include-raw-escape: scripts/common/coverity.sh
308
309 publishers:
310 - workspace-cleanup
311 - archive:
312 artifacts: 'analysis-results.tgz,cov-int/**'
313 allow-empty: false
314
315
316 ## Views
317 - view-template:
318 name: 'LTTng-ust'
319 view-type: list
320 regex: 'lttng-ust[-_].*'
321
322
323 ## Projects
324 - project:
325 name: lttng-ust
326 github_user: lttng
327 github_name: lttng-ust
328 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
329 version:
330 - stable-2.10
331 - stable-2.11
332 jobs:
333 - 'lttng-ust_{version}_{buildtype}':
334 buildtype: build
335 arch: !!python/tuple [amd64]
336 build: !!python/tuple [std, dist, oot, oot-dist]
337 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
338 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
339 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
340 - 'lttng-ust_{version}_{buildtype}':
341 buildtype: portbuild
342 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
343 build: !!python/tuple [std]
344 conf: !!python/tuple [std, agents]
345 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
346 filter: ''
347 - 'lttng-ust_{version}_{buildtype}':
348 buildtype: slesbuild
349 arch: !!python/tuple [sles12sp2]
350 build: !!python/tuple [std]
351 conf: !!python/tuple [agents]
352 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
353 filter: ''
354 - 'lttng-ust_{version}_{buildtype}':
355 buildtype: elbuild
356 arch: !!python/tuple [el8]
357 build: !!python/tuple [std]
358 conf: !!python/tuple [std]
359 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
360 filter: ''
361 - 'lttng-ust_{version}_cppcheck'
362 - 'lttng-ust_{version}_scan-build'
363
364 ## Master ##
365 - 'lttng-ust_{version}_{buildtype}':
366 buildtype: build
367 version: master
368 arch: !!python/tuple [amd64]
369 build: !!python/tuple [std, dist, oot, oot-dist]
370 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
371 liburcu_version: !!python/tuple [stable-0.12, master]
372 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
373 - 'lttng-ust_{version}_{buildtype}':
374 buildtype: portbuild
375 version: master
376 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
377 build: !!python/tuple [std]
378 conf: !!python/tuple [std, agents]
379 liburcu_version: !!python/tuple [stable-0.12, master]
380 filter: ''
381 - 'lttng-ust_{version}_{buildtype}':
382 buildtype: slesbuild
383 version: master
384 arch: !!python/tuple [sles12sp2]
385 build: !!python/tuple [std]
386 conf: !!python/tuple [agents]
387 liburcu_version: !!python/tuple [stable-0.12, master]
388 filter: ''
389 - 'lttng-ust_{version}_{buildtype}':
390 buildtype: elbuild
391 version: master
392 arch: !!python/tuple [el8]
393 build: !!python/tuple [std]
394 conf: !!python/tuple [std]
395 liburcu_version: !!python/tuple [stable-0.12, master]
396 filter: ''
397 - 'lttng-ust_{version}_{buildtype}':
398 buildtype: freebsdbuild
399 version: master
400 arch: !!python/tuple [freebsd]
401 build: !!python/tuple [std]
402 conf: !!python/tuple [agents]
403 liburcu_version: !!python/tuple [stable-0.12, master]
404 filter: ''
405 - 'lttng-ust_{version}_cppcheck':
406 version: master
407 - 'lttng-ust_{version}_scan-build':
408 version: master
409 - 'lttng-ust_{version}_coverity':
410 version: master
411
412 ## Stable 2.12 ##
413 - 'lttng-ust_{version}_{buildtype}':
414 buildtype: build
415 version: stable-2.12
416 arch: !!python/tuple [amd64]
417 build: !!python/tuple [std, dist, oot, oot-dist]
418 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
419 liburcu_version: !!python/tuple [stable-0.12, master]
420 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
421 - 'lttng-ust_{version}_{buildtype}':
422 buildtype: portbuild
423 version: stable-2.12
424 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
425 build: !!python/tuple [std]
426 conf: !!python/tuple [std, agents]
427 liburcu_version: !!python/tuple [stable-0.12, master]
428 filter: ''
429 - 'lttng-ust_{version}_{buildtype}':
430 buildtype: slesbuild
431 version: stable-2.12
432 arch: !!python/tuple [sles12sp2]
433 build: !!python/tuple [std]
434 conf: !!python/tuple [agents]
435 liburcu_version: !!python/tuple [stable-0.12, master]
436 filter: ''
437 - 'lttng-ust_{version}_{buildtype}':
438 buildtype: elbuild
439 version: stable-2.12
440 arch: !!python/tuple [el8]
441 build: !!python/tuple [std]
442 conf: !!python/tuple [std]
443 liburcu_version: !!python/tuple [stable-0.12, master]
444 filter: ''
445 - 'lttng-ust_{version}_cppcheck':
446 version: stable-2.12
447 - 'lttng-ust_{version}_scan-build':
448 version: stable-2.12
449
450 ## Stable 2.9 ##
451 - 'lttng-ust_{version}_{buildtype}':
452 buildtype: slesbuild
453 version: stable-2.9
454 arch: !!python/tuple [sles12sp2]
455 build: !!python/tuple [std]
456 conf: !!python/tuple [agents]
457 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
458 filter: ''
459
460 ## Stable 2.8 ##
461 - 'lttng-ust_{version}_{buildtype}':
462 buildtype: slesbuild
463 version: stable-2.8
464 arch: !!python/tuple [sles12sp2]
465 build: !!python/tuple [std]
466 conf: !!python/tuple [agents]
467 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
468 filter: ''
469
470
471 - project:
472 name: gerrit-lttng-ust
473 github_user: lttng
474 github_name: lttng-ust
475 jobs:
476 - 'dev_gerrit_lttng-ust_{buildtype}':
477 buildtype: build
478 arch: !!python/tuple [amd64]
479 build: !!python/tuple [std, oot, dist, oot-dist]
480 conf: !!python/tuple [std, agents]
481 liburcu_version: !!python/tuple [stable-0.12]
482 filter: ''
483 - 'dev_gerrit_lttng-ust_{buildtype}':
484 buildtype: portbuild
485 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
486 build: !!python/tuple [std]
487 conf: !!python/tuple [agents]
488 liburcu_version: !!python/tuple [stable-0.12]
489 filter: ''
490
491 - project:
492 name: lttng-ust-views
493 views:
494 - LTTng-ust
This page took 0.040002 seconds and 5 git commands to generate.