jjb: Remove deprecated trigger-for-unreviewed-patches from gerrit 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: 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
192 <<: *lttng-ust_build_axes_defaults
193 <<: *lttng-ust_build_builders_defaults
194
195 properties:
196 - inject:
197 properties-content: |
198 PROJECT_NAME=lttng-ust
199 - build-discarder:
200 days-to-keep: 1
201 - throttle:
202 option: 'category'
203 categories:
204 - 'gerrit-{buildtype}'
205
206 publishers:
207 - tap:
208 results: 'tap/**/*.log'
209 fail-if-no-results: true
210 failed-tests-mark-build-as-failure: true
211 todo-is-failure: false
212 - warnings:
213 console-log-parsers:
214 - 'GNU Make + GNU C Compiler (gcc)'
215 total-thresholds:
216 failed:
217 total-all: 0
218 total-high: 0
219 total-normal: 0
220 total-low: 0
221 - archive:
222 artifacts: 'build/**,tap/**'
223 allow-empty: false
224 - workspace-cleanup
225
226 - job-template:
227 name: lttng-ust_{version}_cppcheck
228 defaults: lttng-ust
229
230 triggers:
231 - pollscm:
232 cron: "@daily"
233
234 builders:
235 - shell: |
236 rm -f cppcheck-result.xml
237 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
238
239 publishers:
240 - archive:
241 artifacts: 'cppcheck-result.xml'
242 allow-empty: false
243 - cppcheck:
244 pattern: 'cppcheck-result.xml'
245 - email:
246 recipients: 'ci-notification@lists.lttng.org'
247 notify-every-unstable-build: true
248 send-to-individuals: false
249
250 - job-template:
251 name: lttng-ust_{version}_scan-build
252 defaults: lttng-ust
253 node: 'amd64'
254
255 triggers:
256 - pollscm:
257 cron: "@daily"
258
259 builders:
260 - copyartifact:
261 project: liburcu_master_build/arch=amd64,conf=std,build=std
262 which-build: last-successful
263 stable: false
264 filter: 'build/**'
265 target: 'deps'
266 do-not-fingerprint: true
267 - shell:
268 !include-raw-escape: scripts/common/scan-build.sh
269
270 publishers:
271 - html-publisher:
272 name: 'HTML Report'
273 dir: 'scan-build-archive/'
274 files: 'index.html'
275
276 - job-template:
277 name: lttng-ust_{version}_coverity
278 defaults: lttng-ust
279 node: 'amd64'
280
281 triggers:
282 - pollscm:
283 cron: "@daily"
284
285 wrappers:
286 - workspace-cleanup
287 - timestamps
288 - ansicolor:
289 colormap: xterm
290 - credentials-binding:
291 - username-password-separated:
292 credential-id: lttng-ust_coverity_token
293 username: COVERITY_SCAN_PROJECT_NAME
294 password: COVERITY_SCAN_TOKEN
295
296 builders:
297 - copyartifact:
298 project: liburcu_master_build/arch=amd64,conf=std,build=std
299 which-build: last-successful
300 stable: false
301 filter: 'build/**'
302 target: 'deps'
303 do-not-fingerprint: true
304 - shell:
305 !include-raw-escape: scripts/common/coverity.sh
306
307 publishers:
308 - workspace-cleanup
309 - archive:
310 artifacts: 'analysis-results.tgz,cov-int/**'
311 allow-empty: false
312
313
314 ## Views
315 - view-template:
316 name: 'LTTng-ust'
317 view-type: list
318 regex: 'lttng-ust[-_].*'
319
320
321 ## Projects
322 - project:
323 name: lttng-ust
324 github_user: lttng
325 github_name: lttng-ust
326 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
327 version:
328 - stable-2.10
329 - stable-2.11
330 jobs:
331 - 'lttng-ust_{version}_{buildtype}':
332 buildtype: build
333 arch: !!python/tuple [amd64]
334 build: !!python/tuple [std, dist, oot, oot-dist]
335 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
336 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
337 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
338 - 'lttng-ust_{version}_{buildtype}':
339 buildtype: portbuild
340 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
341 build: !!python/tuple [std]
342 conf: !!python/tuple [std, agents]
343 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
344 filter: ''
345 - 'lttng-ust_{version}_{buildtype}':
346 buildtype: slesbuild
347 arch: !!python/tuple [sles12sp2]
348 build: !!python/tuple [std]
349 conf: !!python/tuple [agents]
350 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
351 filter: ''
352 - 'lttng-ust_{version}_{buildtype}':
353 buildtype: elbuild
354 arch: !!python/tuple [el8]
355 build: !!python/tuple [std]
356 conf: !!python/tuple [std]
357 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
358 filter: ''
359 - 'lttng-ust_{version}_cppcheck'
360 - 'lttng-ust_{version}_scan-build'
361
362 ## Master ##
363 - 'lttng-ust_{version}_{buildtype}':
364 buildtype: build
365 version: master
366 arch: !!python/tuple [amd64]
367 build: !!python/tuple [std, dist, oot, oot-dist]
368 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
369 liburcu_version: !!python/tuple [stable-0.12, master]
370 filter: '(build=="std") || ((liburcu_version=="master" && (conf=="std" || conf=="agents")))'
371 - 'lttng-ust_{version}_{buildtype}':
372 buildtype: portbuild
373 version: master
374 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
375 build: !!python/tuple [std]
376 conf: !!python/tuple [std, agents]
377 liburcu_version: !!python/tuple [stable-0.12, master]
378 filter: ''
379 - 'lttng-ust_{version}_{buildtype}':
380 buildtype: slesbuild
381 version: master
382 arch: !!python/tuple [sles12sp2]
383 build: !!python/tuple [std]
384 conf: !!python/tuple [agents]
385 liburcu_version: !!python/tuple [stable-0.12, master]
386 filter: ''
387 - 'lttng-ust_{version}_{buildtype}':
388 buildtype: elbuild
389 version: master
390 arch: !!python/tuple [el8]
391 build: !!python/tuple [std]
392 conf: !!python/tuple [std]
393 liburcu_version: !!python/tuple [stable-0.12, master]
394 filter: ''
395 - 'lttng-ust_{version}_cppcheck':
396 version: master
397 - 'lttng-ust_{version}_scan-build':
398 version: master
399 - 'lttng-ust_{version}_coverity':
400 version: master
401
402 ## Stable 2.12 ##
403 - 'lttng-ust_{version}_{buildtype}':
404 buildtype: build
405 version: stable-2.12
406 arch: !!python/tuple [amd64]
407 build: !!python/tuple [std, dist, oot, oot-dist]
408 conf: !!python/tuple [std, agents, debug-rcu, tls_fallback]
409 liburcu_version: !!python/tuple [stable-0.12, master]
410 filter: '(build=="std") || ((liburcu_version=="stable-0.12" && (conf=="std" || conf=="agents")))'
411 - 'lttng-ust_{version}_{buildtype}':
412 buildtype: portbuild
413 version: stable-2.12
414 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
415 build: !!python/tuple [std]
416 conf: !!python/tuple [std, agents]
417 liburcu_version: !!python/tuple [stable-0.12, master]
418 filter: ''
419 - 'lttng-ust_{version}_{buildtype}':
420 buildtype: slesbuild
421 version: stable-2.12
422 arch: !!python/tuple [sles12sp2]
423 build: !!python/tuple [std]
424 conf: !!python/tuple [agents]
425 liburcu_version: !!python/tuple [stable-0.12, master]
426 filter: ''
427 - 'lttng-ust_{version}_{buildtype}':
428 buildtype: elbuild
429 version: stable-2.12
430 arch: !!python/tuple [el8]
431 build: !!python/tuple [std]
432 conf: !!python/tuple [std]
433 liburcu_version: !!python/tuple [stable-0.12, master]
434 filter: ''
435 - 'lttng-ust_{version}_cppcheck':
436 version: stable-2.12
437 - 'lttng-ust_{version}_scan-build':
438 version: stable-2.12
439
440 ## Stable 2.9 ##
441 - 'lttng-ust_{version}_{buildtype}':
442 buildtype: slesbuild
443 version: stable-2.9
444 arch: !!python/tuple [sles12sp2]
445 build: !!python/tuple [std]
446 conf: !!python/tuple [agents]
447 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
448 filter: ''
449
450 ## Stable 2.8 ##
451 - 'lttng-ust_{version}_{buildtype}':
452 buildtype: slesbuild
453 version: stable-2.8
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
461 - project:
462 name: gerrit-lttng-ust
463 github_user: lttng
464 github_name: lttng-ust
465 jobs:
466 - 'dev_gerrit_lttng-ust_{buildtype}':
467 buildtype: build
468 arch: !!python/tuple [amd64]
469 build: !!python/tuple [std, oot, dist, oot-dist]
470 conf: !!python/tuple [std, agents]
471 liburcu_version: !!python/tuple [stable-0.12]
472 filter: ''
473 - 'dev_gerrit_lttng-ust_{buildtype}':
474 buildtype: portbuild
475 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
476 build: !!python/tuple [std]
477 conf: !!python/tuple [agents]
478 liburcu_version: !!python/tuple [stable-0.12]
479 filter: ''
480
481 - project:
482 name: lttng-ust-views
483 views:
484 - LTTng-ust
This page took 0.039048 seconds and 5 git commands to generate.