Add more fallback Java versions for tests

This commit is contained in:
Tianon Gravi 2025-01-24 11:12:22 -08:00
parent d14df0c573
commit ce4e54d3f4
1 changed files with 5 additions and 0 deletions

View File

@ -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