Add --enable-build-man-pages to tools dist build
[lttng-ci.git] / jobs / lttng-tools.yaml
CommitLineData
b4005bbf
MJ
1- defaults:
2 name: lttng-tools
3 description: |
4 The lttng-tools project provides a session daemon (lttng-sessiond)
5 that acts as a tracing registry, the "lttng" command line for tracing
6 control, a lttng-ctl library for tracing control and a lttng-relayd
7 for network streaming.
8
9 <p>Job is managed by Jenkins Job Builder.</p>
10
11 project-type: freestyle
12
13 logrotate:
14 daysToKeep: -1
15 numToKeep: 2
16 artifactDaysToKeep: -1
17 artifactNumToKeep: -1
18
19 wrappers:
20 - workspace-cleanup
21 - timestamps
22 - ansicolor
23
24 scm:
25 - git:
a0433b63 26 url: git://github.com/{github_user}/{github_name}.git
b4005bbf 27 browser: githubweb
51ca880a 28 browser-url: https://github.com/{github_user}/{github_name}
b4005bbf
MJ
29 branches:
30 - origin/{version}
31
32 triggers:
33 - pollscm:
34 cron: "@hourly"
35
36 properties:
37 - github:
51ca880a 38 url: https://github.com/{github_user}/{github_name}
b4005bbf
MJ
39
40
41## Templates
42- job-template:
43 name: lttng-tools_{version}_{buildtype}
44 defaults: lttng-tools
45
46 project-type: matrix
ca8c6144 47 node: 'master' # Applies only to matrix flyweight task
b4005bbf
MJ
48 execution-strategy:
49 combination-filter: |
50 (build=="std") || (liburcu_version=="master")
51 axes:
52 - axis:
53 type: slave
54 name: arch
55 values: '{obj:arch}'
56 - axis:
57 type: user-defined
58 name: conf
95654431 59 values: '{obj:conf}'
b4005bbf
MJ
60 - axis:
61 type: user-defined
62 name: liburcu_version
63 values: '{obj:urcuversion}'
64 - axis:
65 type: user-defined
66 name: babeltrace_version
67 values: '{obj:babelversion}'
68 - axis:
69 type: user-defined
70 name: build
71 values: '{obj:build}'
72
95654431
MJ
73 properties:
74 - throttle:
75 max-per-node: 1
76 option: 'category'
77 categories:
78 - 'lttng-tools'
035ee855
MJ
79 matrix-builds: false
80 matrix-configs: true
4e7e4fc9 81 triggers:
0ce95b87
JR
82 - pollscm:
83 cron: "@hourly"
4e7e4fc9
JR
84 - reverse:
85 jobs: 'lttng-ust_{version}_{buildtype}'
86 result: 'success'
95654431 87
b4005bbf
MJ
88 builders:
89 - conditional-step:
90 condition-kind: regex-match
91 label: '$conf'
92 regex: (std|static)
93 on-evaluation-failure: run
94 steps:
95 - copyartifact:
96 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
97 which-build: last-successful
98 stable: true
99 filter: 'build/**'
100 target: 'deps/liburcu'
101 do-not-fingerprint: true
102 - copyartifact:
103 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
104 which-build: last-successful
105 stable: true
106 filter: 'build/**'
107 target: 'deps/babeltrace'
108 do-not-fingerprint: true
109 - copyartifact:
110 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
111 which-build: last-successful
112 stable: true
113 filter: 'build/**'
114 target: 'deps/lttng-ust'
115 do-not-fingerprint: true
116 - conditional-step:
117 condition-kind: regex-match
118 label: '$conf'
95654431 119 regex: (python-bindings|no-ust)
b4005bbf
MJ
120 on-evaluation-failure: run
121 steps:
122 - copyartifact:
123 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
124 which-build: last-successful
125 stable: true
126 filter: 'build/**'
127 target: 'deps/liburcu'
128 do-not-fingerprint: true
129 - copyartifact:
130 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
131 which-build: last-successful
132 stable: true
133 filter: 'build/**'
134 target: 'deps/babeltrace'
135 do-not-fingerprint: true
136 - copyartifact:
137 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
138 which-build: last-successful
139 stable: true
140 filter: 'build/**'
141 target: 'deps/lttng-ust'
142 do-not-fingerprint: true
143 - conditional-step:
144 condition-kind: regex-match
145 label: '$conf'
95654431 146 regex: (java-agent|python-agent)
b4005bbf
MJ
147 on-evaluation-failure: run
148 steps:
149 - copyartifact:
150 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
151 which-build: last-successful
152 stable: true
153 filter: 'build/**'
154 target: 'deps/liburcu'
155 do-not-fingerprint: true
156 - copyartifact:
157 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
158 which-build: last-successful
159 stable: true
160 filter: 'build/**'
161 target: 'deps/babeltrace'
162 do-not-fingerprint: true
163 - copyartifact:
95654431 164 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
b4005bbf
MJ
165 which-build: last-successful
166 stable: true
167 filter: 'build/**'
168 target: 'deps/lttng-ust'
169 do-not-fingerprint: true
170 - shell:
ef63064f 171 !include-raw-escape: scripts/lttng-tools/build.sh
b4005bbf
MJ
172
173 # TODO: Scan for open tasks
174 publishers:
175 - tap:
176 results: 'tap/**/*.tap'
177 failed-tests-mark-build-as-failure: true
95654431 178 todo-is-failure: false
b4005bbf
MJ
179 - warnings:
180 console-log-parsers:
181 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
182 total-thresholds:
183 unstable:
184 total-all: 1
185 total-high: 1
186 total-normal: 1
187 total-low: 1
b4005bbf
MJ
188 - archive:
189 artifacts: 'build/**'
190 allow-empty: false
191 - workspace-cleanup
95654431
MJ
192 - ircbot:
193 strategy: new-failure-and-fixed
194 matrix-notifier: only-parent
195 channels:
196 - name: '#lttng'
b4005bbf
MJ
197
198
199- job-template:
200 name: lttng-tools_{version}_cppcheck
201 defaults: lttng-tools
202
203 triggers:
204 - pollscm:
205 cron: "@daily"
206
207 builders:
208 - shell: |
209 rm -f lttng-tools-cppcheck.xml
210 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
211
212 publishers:
213 - archive:
214 artifacts: 'lttng-tools-cppcheck.xml'
215 allow-empty: false
216 - cppcheck:
217 pattern: 'lttng-tools-cppcheck.xml'
218 - email:
219 recipients: 'ci-notification@lists.lttng.org'
220 notify-every-unstable-build: true
221 send-to-individuals: false
222
223- job-template:
224 name: lttng-tools_{version}_scan-build
225 defaults: lttng-tools
226 node: 'x86-64'
227
228 triggers:
229 - pollscm:
230 cron: "@daily"
231
232 builders:
233 - copyartifact:
234 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
235 which-build: last-successful
236 stable: true
237 filter: 'build/**'
238 target: 'deps/liburcu'
239 do-not-fingerprint: true
240 - copyartifact:
241 project: lttng-ust_{version}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
242 which-build: last-successful
243 stable: true
244 filter: 'build/**'
245 target: 'deps/lttng-ust'
246 do-not-fingerprint: true
247 - shell:
ef63064f 248 !include-raw-escape: scripts/lttng-tools/scan-build.sh
b4005bbf
MJ
249
250 publishers:
251 - html-publisher:
252 name: 'HTML Report'
253 dir: 'scan-build-archive/'
254 files: 'index.html'
255
256- job-template:
257 name: lttng-tools_{version}_coverity
258 defaults: lttng-tools
259 node: 'x86-64'
260
261 triggers:
262 - pollscm:
263 cron: "@daily"
264
265 wrappers:
266 - workspace-cleanup
267 - timestamps
268 - ansicolor:
269 colormap: xterm
270 - credentials-binding:
271 - username-password-separated:
272 credential-id: lttng-tools_coverity_token
273 username: COVERITY_SCAN_PROJECT_NAME
274 password: COVERITY_SCAN_TOKEN
275
276 builders:
277 - copyartifact:
278 project: liburcu_master_build/arch=x86-64,conf=std,build=std
279 which-build: last-successful
280 stable: true
281 filter: 'build/**'
282 target: 'deps/liburcu'
283 do-not-fingerprint: true
284 - copyartifact:
285 project: lttng-ust_{version}_build/liburcu_version={version},arch=x86-64,conf=std,build=std
286 which-build: last-successful
287 stable: true
288 filter: 'build/**'
289 target: 'deps/lttng-ust'
290 do-not-fingerprint: true
291 - shell:
ef63064f 292 !include-raw-escape: scripts/common/coverity.sh
b4005bbf
MJ
293
294 publishers:
295 - workspace-cleanup
296
297# TODO
298- job-template:
299 name: lttng-tools_{version}_pylint
300 defaults: lttng-tools
301 node: 'x86-64'
302
303 scm: []
304
305 triggers:
306 - pollscm:
307 cron: "@daily"
308
309 builders:
310 - copyartifact:
311 project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent
312 which-build: last-successful
313 stable: true
314 filter: 'build/**'
315 target: 'deps/lttng-tools'
316 do-not-fingerprint: true
317 - shell:
ef63064f 318 !include-raw-escape: scripts/lttng-tools/pylint.sh
b4005bbf
MJ
319
320 publishers:
321 - archive:
322 artifacts: 'pep8.out,pylint.out'
323 - violations:
324 pep8:
325 pattern: pep8.out
326 min: 10
327 max: 999
328 unstable: 999
329 pylint:
330 pattern: pylint.out
331 min: 10
332 max: 999
333 unstable: 999
334 - email:
335 recipients: 'ci-notification@lists.lttng.org'
336 notify-every-unstable-build: true
337 send-to-individuals: false
338
339
340## Project
341- project:
342 name: lttng-tools
51ca880a
MJ
343 github_user: lttng
344 github_name: lttng-tools
b4005bbf 345 version:
ef63064f 346 !include: jobs/inc/lttng-tools-versions.yaml.inc
b4005bbf
MJ
347 jobs:
348 - 'lttng-tools_{version}_{buildtype}':
349 buildtype: build
350 version: master
351 arch: !!python/tuple [x86-32, x86-64]
352 build: !!python/tuple [std, oot, dist]
95654431 353 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
354 urcuversion: !!python/tuple [master]
355 babelversion: !!python/tuple [master]
356 - 'lttng-tools_{version}_{buildtype}':
357 buildtype: portbuild
358 version: master
027ddec8 359 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
b4005bbf 360 build: !!python/tuple [std]
95654431 361 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
b4005bbf
MJ
362 urcuversion: !!python/tuple [master]
363 babelversion: !!python/tuple [master]
364 - 'lttng-tools_{version}_{buildtype}':
365 buildtype: build
366 version: stable-2.7
367 arch: !!python/tuple [x86-32, x86-64]
368 build: !!python/tuple [std, oot, dist]
95654431 369 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
370 urcuversion: !!python/tuple [stable-0.9]
371 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
372 - 'lttng-tools_{version}_{buildtype}':
373 buildtype: portbuild
374 version: stable-2.7
027ddec8 375 arch: !!python/tuple [armhf, arm64, powerpc]
b4005bbf 376 build: !!python/tuple [std]
95654431 377 conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent]
0b475830
MJ
378 urcuversion: !!python/tuple [stable-0.9]
379 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
380 - 'lttng-tools_{version}_{buildtype}':
381 buildtype: build
382 version: stable-2.6
383 arch: !!python/tuple [x86-32, x86-64]
384 build: !!python/tuple [std, oot, dist]
95654431 385 conf: !!python/tuple [std, no-ust, python-bindings]
0b475830
MJ
386 urcuversion: !!python/tuple [stable-0.9]
387 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
388 - 'lttng-tools_{version}_{buildtype}':
389 buildtype: portbuild
390 version: stable-2.6
027ddec8 391 arch: !!python/tuple [armhf, arm64, powerpc]
b4005bbf 392 build: !!python/tuple [std]
95654431 393 conf: !!python/tuple [std, no-ust, python-bindings]
0b475830
MJ
394 urcuversion: !!python/tuple [stable-0.9]
395 babelversion: !!python/tuple [stable-1.3]
b4005bbf
MJ
396 - 'lttng-tools_{version}_cppcheck'
397 - 'lttng-tools_{version}_scan-build':
398 version: master
399 urcuversion: master
400 - 'lttng-tools_{version}_scan-build':
401 version: stable-2.7
0b475830 402 urcuversion: stable-0.9
b4005bbf
MJ
403 - 'lttng-tools_{version}_scan-build':
404 version: stable-2.6
0b475830 405 urcuversion: stable-0.9
b4005bbf
MJ
406 #- 'lttng-tools_{version}_pylint'
407 - 'lttng-tools_{version}_coverity':
408 version: master
409
This page took 0.039178 seconds and 4 git commands to generate.