Skip to content

Commit

Permalink
Merge pull request #18309 from infosiftr/more-java-versions
Browse files Browse the repository at this point in the history
Add more fallback Java versions for tests
  • Loading branch information
yosifkit authored Jan 24, 2025
2 parents d14df0c + ce4e54d commit aa2682a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/tests/run-java-in-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa2682a

Please sign in to comment.