ReAdded lttng-tools jobs
[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:
26 url: git://github.com/lttng/lttng-tools.git
27 browser: githubweb
28 browser-url: https://github.com/lttng/lttng-tools
29 branches:
30 - origin/{version}
31
32 triggers:
33 - pollscm:
34 cron: "@hourly"
35
36 properties:
37 - github:
38 url: https://github.com/lttng/lttng-tools
39
40
41## Templates
42- job-template:
43 name: lttng-tools_{version}_{buildtype}
44 defaults: lttng-tools
45
46 project-type: matrix
47 node: 'x86-32 || x86-64' # Applies only to matrix flyweight task
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
59 values:
60 - std
61 #- static
62 - no_ust
63 - python_bindings
64 - java_agents
65 - axis:
66 type: user-defined
67 name: liburcu_version
68 values: '{obj:urcuversion}'
69 - axis:
70 type: user-defined
71 name: babeltrace_version
72 values: '{obj:babelversion}'
73 - axis:
74 type: user-defined
75 name: build
76 values: '{obj:build}'
77
78 builders:
79 - conditional-step:
80 condition-kind: regex-match
81 label: '$conf'
82 regex: (std|static)
83 on-evaluation-failure: run
84 steps:
85 - copyartifact:
86 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
87 which-build: last-successful
88 stable: true
89 filter: 'build/**'
90 target: 'deps/liburcu'
91 do-not-fingerprint: true
92 - copyartifact:
93 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std
94 which-build: last-successful
95 stable: true
96 filter: 'build/**'
97 target: 'deps/babeltrace'
98 do-not-fingerprint: true
99 - copyartifact:
100 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std
101 which-build: last-successful
102 stable: true
103 filter: 'build/**'
104 target: 'deps/lttng-ust'
105 do-not-fingerprint: true
106 - conditional-step:
107 condition-kind: regex-match
108 label: '$conf'
109 regex: (python_bindings|no_ust)
110 on-evaluation-failure: run
111 steps:
112 - copyartifact:
113 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
114 which-build: last-successful
115 stable: true
116 filter: 'build/**'
117 target: 'deps/liburcu'
118 do-not-fingerprint: true
119 - copyartifact:
120 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
121 which-build: last-successful
122 stable: true
123 filter: 'build/**'
124 target: 'deps/babeltrace'
125 do-not-fingerprint: true
126 - copyartifact:
127 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std
128 which-build: last-successful
129 stable: true
130 filter: 'build/**'
131 target: 'deps/lttng-ust'
132 do-not-fingerprint: true
133 - conditional-step:
134 condition-kind: regex-match
135 label: '$conf'
136 regex: (java_agents)
137 on-evaluation-failure: run
138 steps:
139 - copyartifact:
140 project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
141 which-build: last-successful
142 stable: true
143 filter: 'build/**'
144 target: 'deps/liburcu'
145 do-not-fingerprint: true
146 - copyartifact:
147 project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std
148 which-build: last-successful
149 stable: true
150 filter: 'build/**'
151 target: 'deps/babeltrace'
152 do-not-fingerprint: true
153 - copyartifact:
154 project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=java-agent,build=std
155 which-build: last-successful
156 stable: true
157 filter: 'build/**'
158 target: 'deps/lttng-ust'
159 do-not-fingerprint: true
160 - shell:
161 !include-raw-escape scripts/lttng-tools/build.sh
162
163 # TODO: Scan for open tasks
164 publishers:
165 - tap:
166 results: 'tap/**/*.tap'
167 failed-tests-mark-build-as-failure: true
168 - warnings:
169 console-log-parsers:
170 - 'GNU Make + GNU C Compiler (gcc)'
171 #total-thresholds:
172 # failed:
173 # total-all: 0
174 # total-high: 0
175 # total-normal: 0
176 # total-low: 0
177 - archive:
178 artifacts: 'build/**'
179 allow-empty: false
180 - workspace-cleanup
181
182
183- job-template:
184 name: lttng-tools_{version}_cppcheck
185 defaults: lttng-tools
186
187 triggers:
188 - pollscm:
189 cron: "@daily"
190
191 builders:
192 - shell: |
193 rm -f lttng-tools-cppcheck.xml
194 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml
195
196 publishers:
197 - archive:
198 artifacts: 'lttng-tools-cppcheck.xml'
199 allow-empty: false
200 - cppcheck:
201 pattern: 'lttng-tools-cppcheck.xml'
202 - email:
203 recipients: 'ci-notification@lists.lttng.org'
204 notify-every-unstable-build: true
205 send-to-individuals: false
206
207- job-template:
208 name: lttng-tools_{version}_scan-build
209 defaults: lttng-tools
210 node: 'x86-64'
211
212 triggers:
213 - pollscm:
214 cron: "@daily"
215
216 builders:
217 - copyartifact:
218 project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std
219 which-build: last-successful
220 stable: true
221 filter: 'build/**'
222 target: 'deps/liburcu'
223 do-not-fingerprint: true
224 - copyartifact:
225 project: lttng-ust_{version}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std
226 which-build: last-successful
227 stable: true
228 filter: 'build/**'
229 target: 'deps/lttng-ust'
230 do-not-fingerprint: true
231 - shell:
232 !include-raw-escape scripts/lttng-tools/scan-build.sh
233
234 publishers:
235 - html-publisher:
236 name: 'HTML Report'
237 dir: 'scan-build-archive/'
238 files: 'index.html'
239
240- job-template:
241 name: lttng-tools_{version}_coverity
242 defaults: lttng-tools
243 node: 'x86-64'
244
245 triggers:
246 - pollscm:
247 cron: "@daily"
248
249 wrappers:
250 - workspace-cleanup
251 - timestamps
252 - ansicolor:
253 colormap: xterm
254 - credentials-binding:
255 - username-password-separated:
256 credential-id: lttng-tools_coverity_token
257 username: COVERITY_SCAN_PROJECT_NAME
258 password: COVERITY_SCAN_TOKEN
259
260 builders:
261 - copyartifact:
262 project: liburcu_master_build/arch=x86-64,conf=std,build=std
263 which-build: last-successful
264 stable: true
265 filter: 'build/**'
266 target: 'deps/liburcu'
267 do-not-fingerprint: true
268 - copyartifact:
269 project: lttng-ust_{version}_build/liburcu_version={version},arch=x86-64,conf=std,build=std
270 which-build: last-successful
271 stable: true
272 filter: 'build/**'
273 target: 'deps/lttng-ust'
274 do-not-fingerprint: true
275 - shell:
276 !include-raw-escape scripts/common/coverity.sh
277
278 publishers:
279 - workspace-cleanup
280
281# TODO
282- job-template:
283 name: lttng-tools_{version}_pylint
284 defaults: lttng-tools
285 node: 'x86-64'
286
287 scm: []
288
289 triggers:
290 - pollscm:
291 cron: "@daily"
292
293 builders:
294 - copyartifact:
295 project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent
296 which-build: last-successful
297 stable: true
298 filter: 'build/**'
299 target: 'deps/lttng-tools'
300 do-not-fingerprint: true
301 - shell:
302 !include-raw-escape scripts/lttng-tools/pylint.sh
303
304 publishers:
305 - archive:
306 artifacts: 'pep8.out,pylint.out'
307 - violations:
308 pep8:
309 pattern: pep8.out
310 min: 10
311 max: 999
312 unstable: 999
313 pylint:
314 pattern: pylint.out
315 min: 10
316 max: 999
317 unstable: 999
318 - email:
319 recipients: 'ci-notification@lists.lttng.org'
320 notify-every-unstable-build: true
321 send-to-individuals: false
322
323
324## Project
325- project:
326 name: lttng-tools
327 version:
328 !include jobs/inc/lttng-tools-versions.yaml.inc
329 jobs:
330 - 'lttng-tools_{version}_{buildtype}':
331 buildtype: build
332 version: master
333 arch: !!python/tuple [x86-32, x86-64]
334 build: !!python/tuple [std, oot, dist]
335 urcuversion: !!python/tuple [master]
336 babelversion: !!python/tuple [master]
337 - 'lttng-tools_{version}_{buildtype}':
338 buildtype: portbuild
339 version: master
340 arch: !!python/tuple [armhf, powerpc]
341 build: !!python/tuple [std]
342 urcuversion: !!python/tuple [master]
343 babelversion: !!python/tuple [master]
344 - 'lttng-tools_{version}_{buildtype}':
345 buildtype: build
346 version: stable-2.7
347 arch: !!python/tuple [x86-32, x86-64]
348 build: !!python/tuple [std, oot, dist]
349 urcuversion: !!python/tuple [stable-0.8]
350 babelversion: !!python/tuple [stable-1.2]
351 - 'lttng-tools_{version}_{buildtype}':
352 buildtype: portbuild
353 version: stable-2.7
354 arch: !!python/tuple [armhf, powerpc]
355 build: !!python/tuple [std]
356 urcuversion: !!python/tuple [stable-0.8]
357 babelversion: !!python/tuple [stable-1.2]
358 - 'lttng-tools_{version}_{buildtype}':
359 buildtype: build
360 version: stable-2.6
361 arch: !!python/tuple [x86-32, x86-64]
362 build: !!python/tuple [std, oot, dist]
363 urcuversion: !!python/tuple [stable-0.8]
364 babelversion: !!python/tuple [stable-1.2]
365 - 'lttng-tools_{version}_{buildtype}':
366 buildtype: portbuild
367 version: stable-2.6
368 arch: !!python/tuple [armhf, powerpc]
369 build: !!python/tuple [std]
370 urcuversion: !!python/tuple [stable-0.8]
371 babelversion: !!python/tuple [stable-1.2]
372 - 'lttng-tools_{version}_cppcheck'
373 - 'lttng-tools_{version}_scan-build':
374 version: master
375 urcuversion: master
376 - 'lttng-tools_{version}_scan-build':
377 version: stable-2.7
378 urcuversion: stable-0.8
379 - 'lttng-tools_{version}_scan-build':
380 version: stable-2.6
381 urcuversion: stable-0.8
382 #- 'lttng-tools_{version}_pylint'
383 - 'lttng-tools_{version}_coverity':
384 version: master
385
This page took 0.073707 seconds and 4 git commands to generate.