Skip to content

Commit

Permalink
Make sure windows correctly switch java versions in integTest (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Oct 18, 2023
1 parent 9704cbe commit 4218939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jacocoTestReport {
}
}

String version = '5.10.0'
String version = '5.10.1'

task updateVersion {
doLast {
Expand Down
2 changes: 1 addition & 1 deletion vars/runIntegTestScript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void call(Map args = [:]) {
if (filename == 'opensearch' && platform == 'windows') { // Windows use scoop to switch the Java Version
String javaVersionNumber = javaVersion.replaceAll("[^0-9]", "") // Only get number
echo("Switching to Java ${javaVersionNumber} on Windows Docker Container")
sh("scoop reset `scoop list jdk | grep ${javaVersionNumber} | head -1 | cut -d ' ' -f1`")
sh("scoop reset `scoop list jdk | cut -d ' ' -f1 | grep ${javaVersionNumber} | head -1`")
}
echo "Possible Java Home: ${javaHomeCommand}"

Expand Down

0 comments on commit 4218939

Please sign in to comment.