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