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