Skip to content

Commit 84ace92

Browse files
committed
Merge branch '2.1.x'
2 parents 2033cf3 + a3c7401 commit 84ace92

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ci/images/setup.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,20 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
1919
case "$1" in
2020
java8)
2121
JDK_URL=https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz
22-
;;
23-
java9)
24-
JDK_URL=https://github.com/AdoptOpenJDK/openjdk9-binaries/releases/download/jdk-9.0.4%2B11/OpenJDK9U-jdk_x64_linux_hotspot_9.0.4_11.tar.gz
25-
;;
26-
java10)
27-
JDK_URL=https://github.com/AdoptOpenJDK/openjdk10-releases/releases/download/jdk-10.0.2%2B13/OpenJDK10_x64_Linux_jdk-10.0.2.13.tar.gz
22+
COMPONENTS=2
2823
;;
2924
java11)
3025
JDK_URL=https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz
26+
COMPONENTS=1
3127
;;
3228
*)
3329
echo $"Unknown java version"
3430
exit 1
3531
esac
3632
mkdir -p /opt/openjdk
3733
cd /opt/openjdk
38-
curl -L ${JDK_URL} | tar zx --strip-components=2
34+
curl -L ${JDK_URL} | tar zx --strip-components=${COMPONENTS}
35+
test -f /opt/openjdk/bin/java
3936

4037

4138
###########################################################

0 commit comments

Comments
 (0)