Fix lttng-ust java tests
[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
13 logrotate:
2b68721a 14 numToKeep: 2
2b68721a
MJ
15
16 wrappers:
17 - workspace-cleanup
18 - timestamps
19 - ansicolor
20
21 scm:
22 - git:
51ca880a 23 url: git://github.com/{github_user}/{github_name}.git
2b68721a 24 browser: githubweb
51ca880a 25 browser-url: https://github.com/{github_user}/{github_name}
2b68721a
MJ
26 branches:
27 - origin/{version}
28
29 triggers:
30 - pollscm:
31 cron: "@hourly"
32
33 properties:
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:
81 results: 'tap/**/*.tap'
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:
167 - github:
168 url: https://github.com/lttng/lttng-ust-java-tests
169
170 builders:
171 - copyartifact:
172 project: liburcu_${{liburcu_version}}_build/arch=${{arch}},conf=std,build=std
173 which-build: last-successful
174 stable: true
175 filter: 'build/**'
176 target: 'deps'
177 do-not-fingerprint: true
178 - copyartifact:
179 project: lttng-ust_{version}_build/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=java-agent,build=std
180 which-build: last-successful
181 stable: true
182 filter: 'build/**'
183 target: 'deps'
184 do-not-fingerprint: true
185 - copyartifact:
186 project: lttng-tools_${{lttng_tools_version}}_build/babeltrace_version=master,liburcu_version=${{liburcu_version}},arch=${{arch}},conf=java-agent,build=std
187 which-build: last-successful
188 stable: true
189 filter: 'build/**'
190 target: 'deps'
191 do-not-fingerprint: true
192 - copyartifact:
193 project: babeltrace_master_build/arch=${{arch}},conf=std,build=std
194 which-build: last-successful
195 stable: true
196 filter: 'build/**'
197 target: 'deps'
198 do-not-fingerprint: true
199 - shell: |
200 #!/bin/sh -eux
201
202 # Start the lttng-sessiond
203 lttng-sessiond -d
204 - maven-target:
205 goals: '-version'
206 maven-version: 'Maven 3.3.3'
207 private-repository: true
208 - maven-target:
209 goals: |
210 clean
211 verify
212 pom: 'lttng-ust-java-tests/pom.xml'
213 properties:
214 - maven.test.failure.ignore=true
215 - common-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-common.jar
216 - jul-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-jul.jar
217 - log4j-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-log4j.jar
218 - argLine=-Djava.library.path=${{WORKSPACE}}/deps/build/lib
219 maven-version: 'Maven 3.3.3'
220 private-repository: true
221 - shell: |
222 #!/bin/sh -eux
223
224 # Kill the sessiond
225 killall lttng-sessiond
226
227 publishers:
228 - junit:
229 results: lttng-ust-java-tests/**/target/failsafe-reports/*.xml
230 - email-ext:
231 recipients: alex@voxpopuli.im
232 matrix-trigger: only-parent
233 failure: false
234 first-failure: true
235 fixed: true
236 - workspace-cleanup
237
2b68721a
MJ
238
239- job-template:
240 name: lttng-ust_{version}_cppcheck
241 defaults: lttng-ust
242
243 triggers:
244 - pollscm:
245 cron: "@daily"
246
247 builders:
248 - shell: |
249 rm -f lttng-ust-cppcheck.xml
250 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-ust-cppcheck.xml
251
252 publishers:
253 - archive:
254 artifacts: 'lttng-ust-cppcheck.xml'
255 allow-empty: false
256 - cppcheck:
257 pattern: 'lttng-ust-cppcheck.xml'
258 - email:
259 recipients: 'ci-notification@lists.lttng.org'
260 notify-every-unstable-build: true
261 send-to-individuals: false
262
263- job-template:
264 name: lttng-ust_{version}_scan-build
265 defaults: lttng-ust
266 node: 'x86-64'
267
268 triggers:
269 - pollscm:
270 cron: "@daily"
271
272 builders:
c9b78c7b
MJ
273 - copyartifact:
274 project: liburcu_master_build/arch=x86-64,conf=std,build=std
275 which-build: last-successful
276 stable: true
277 filter: 'build/**'
278 target: 'deps/liburcu'
279 do-not-fingerprint: true
2b68721a 280 - shell:
ef63064f 281 !include-raw-escape: scripts/lttng-ust/scan-build.sh
2b68721a
MJ
282
283 publishers:
284 - html-publisher:
285 name: 'HTML Report'
286 dir: 'scan-build-archive/'
287 files: 'index.html'
288
cdb4cba4
MJ
289- job-template:
290 name: lttng-ust_{version}_coverity
291 defaults: lttng-ust
292 node: 'x86-64'
293
294 triggers:
295 - pollscm:
296 cron: "@daily"
297
298 wrappers:
299 - workspace-cleanup
300 - timestamps
301 - ansicolor:
302 colormap: xterm
303 - credentials-binding:
304 - username-password-separated:
305 credential-id: lttng-ust_coverity_token
306 username: COVERITY_SCAN_PROJECT_NAME
307 password: COVERITY_SCAN_TOKEN
308
309 builders:
310 - copyartifact:
311 project: liburcu_master_build/arch=x86-64,conf=std,build=std
312 which-build: last-successful
313 stable: true
314 filter: 'build/**'
315 target: 'deps/liburcu'
316 do-not-fingerprint: true
317 - shell:
ef63064f 318 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
319
320 publishers:
321 - workspace-cleanup
2b68721a 322
c9b78c7b 323# TODO
2b68721a
MJ
324- job-template:
325 name: lttng-ust_{version}_pylint
326 defaults: lttng-ust
327 node: 'x86-64'
328
329 scm: []
330
331 triggers:
332 - pollscm:
333 cron: "@daily"
334
335 builders:
336 - copyartifact:
337 project: lttng-ust-{version}/arch=x86-64,build=std,conf=python-agent
338 which-build: last-successful
339 stable: true
340 filter: 'build/**'
341 target: 'deps/lttng-ust'
342 do-not-fingerprint: true
343 - shell:
ef63064f 344 !include-raw-escape: scripts/lttng-ust/pylint.sh
2b68721a
MJ
345
346 publishers:
347 - archive:
348 artifacts: 'pep8.out,pylint.out'
349 - violations:
350 pep8:
351 pattern: pep8.out
352 min: 10
353 max: 999
354 unstable: 999
355 pylint:
356 pattern: pylint.out
357 min: 10
358 max: 999
359 unstable: 999
360 - email:
361 recipients: 'ci-notification@lists.lttng.org'
362 notify-every-unstable-build: true
363 send-to-individuals: false
364
365
366## Project
367- project:
368 name: lttng-ust
51ca880a
MJ
369 github_user: lttng
370 github_name: lttng-ust
2b68721a 371 version:
ef63064f 372 !include: jobs/inc/lttng-ust-versions.yaml.inc
2b68721a
MJ
373 jobs:
374 - 'lttng-ust_{version}_{buildtype}':
375 buildtype: build
376 arch: !!python/tuple [x86-32, x86-64]
377 build: !!python/tuple [std, oot, dist]
95654431 378 conf: !!python/tuple [std, java-agent, python-agent]
2b68721a
MJ
379 - 'lttng-ust_{version}_{buildtype}':
380 buildtype: portbuild
3b3282a6 381 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
2b68721a 382 build: !!python/tuple [std]
95654431 383 conf: !!python/tuple [std, java-agent, python-agent]
1d2f3ef2
MJ
384 - 'lttng-ust_{version}_java-tests':
385 arch: !!python/tuple [x86-32, x86-64]
2b68721a
MJ
386 - 'lttng-ust_{version}_cppcheck'
387 - 'lttng-ust_{version}_scan-build'
cdb4cba4
MJ
388 - 'lttng-ust_{version}_coverity':
389 version: master
2b68721a 390
This page took 0.038384 seconds and 4 git commands to generate.