Fix: babeltrace2 needs its plugin path defined
[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: https://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-11-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 JAVA_HOME=/usr/lib/jvm/${{java_version}}-${{arch}}
77 LD_LIBRARY_PATH=${{WORKSPACE}}/deps/build/lib
78 PATH=${{WORKSPACE}}/deps/build/bin:${{PATH}}
79 LTTNG_UST_DEBUG=1
80 LTTNG_CONSUMERD32_BIN=${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd
81 LTTNG_CONSUMERD64_BIN=${{WORKSPACE}}/deps/build/lib/lttng/libexec/lttng-consumerd
82 LTTNG_SESSION_CONFIG_XSD_PATH=${{WORKSPACE}}/deps/build/share/xml/lttng
83 BABELTRACE_PLUGIN_PATH=$WORKSPACE/deps/build/lib/babeltrace2/plugins
84 LIBBABELTRACE2_PLUGIN_PROVIDER_DIR=$WORKSPACE/deps/build/lib/babeltrace2/plugin-providers
85
86 builders:
87 - copyartifact:
88 project: liburcu_${{liburcu_version}}_build/arch=${{arch}},conf=std,build=std
89 which-build: last-successful
90 stable: false
91 filter: 'build/**'
92 target: 'deps'
93 do-not-fingerprint: true
94 - copyartifact:
95 project: lttng-ust_${{lttng_ust_version}}_build/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=agents,build=std
96 which-build: last-successful
97 stable: false
98 filter: 'build/**'
99 target: 'deps'
100 do-not-fingerprint: true
101 - copyartifact:
102 project: lttng-tools_${{lttng_tools_version}}_build/babeltrace_version={babeltrace_version},liburcu_version=${{liburcu_version}},arch=${{arch}},conf=agents,build=std,test_type=base
103 which-build: last-successful
104 stable: false
105 filter: 'build/**'
106 target: 'deps'
107 do-not-fingerprint: true
108 - copyartifact:
109 project: babeltrace_{babeltrace_version}_build/arch=${{arch}},conf=std,build=std
110 which-build: last-successful
111 stable: false
112 filter: 'build/**'
113 target: 'deps'
114 do-not-fingerprint: true
115 - shell:
116 !include-raw-escape: scripts/lttng-ust-java-tests/start-sessiond.sh
117 - maven-target:
118 maven-version: "default"
119 goals: "-version"
120 private-repository: true
121 - maven-target:
122 maven-version: "default"
123 goals: clean verify
124 pom: 'lttng-ust-java-tests/pom.xml'
125 properties:
126 - maven.test.failure.ignore=true
127 - common-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-common.jar
128 - jul-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-jul.jar
129 - log4j-jar-location=${{WORKSPACE}}/deps/build/share/java/lttng-ust-agent-log4j.jar
130 - argLine=-Djava.library.path=${{WORKSPACE}}/deps/build/lib
131 - shell:
132 !include-raw-escape: scripts/lttng-ust-java-tests/stop-sessiond.sh
133
134 publishers:
135 - archive:
136 artifacts: 'lttng-sessiond.log'
137 allow-empty: false
138 - junit:
139 results: 'lttng-ust-java-tests/**/target/failsafe-reports/*.xml'
140 - workspace-cleanup
141 - email-ext:
142 recipients: '{obj:email_for_all_failure}'
143 always: false
144 unstable: true
145 first-failure: false
146 first-unstable: false
147 not-built: false
148 aborted: false
149 regression: false
150 failure: true
151 second-failure: false
152 improvement: false
153 still-failing: false
154 success: false
155 fixed: false
156 fixed-unhealthy: true
157 still-unstable: false
158 pre-build: false
159 matrix-trigger: only-parent
160 send-to:
161 - recipients
162 - email-ext:
163 recipients: '{obj:email_to}'
164 reply-to: ci-notification@lists.lttng.org
165 always: false
166 unstable: false
167 first-failure: true
168 first-unstable: true
169 not-built: false
170 aborted: false
171 regression: false
172 failure: false
173 second-failure: false
174 improvement: false
175 still-failing: false
176 success: false
177 fixed: false
178 fixed-unhealthy: true
179 still-unstable: false
180 pre-build: false
181 matrix-trigger: only-parent
182 send-to:
183 - recipients
184
185 ## Project
186 - project:
187 name: lttng-ust-java-tests
188 github_user: lttng
189 github_name: lttng-ust-java-tests
190 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
191 email_for_all_failure: 'mathieu.desnoyers@efficios.com'
192 version:
193 - master
194 liburcu_version:
195 - master
196 lttng_ust_version:
197 - master
198 lttng_tools_version:
199 - master
200 babeltrace_version: stable-2.0
201 jobs:
202 - 'lttng-ust-java-tests_{version}_build':
203 arch: !!python/tuple [amd64]
204 java_version: !!python/tuple [java-11-openjdk]
205
This page took 0.052136 seconds and 5 git commands to generate.