Skip to content

Commit bb462b4

Browse files
fix: use toolchain list (#3695)
1 parent 016b0fe commit bb462b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kokoro/ubuntu/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@ export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
3535

3636
cd github/google-cloud-eclipse
3737

38+
sed -i.bak -e "s,JDK_8_HOME,/usr/lib/jvm/java-1.8.0-openjdk-amd64," .github/workflows/toolchains.xml
39+
sed -i.bak -e "s,JDK_11_HOME,/usr/lib/jvm/java-1.11.0-openjdk-amd64," .github/workflows/toolchains.xml
40+
3841
# A few notes on the Maven command:
3942
# - Need to unset `TMPDIR` for `xvfb-run` due to a bug:
4043
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/972324
4144
# - Single-quotes are necessary for `-Dproduct.version.qualifier.suffix`,
4245
# since it should be appended as a constant string in a date format.
4346
TMPDIR= xvfb-run \
4447
mvn -V -B \
48+
--toolchains=.github/workflows/toolchains.xml \
4549
-Doauth.client.id="${OAUTH_CLIENT_ID}" \
4650
-Doauth.client.secret="${OAUTH_CLIENT_SECRET}" \
4751
-Dfirelog.api.key="${FIRELOG_API_KEY}" \

0 commit comments

Comments
 (0)