Преглед изворни кода

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

Add more fallback Java versions for tests
yosifkit пре 10 месеци
родитељ
комит
aa2682a3c8
1 измењених фајлова са 5 додато и 0 уклоњено
  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