Parcourir la source

Merge pull request #18309 from infosiftr/more-java-versions

Add more fallback Java versions for tests
yosifkit il y a 10 mois
Parent
commit
aa2682a3c8
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      test/tests/run-java-in-container.sh

+ 5 - 0
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