Mount the tmp drive correctly
[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
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
2b68721a
MJ
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: |
5279b0f2
MJ
213 rm -f cppcheck-result.xml
214 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml
2b68721a
MJ
215
216 publishers:
217 - archive:
5279b0f2 218 artifacts: 'cppcheck-result.xml'
2b68721a
MJ
219 allow-empty: false
220 - cppcheck:
5279b0f2 221 pattern: 'cppcheck-result.xml'
2b68721a
MJ
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
16844a6d 230 node: 'amd64'
2b68721a
MJ
231
232 triggers:
233 - pollscm:
234 cron: "@daily"
235
236 builders:
c9b78c7b 237 - copyartifact:
16844a6d 238 project: liburcu_master_build/arch=amd64,conf=std,build=std
c9b78c7b 239 which-build: last-successful
3522265a 240 stable: false
c9b78c7b 241 filter: 'build/**'
6544f0ff 242 target: 'deps'
c9b78c7b 243 do-not-fingerprint: true
2b68721a 244 - shell:
69f05d59 245 !include-raw-escape: scripts/common/scan-build.sh
2b68721a
MJ
246
247 publishers:
248 - html-publisher:
249 name: 'HTML Report'
250 dir: 'scan-build-archive/'
251 files: 'index.html'
252
cdb4cba4
MJ
253- job-template:
254 name: lttng-ust_{version}_coverity
255 defaults: lttng-ust
16844a6d 256 node: 'amd64'
cdb4cba4
MJ
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:
16844a6d 275 project: liburcu_master_build/arch=amd64,conf=std,build=std
cdb4cba4 276 which-build: last-successful
3522265a 277 stable: false
cdb4cba4 278 filter: 'build/**'
30c8dfac 279 target: 'deps'
cdb4cba4
MJ
280 do-not-fingerprint: true
281 - shell:
ef63064f 282 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
283
284 publishers:
285 - workspace-cleanup
1f4fba8c
MJ
286 - archive:
287 artifacts: 'analysis-results.tgz,cov-int/**'
288 allow-empty: false
2b68721a 289
2b68721a 290
3579dc14
MJ
291## Views
292- view-template:
293 name: 'LTTng-ust'
294 view-type: list
295 regex: 'lttng-ust[-_].*'
2b68721a 296
2b68721a 297
3579dc14 298## Projects
2b68721a
MJ
299- project:
300 name: lttng-ust
51ca880a
MJ
301 github_user: lttng
302 github_name: lttng-ust
68fff945 303 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
2b68721a 304 version:
9beacf91 305 - stable-2.8
0a9d9a74 306 - stable-2.9
b631316e 307 - stable-2.10
7f5ffb7a 308 - stable-2.11
2b68721a
MJ
309 jobs:
310 - 'lttng-ust_{version}_{buildtype}':
311 buildtype: build
16844a6d 312 arch: !!python/tuple [amd64]
67122b96 313 build: !!python/tuple [std, dist, oot, oot-dist]
0349e2c0 314 conf: !!python/tuple [std, agents, debug-rcu]
3579dc14 315 liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, stable-0.11, master]
568b5cbd 316 filter: '(build=="std") || (liburcu_version=="master")'
2b68721a
MJ
317 - 'lttng-ust_{version}_{buildtype}':
318 buildtype: portbuild
16844a6d 319 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
2b68721a 320 build: !!python/tuple [std]
67122b96 321 conf: !!python/tuple [std, agents]
3579dc14 322 liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, stable-0.11, master]
568b5cbd 323 filter: ''
81bf613d
MJ
324 - 'lttng-ust_{version}_{buildtype}':
325 buildtype: slesbuild
326 arch: !!python/tuple [sles12sp2]
327 build: !!python/tuple [std]
328 conf: !!python/tuple [std]
3579dc14 329 liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.11, master]
568b5cbd
MJ
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: ''
2b68721a
MJ
338 - 'lttng-ust_{version}_cppcheck'
339 - 'lttng-ust_{version}_scan-build'
fe16cb00
MJ
340 - 'lttng-ust_{version}_{buildtype}':
341 buildtype: build
342 version: master
16844a6d 343 arch: !!python/tuple [amd64]
fe16cb00
MJ
344 build: !!python/tuple [std, dist, oot, oot-dist]
345 conf: !!python/tuple [std, agents, debug-rcu]
3579dc14 346 liburcu_version: !!python/tuple [stable-0.11, master]
568b5cbd 347 filter: '(build=="std") || (liburcu_version=="master")'
fe16cb00
MJ
348 - 'lttng-ust_{version}_{buildtype}':
349 buildtype: portbuild
350 version: master
16844a6d 351 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
fe16cb00
MJ
352 build: !!python/tuple [std]
353 conf: !!python/tuple [std, agents]
3579dc14 354 liburcu_version: !!python/tuple [stable-0.11, master]
568b5cbd 355 filter: ''
fe16cb00
MJ
356 - 'lttng-ust_{version}_{buildtype}':
357 buildtype: slesbuild
358 version: master
359 arch: !!python/tuple [sles12sp2]
360 build: !!python/tuple [std]
361 conf: !!python/tuple [std]
3579dc14 362 liburcu_version: !!python/tuple [stable-0.11, master]
568b5cbd
MJ
363 filter: ''
364 - 'lttng-ust_{version}_{buildtype}':
365 buildtype: elbuild
366 version: master
367 arch: !!python/tuple [el8]
368 build: !!python/tuple [std]
369 conf: !!python/tuple [std]
370 liburcu_version: !!python/tuple [stable-0.11, master]
371 filter: ''
fe16cb00
MJ
372 - 'lttng-ust_{version}_cppcheck':
373 version: master
374 - 'lttng-ust_{version}_scan-build':
375 version: master
cdb4cba4
MJ
376 - 'lttng-ust_{version}_coverity':
377 version: master
2b68721a 378
23ea1b88
MJ
379 # stable-2.7
380 - 'lttng-ust_{version}_{buildtype}':
381 buildtype: slesbuild
382 version: stable-2.7
383 arch: !!python/tuple [sles12sp2]
384 build: !!python/tuple [std]
385 conf: !!python/tuple [std]
386 liburcu_version: !!python/tuple [stable-0.9]
568b5cbd 387 filter: ''
23ea1b88 388
a3bc0379
MJ
389- project:
390 name: gerrit-lttng-ust
391 github_user: lttng
392 github_name: lttng-ust
393 jobs:
394 - 'dev_gerrit_lttng-ust_{buildtype}':
395 buildtype: build
396 arch: !!python/tuple [amd64]
397 build: !!python/tuple [std, oot, dist, oot-dist]
398 conf: !!python/tuple [std, agents]
399 liburcu_version: !!python/tuple [stable-0.11]
400 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
401
3579dc14 402- project:
e04f80ef 403 name: lttng-ust-views
3579dc14
MJ
404 views:
405 - LTTng-ust
This page took 0.045091 seconds and 4 git commands to generate.