Skip to content

Commit 0a26667

Browse files
authored
Read build and runtime java from properties file (#48355)
This PR changes the PS1 script that starts os tests for the packaging test matrix to match the bash script we use on Linux in terms of reading the runtime and build java versions. Relates to elastic/infra#11593
1 parent e8547be commit 0a26667

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.ci/os.ps1

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
55
exit
66
}
77

8-
# CI configures these, uncoment if running manually
9-
#
10-
# $env:ES_BUILD_JAVA="java12"
11-
#$env:ES_RUNTIME_JAVA="java11"
8+
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
9+
$env:ES_BUILD_JAVA=$AppProps.ES_BUILD_JAVA
10+
$env:ES_RUNTIME_JAVA=$AppProps.ES_RUNTIME_JAVA
1211

1312
$ErrorActionPreference="Stop"
1413
$gradleInit = "C:\Users\$env:username\.gradle\init.d\"

0 commit comments

Comments
 (0)