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