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