jjb: Fix maven version in 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 - junit:
135 results: 'lttng-ust-java-tests/**/target/failsafe-reports/*.xml'
136 - workspace-cleanup
137 - email-ext:
138 recipients: alex@voxpopuli.im
139 matrix-trigger: only-parent
140 - ircbot:
141 strategy: new-failure-and-fixed
142 matrix-notifier: only-parent
143 channels:
144 - name: '#lttng'
145
146
147 ## Project
148 - project:
149 name: lttng-ust-java-tests
150 github_user: lttng
151 github_name: lttng-ust-java-tests
152 version:
153 - master
154 liburcu_version:
155 - master
156 lttng_ust_version:
157 - master
158 lttng_tools_version:
159 - master
160 babeltrace_version: stable-1.5
161 jobs:
162 - 'lttng-ust-java-tests_{version}_build':
163 arch: !!python/tuple [x86-32, x86-64]
164 java_version: !!python/tuple [java-8-openjdk]
165
This page took 0.033045 seconds and 5 git commands to generate.