jjb: babeltrace cleanups
[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
2b68721a
MJ
26
27 triggers:
28 - pollscm:
29 cron: "@hourly"
30
31 properties:
edf72710
MJ
32 - build-discarder:
33 num-to-keep: 2
2b68721a 34 - github:
51ca880a 35 url: https://github.com/{github_user}/{github_name}
2b68721a
MJ
36
37
38## Templates
39- job-template:
40 name: lttng-ust_{version}_{buildtype}
41 defaults: lttng-ust
42
43 project-type: matrix
ca8c6144 44 node: 'master' # Applies only to matrix flyweight task
2b68721a
MJ
45 execution-strategy:
46 combination-filter: |
47 (build=="std") || (liburcu_version=="master")
48 axes:
49 - axis:
50 type: slave
51 name: arch
52 values: '{obj:arch}'
53 - axis:
54 type: user-defined
55 name: conf
95654431 56 values: '{obj:conf}'
2b68721a
MJ
57 - axis:
58 type: user-defined
59 name: liburcu_version
60 values:
ef63064f 61 !include: jobs/inc/liburcu-versions.yaml.inc
2b68721a
MJ
62 - axis:
63 type: user-defined
64 name: build
65 values: '{obj:build}'
66
67 builders:
68 - copyartifact:
69 project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std
70 which-build: last-successful
71 stable: true
72 filter: 'build/**'
73 target: 'deps/liburcu'
74 do-not-fingerprint: true
75 - shell:
ef63064f 76 !include-raw-escape: scripts/lttng-ust/build.sh
2b68721a
MJ
77
78 # TODO: Scan for open tasks
79 publishers:
80 - tap:
1f4fba8c 81 results: 'tap/**/*.log'
2b68721a 82 failed-tests-mark-build-as-failure: true
95654431 83 todo-is-failure: false
2b68721a
MJ
84 - warnings:
85 console-log-parsers:
86 - 'GNU Make + GNU C Compiler (gcc)'
51ca880a
MJ
87 total-thresholds:
88 unstable:
d2c76ee5
MJ
89 total-all: 0
90 total-high: 0
91 total-normal: 0
92 total-low: 0
2b68721a
MJ
93 - archive:
94 artifacts: 'build/**'
95 allow-empty: false
96 - workspace-cleanup
c9b78c7b 97 - ircbot:
95654431 98 strategy: new-failure-and-fixed
c9b78c7b
MJ
99 matrix-notifier: only-parent
100 channels:
101 - name: '#lttng'
2b68721a 102
c665838d
MJ
103- job-template:
104 name: lttng-ust_{version}_java-tests
105 defaults: lttng-ust
106 description: |
107 Tests for LTTng-UST's Java agent. Runs the master branch of
108 <a href="https://github.com/lttng/lttng-ust-java-tests">lttng-ust-java-tests</a>
109 against the {version} branches of UST, lttng-tools, and Babeltrace.
110
111 <p>Job is managed by Jenkins Job Builder.</p>
112
113 project-type: matrix
114 node: 'master' # Applies only to matrix flyweight task
115 axes:
116 - axis:
117 type: slave
118 name: arch
119 values: '{obj:arch}'
120 - axis:
121 type: user-defined
122 name: jdk_version
123 values:
124 - 'OpenJDK-8'
125 - axis:
126 type: user-defined
127 name: liburcu_version
128 values:
129 - 'master'
130 - axis:
131 type: user-defined
132 name: lttng_ust_version
133 values:
134 - 'master'
135 - axis:
136 type: user-defined
137 name: lttng_tools_version
138 values:
139 - 'master'
140
141 wrappers:
142 - workspace-cleanup
143 - timestamps
144 - ansicolor
145 - inject:
146 properties-content: |
1d2f3ef2 147 LD_LIBRARY_PATH="${{WORKSPACE}}/deps/build/lib"
c665838d
MJ
148 PATH="${{WORKSPACE}}/deps/build/bin:${{PATH}}"
149 LTTNG_CONSUMERD32_BIN="${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd"
150 LTTNG_CONSUMERD64_BIN="${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd"
151 script-content: |
152
153 scm:
154 - git:
155 url: git://github.com/lttng/lttng-ust-java-tests.git
156 browser: githubweb
157 browser-url: https://github.com/lttng/lttng-ust-java-tests
158 branches:
159 - origin/{version}
160 basedir: lttng-ust-java-tests
161
162 triggers:
163 - pollscm:
164 cron: "@daily"
165
166 properties:
edf72710
MJ
167 - build-discarder:
168 num-to-keep: 2
c665838d
MJ
169 - github:
170 url: https://github.com/lttng/lttng-ust-java-tests
171
172 builders:
173 - copyartifact:
174 project: liburcu_${{liburcu_version}}_build/arch=${{arch}},conf=std,build=std
175 which-build: last-successful
176 stable: true
177 filter: 'build/**'
178 target: 'deps'
179 do-not-fingerprint: true
180 - copyartifact:
181 project: lttng-ust_{version}_build/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=java-agent,build=std
182 which-build: last-successful
183 stable: true
184 filter: 'build/**'
185 target: 'deps'
186 do-not-fingerprint: true
187 - copyartifact:
188 project: lttng-tools_${{lttng_tools_version}}_build/babeltrace_version=master,liburcu_version=${{liburcu_version}},arch=${{arch}},conf=java-agent,build=std
189 which-build: last-successful
190 stable: true
191 filter: 'build/**'
192 target: 'deps'
193 do-not-fingerprint: true
194 - copyartifact:
195 project: babeltrace_master_build/arch=${{arch}},conf=std,build=std
196 which-build: last-successful
197 stable: true
198 filter: 'build/**'
199 target: 'deps'
200 do-not-fingerprint: true
201 - shell: |
202 #!/bin/sh -eux
203
204 # Start the lttng-sessiond
205 lttng-sessiond -d
206 - maven-target:
207 goals: '-version'
208 maven-version: 'Maven 3.3.3'
209 private-repository: true
210 - maven-target:
211 goals: |
212 clean
213 verify
214 pom: 'lttng-ust-java-tests/pom.xml'
215 properties:
216 - maven.test.failure.ignore=true
217 - common-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-common.jar
218 - jul-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-jul.jar
219 - log4j-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-log4j.jar
220 - argLine=-Djava.library.path=${{WORKSPACE}}/deps/build/lib
221 maven-version: 'Maven 3.3.3'
222 private-repository: true
223 - shell: |
224 #!/bin/sh -eux
225
226 # Kill the sessiond
227 killall lttng-sessiond
228
229 publishers:
230 - junit:
231 results: lttng-ust-java-tests/**/target/failsafe-reports/*.xml
232 - email-ext:
233 recipients: alex@voxpopuli.im
234 matrix-trigger: only-parent
235 failure: false
236 first-failure: true
237 fixed: true
238 - workspace-cleanup
239
2b68721a
MJ
240
241- job-template:
242 name: lttng-ust_{version}_cppcheck
243 defaults: lttng-ust
244
245 triggers:
246 - pollscm:
247 cron: "@daily"
248
249 builders:
250 - shell: |
251 rm -f lttng-ust-cppcheck.xml
73778992 252 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml
2b68721a
MJ
253
254 publishers:
255 - archive:
256 artifacts: 'lttng-ust-cppcheck.xml'
257 allow-empty: false
258 - cppcheck:
259 pattern: 'lttng-ust-cppcheck.xml'
260 - email:
261 recipients: 'ci-notification@lists.lttng.org'
262 notify-every-unstable-build: true
263 send-to-individuals: false
264
265- job-template:
266 name: lttng-ust_{version}_scan-build
267 defaults: lttng-ust
268 node: 'x86-64'
269
270 triggers:
271 - pollscm:
272 cron: "@daily"
273
274 builders:
c9b78c7b
MJ
275 - copyartifact:
276 project: liburcu_master_build/arch=x86-64,conf=std,build=std
277 which-build: last-successful
278 stable: true
279 filter: 'build/**'
280 target: 'deps/liburcu'
281 do-not-fingerprint: true
2b68721a 282 - shell:
ef63064f 283 !include-raw-escape: scripts/lttng-ust/scan-build.sh
2b68721a
MJ
284
285 publishers:
286 - html-publisher:
287 name: 'HTML Report'
288 dir: 'scan-build-archive/'
289 files: 'index.html'
290
cdb4cba4
MJ
291- job-template:
292 name: lttng-ust_{version}_coverity
293 defaults: lttng-ust
294 node: 'x86-64'
295
296 triggers:
297 - pollscm:
298 cron: "@daily"
299
300 wrappers:
301 - workspace-cleanup
302 - timestamps
303 - ansicolor:
304 colormap: xterm
305 - credentials-binding:
306 - username-password-separated:
307 credential-id: lttng-ust_coverity_token
308 username: COVERITY_SCAN_PROJECT_NAME
309 password: COVERITY_SCAN_TOKEN
310
311 builders:
312 - copyartifact:
313 project: liburcu_master_build/arch=x86-64,conf=std,build=std
314 which-build: last-successful
315 stable: true
316 filter: 'build/**'
317 target: 'deps/liburcu'
318 do-not-fingerprint: true
319 - shell:
ef63064f 320 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
321
322 publishers:
323 - workspace-cleanup
1f4fba8c
MJ
324 - archive:
325 artifacts: 'analysis-results.tgz,cov-int/**'
326 allow-empty: false
2b68721a 327
c9b78c7b 328# TODO
2b68721a
MJ
329- job-template:
330 name: lttng-ust_{version}_pylint
331 defaults: lttng-ust
332 node: 'x86-64'
333
334 scm: []
335
336 triggers:
337 - pollscm:
338 cron: "@daily"
339
340 builders:
341 - copyartifact:
342 project: lttng-ust-{version}/arch=x86-64,build=std,conf=python-agent
343 which-build: last-successful
344 stable: true
345 filter: 'build/**'
346 target: 'deps/lttng-ust'
347 do-not-fingerprint: true
348 - shell:
ef63064f 349 !include-raw-escape: scripts/lttng-ust/pylint.sh
2b68721a
MJ
350
351 publishers:
352 - archive:
353 artifacts: 'pep8.out,pylint.out'
354 - violations:
355 pep8:
356 pattern: pep8.out
357 min: 10
358 max: 999
359 unstable: 999
360 pylint:
361 pattern: pylint.out
362 min: 10
363 max: 999
364 unstable: 999
365 - email:
366 recipients: 'ci-notification@lists.lttng.org'
367 notify-every-unstable-build: true
368 send-to-individuals: false
369
370
371## Project
372- project:
373 name: lttng-ust
51ca880a
MJ
374 github_user: lttng
375 github_name: lttng-ust
2b68721a 376 version:
9beacf91
MJ
377 - stable-2.7
378 - stable-2.8
379 - master
2b68721a
MJ
380 jobs:
381 - 'lttng-ust_{version}_{buildtype}':
382 buildtype: build
383 arch: !!python/tuple [x86-32, x86-64]
384 build: !!python/tuple [std, oot, dist]
95654431 385 conf: !!python/tuple [std, java-agent, python-agent]
2b68721a
MJ
386 - 'lttng-ust_{version}_{buildtype}':
387 buildtype: portbuild
3b3282a6 388 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
2b68721a 389 build: !!python/tuple [std]
95654431 390 conf: !!python/tuple [std, java-agent, python-agent]
1d2f3ef2
MJ
391 - 'lttng-ust_{version}_java-tests':
392 arch: !!python/tuple [x86-32, x86-64]
2b68721a
MJ
393 - 'lttng-ust_{version}_cppcheck'
394 - 'lttng-ust_{version}_scan-build'
cdb4cba4
MJ
395 - 'lttng-ust_{version}_coverity':
396 version: master
2b68721a 397
This page took 0.037802 seconds and 4 git commands to generate.