jjb: Add sessiond logging to lttng-ust-java-tests
[lttng-ci.git] / jobs / lttng-ust-java-tests.yaml
1 - defaults:
2 name: lttng-ust-java-tests
3 description: |
4 Tests for LTTng-UST's Java agent. Runs the master branch of
5 <a href="https://github.com/lttng/lttng-ust-java-tests">lttng-ust-java-tests</a>
6 against the master branches of UST, lttng-tools, and Babeltrace.
7
8 <p>Job is managed by Jenkins Job Builder.</p>
9
10 project-type: freestyle
11
12 wrappers:
13 - workspace-cleanup
14 - timestamps
15 - ansicolor
16
17 scm:
18 - git:
19 url: git://github.com/{github_user}/{github_name}.git
20 browser: githubweb
21 browser-url: https://github.com/{github_user}/{github_name}
22 branches:
23 - origin/{version}
24 basedir: lttng-ust-java-tests
25 skip-tag: true
26
27 triggers:
28 - timed: "@daily"
29
30 properties:
31 - build-discarder:
32 num-to-keep: 2
33 - github:
34 url: https://github.com/{github_user}/{github_name}
35
36
37 ## Templates
38 - job-template:
39 name: lttng-ust-java-tests_{version}_build
40 defaults: lttng-ust-java-tests
41
42 project-type: matrix
43 node: 'master' # Applies only to matrix flyweight task
44 axes:
45 - axis:
46 type: slave
47 name: arch
48 values: '{obj:arch}'
49 - axis:
50 type: user-defined
51 name: java_version
52 values:
53 - 'java-8-openjdk'
54 - axis:
55 type: user-defined
56 name: liburcu_version
57 values:
58 - 'master'
59 - axis:
60 type: user-defined
61 name: lttng_ust_version
62 values:
63 - 'master'
64 - axis:
65 type: user-defined
66 name: lttng_tools_version
67 values:
68 - 'master'
69
70 wrappers:
71 - workspace-cleanup
72 - timestamps
73 - ansicolor
74 - inject:
75 properties-content: |
76 LD_LIBRARY_PATH=${{WORKSPACE}}/deps/build/lib
77 PATH=${{WORKSPACE}}/deps/build/bin:${{PATH}}
78 LTTNG_UST_DEBUG=1
79 LTTNG_CONSUMERD32_BIN=${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd
80 LTTNG_CONSUMERD64_BIN=${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd
81 - env-script:
82 script-content:
83 !include-raw-escape: scripts/lttng-ust-java-tests/set-java-home.sh
84
85 builders:
86 - copyartifact:
87 project: liburcu_${{liburcu_version}}_build/arch=${{arch}},conf=std,build=std
88 which-build: last-successful
89 stable: false
90 filter: 'build/**'
91 target: 'deps'
92 do-not-fingerprint: true
93 - copyartifact:
94 project: lttng-ust_${{lttng_ust_version}}_build/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=agents,build=std
95 which-build: last-successful
96 stable: false
97 filter: 'build/**'
98 target: 'deps'
99 do-not-fingerprint: true
100 - copyartifact:
101 project: lttng-tools_${{lttng_tools_version}}_build/babeltrace_version={babeltrace_version},liburcu_version=${{liburcu_version}},arch=${{arch}},conf=agents,build=std
102 which-build: last-successful
103 stable: false
104 filter: 'build/**'
105 target: 'deps'
106 do-not-fingerprint: true
107 - copyartifact:
108 project: babeltrace_{babeltrace_version}_build/arch=${{arch}},conf=std,build=std
109 which-build: last-successful
110 stable: false
111 filter: 'build/**'
112 target: 'deps'
113 do-not-fingerprint: true
114 - shell:
115 !include-raw-escape: scripts/lttng-ust-java-tests/start-sessiond.sh
116 - maven-target:
117 maven-version: "default"
118 goals: "-version"
119 private-repository: true
120 - maven-target:
121 maven-version: "default"
122 goals: clean verify
123 pom: 'lttng-ust-java-tests/pom.xml'
124 properties:
125 - maven.test.failure.ignore=true
126 - common-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-common.jar
127 - jul-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-jul.jar
128 - log4j-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-log4j.jar
129 - argLine=-Djava.library.path=${{WORKSPACE}}/deps/build/lib
130 - shell:
131 !include-raw-escape: scripts/lttng-ust-java-tests/stop-sessiond.sh
132
133 publishers:
134 - archive:
135 artifacts: 'lttng-sessiond.log'
136 allow-empty: false
137 - junit:
138 results: 'lttng-ust-java-tests/**/target/failsafe-reports/*.xml'
139 - workspace-cleanup
140 - email-ext:
141 recipients: '{obj:email_for_all_failure}'
142 always: false
143 unstable: true
144 first-failure: false
145 first-unstable: false
146 not-built: false
147 aborted: false
148 regression: false
149 failure: true
150 second-failure: false
151 improvement: false
152 still-failing: false
153 success: false
154 fixed: false
155 fixed-unhealthy: true
156 still-unstable: false
157 pre-build: false
158 matrix-trigger: only-parent
159 send-to:
160 - recipients
161 - email-ext:
162 recipients: '{obj:email_to}'
163 reply-to: ci-notification@lists.lttng.org
164 always: false
165 unstable: false
166 first-failure: true
167 first-unstable: true
168 not-built: false
169 aborted: false
170 regression: false
171 failure: false
172 second-failure: false
173 improvement: false
174 still-failing: false
175 success: false
176 fixed: false
177 fixed-unhealthy: true
178 still-unstable: false
179 pre-build: false
180 matrix-trigger: only-parent
181 send-to:
182 - recipients
183
184 ## Project
185 - project:
186 name: lttng-ust-java-tests
187 github_user: lttng
188 github_name: lttng-ust-java-tests
189 email_to: 'ci-notification@lists.lttng.org, cc:alexmonthy@efficios.com'
190 email_for_all_failure: 'alexmonthy@efficios.com'
191 version:
192 - master
193 liburcu_version:
194 - master
195 lttng_ust_version:
196 - master
197 lttng_tools_version:
198 - master
199 babeltrace_version: stable-1.5
200 jobs:
201 - 'lttng-ust-java-tests_{version}_build':
202 arch: !!python/tuple [x86-32, x86-64]
203 java_version: !!python/tuple [java-8-openjdk]
204
This page took 0.044134 seconds and 4 git commands to generate.