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