From ce4e54d3f4ac85837ba2cc3241c42afe7f307868 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 24 Jan 2025 11:12:22 -0800 Subject: [PATCH] Add more fallback Java versions for tests --- test/tests/run-java-in-container.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests/run-java-in-container.sh b/test/tests/run-java-in-container.sh index 48d941966f9e7..ba07736d709f2 100755 --- a/test/tests/run-java-in-container.sh +++ b/test/tests/run-java-in-container.sh @@ -14,10 +14,15 @@ tryJdks=( # try progressively less specific versions to try and find something that can compile an appropriate ".class" object for use in $image (working our way out from "Java 8" because that's going to be the most compatible) "${image%%:*}:8-jdk-slim" "${image%%:*}:8-jdk" + "${image%%:*}:8" + "${image%%:*}:11-jdk-slim" + "${image%%:*}:11-jdk" + "${image%%:*}:11" "${image%%:*}:jdk-slim" "${image%%:*}:jdk" "${image%%:*}:latest" 'eclipse-temurin:8-jdk' + 'eclipse-temurin:11-jdk' ) jdk= for potentialJdk in "${tryJdks[@]}"; do