jjb: lttng-tools: Enable agents on sles
[lttng-ci.git] / jobs / lttng-ust.yaml
CommitLineData
2b68721a
MJ
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
2b68721a
MJ
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
51ca880a 20 url: git://github.com/{github_user}/{github_name}.git
2b68721a 21 browser: githubweb
51ca880a 22 browser-url: https://github.com/{github_user}/{github_name}
2b68721a
MJ
23 branches:
24 - origin/{version}
1f4fba8c 25 basedir: src/lttng-ust
89b9225e 26 skip-tag: true
2b68721a
MJ
27
28 triggers:
29 - pollscm:
30 cron: "@hourly"
31
32 properties:
69f05d59
MJ
33 - inject:
34 properties-content: |
35 PROJECT_NAME=lttng-ust
edf72710
MJ
36 - build-discarder:
37 num-to-keep: 2
2b68721a 38 - github:
51ca880a 39 url: https://github.com/{github_user}/{github_name}
2b68721a
MJ
40
41
a3bc0379
MJ
42## Anchors
43- lttng-ust_build_axes_defaults: &lttng-ust_build_axes_defaults
44 name: 'lttng-ust_build_axes_defaults'
2b68721a 45 project-type: matrix
ca8c6144 46 node: 'master' # Applies only to matrix flyweight task
2b68721a 47 execution-strategy:
568b5cbd 48 combination-filter: '{filter}'
2b68721a
MJ
49 axes:
50 - axis:
51 type: slave
52 name: arch
53 values: '{obj:arch}'
54 - axis:
55 type: user-defined
56 name: conf
95654431 57 values: '{obj:conf}'
2b68721a
MJ
58 - axis:
59 type: user-defined
60 name: liburcu_version
81bf613d 61 values: '{obj:liburcu_version}'
2b68721a
MJ
62 - axis:
63 type: user-defined
64 name: build
65 values: '{obj:build}'
66
a3bc0379
MJ
67- lttng-ust_build_builders_defaults: &lttng-ust_build_builders_defaults
68 name: 'lttng-ust_build_builders_defaults'
2b68721a 69 builders:
0349e2c0
JR
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/**'
3579dc14 81 target: 'deps'
0349e2c0
JR
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/**'
3579dc14 95 target: 'deps'
0349e2c0 96 do-not-fingerprint: true
2b68721a 97 - shell:
ef63064f 98 !include-raw-escape: scripts/lttng-ust/build.sh
2b68721a 99
a3bc0379
MJ
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
2b68721a
MJ
109 # TODO: Scan for open tasks
110 publishers:
111 - tap:
1f4fba8c 112 results: 'tap/**/*.log'
1d56e325 113 fail-if-no-results: true
2b68721a 114 failed-tests-mark-build-as-failure: true
95654431 115 todo-is-failure: false
2b68721a
MJ
116 - warnings:
117 console-log-parsers:
118 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
119 total-thresholds:
120 unstable:
d2c76ee5
MJ
121 total-all: 0
122 total-high: 0
123 total-normal: 0
124 total-low: 0
2b68721a 125 - archive:
3579dc14 126 artifacts: 'build/**,tap/**'
2b68721a
MJ
127 allow-empty: false
128 - workspace-cleanup
68fff945
JR
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
2b68721a 151
a3bc0379
MJ
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
85d7c882
MJ
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
a3bc0379
MJ
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
2b68721a
MJ
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: |
5279b0f2
MJ
224 rm -f cppcheck-result.xml
225 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
2b68721a
MJ
226
227 publishers:
228 - archive:
5279b0f2 229 artifacts: 'cppcheck-result.xml'
2b68721a
MJ
230 allow-empty: false
231 - cppcheck:
5279b0f2 232 pattern: 'cppcheck-result.xml'
2b68721a
MJ
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
16844a6d 241 node: 'amd64'
2b68721a
MJ
242
243 triggers:
244 - pollscm:
245 cron: "@daily"
246
247 builders:
c9b78c7b 248 - copyartifact:
16844a6d 249 project: liburcu_master_build/arch=amd64,conf=std,build=std
c9b78c7b 250 which-build: last-successful
3522265a 251 stable: false
c9b78c7b 252 filter: 'build/**'
6544f0ff 253 target: 'deps'
c9b78c7b 254 do-not-fingerprint: true
2b68721a 255 - shell:
69f05d59 256 !include-raw-escape: scripts/common/scan-build.sh
2b68721a
MJ
257
258 publishers:
259 - html-publisher:
260 name: 'HTML Report'
261 dir: 'scan-build-archive/'
262 files: 'index.html'
263
cdb4cba4
MJ
264- job-template:
265 name: lttng-ust_{version}_coverity
266 defaults: lttng-ust
16844a6d 267 node: 'amd64'
cdb4cba4
MJ
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:
16844a6d 286 project: liburcu_master_build/arch=amd64,conf=std,build=std
cdb4cba4 287 which-build: last-successful
3522265a 288 stable: false
cdb4cba4 289 filter: 'build/**'
30c8dfac 290 target: 'deps'
cdb4cba4
MJ
291 do-not-fingerprint: true
292 - shell:
ef63064f 293 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
294
295 publishers:
296 - workspace-cleanup
1f4fba8c
MJ
297 - archive:
298 artifacts: 'analysis-results.tgz,cov-int/**'
299 allow-empty: false
2b68721a 300
2b68721a 301
3579dc14
MJ
302## Views
303- view-template:
304 name: 'LTTng-ust'
305 view-type: list
306 regex: 'lttng-ust[-_].*'
2b68721a 307
2b68721a 308
3579dc14 309## Projects
2b68721a
MJ
310- project:
311 name: lttng-ust
51ca880a
MJ
312 github_user: lttng
313 github_name: lttng-ust
68fff945 314 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
2b68721a 315 version:
b631316e 316 - stable-2.10
7f5ffb7a 317 - stable-2.11
2b68721a
MJ
318 jobs:
319 - 'lttng-ust_{version}_{buildtype}':
320 buildtype: build
16844a6d 321 arch: !!python/tuple [amd64]
67122b96 322 build: !!python/tuple [std, dist, oot, oot-dist]
0349e2c0 323 conf: !!python/tuple [std, agents, debug-rcu]
03a8831e 324 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd 325 filter: '(build=="std") || (liburcu_version=="master")'
2b68721a
MJ
326 - 'lttng-ust_{version}_{buildtype}':
327 buildtype: portbuild
16844a6d 328 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
2b68721a 329 build: !!python/tuple [std]
67122b96 330 conf: !!python/tuple [std, agents]
03a8831e 331 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd 332 filter: ''
81bf613d
MJ
333 - 'lttng-ust_{version}_{buildtype}':
334 buildtype: slesbuild
335 arch: !!python/tuple [sles12sp2]
336 build: !!python/tuple [std]
60bb9bde 337 conf: !!python/tuple [agents]
0faaf34a 338 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd
MJ
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]
0faaf34a 345 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
568b5cbd 346 filter: ''
2b68721a
MJ
347 - 'lttng-ust_{version}_cppcheck'
348 - 'lttng-ust_{version}_scan-build'
8713492f 349
03297c9e 350 ## Master ##
fe16cb00
MJ
351 - 'lttng-ust_{version}_{buildtype}':
352 buildtype: build
353 version: master
16844a6d 354 arch: !!python/tuple [amd64]
fe16cb00
MJ
355 build: !!python/tuple [std, dist, oot, oot-dist]
356 conf: !!python/tuple [std, agents, debug-rcu]
0faaf34a 357 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd 358 filter: '(build=="std") || (liburcu_version=="master")'
fe16cb00
MJ
359 - 'lttng-ust_{version}_{buildtype}':
360 buildtype: portbuild
361 version: master
16844a6d 362 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
fe16cb00
MJ
363 build: !!python/tuple [std]
364 conf: !!python/tuple [std, agents]
0faaf34a 365 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd 366 filter: ''
fe16cb00
MJ
367 - 'lttng-ust_{version}_{buildtype}':
368 buildtype: slesbuild
369 version: master
370 arch: !!python/tuple [sles12sp2]
371 build: !!python/tuple [std]
60bb9bde 372 conf: !!python/tuple [agents]
0faaf34a 373 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd
MJ
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]
0faaf34a 381 liburcu_version: !!python/tuple [stable-0.12, master]
568b5cbd 382 filter: ''
fe16cb00
MJ
383 - 'lttng-ust_{version}_cppcheck':
384 version: master
385 - 'lttng-ust_{version}_scan-build':
386 version: master
cdb4cba4
MJ
387 - 'lttng-ust_{version}_coverity':
388 version: master
8713492f 389
03297c9e
MJ
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]
0faaf34a
MJ
397 liburcu_version: !!python/tuple [stable-0.12, master]
398 filter: '(build=="std") || (liburcu_version=="stable-0.12")'
03297c9e
MJ
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]
0faaf34a 405 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
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]
60bb9bde 412 conf: !!python/tuple [agents]
0faaf34a 413 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
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]
0faaf34a 421 liburcu_version: !!python/tuple [stable-0.12, master]
03297c9e
MJ
422 filter: ''
423 - 'lttng-ust_{version}_cppcheck':
424 version: stable-2.12
425 - 'lttng-ust_{version}_scan-build':
426 version: stable-2.12
2b68721a 427
0104d146
MJ
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]
60bb9bde 434 conf: !!python/tuple [agents]
0104d146
MJ
435 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
436 filter: ''
437
8713492f
MJ
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]
60bb9bde 444 conf: !!python/tuple [agents]
8713492f
MJ
445 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.12, master]
446 filter: ''
447
448
a3bc0379
MJ
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]
0faaf34a 459 liburcu_version: !!python/tuple [stable-0.12]
a3bc0379
MJ
460 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
461
3579dc14 462- project:
e04f80ef 463 name: lttng-ust-views
3579dc14
MJ
464 views:
465 - LTTng-ust
This page took 0.047312 seconds and 4 git commands to generate.