Adapt BWC version searching logic
We were searching for what version to build the 6.7 branch with in BWC
builds by searching for a line starting with ES_BUILD_JAVA=java. Yet, on
the 6.7 branch we changed to using openjdk so this commit adapts that
logic accordingly.
@@ -145,8 +145,8 @@ bwcVersions.forPreviousUnreleased { VersionCollection.UnreleasedVersionInfo unre
'JAVA_HOME',
getJavaHome(it, Integer.parseInt(
lines
- .findAll({ it.startsWith("ES_BUILD_JAVA=java") })
- .collect({ it.replace("ES_BUILD_JAVA=java", "").trim() })
+ .findAll({ it.startsWith("ES_BUILD_JAVA=openjdk") })
+ .collect({ it.replace("ES_BUILD_JAVA=openjdk", "").trim() })
.join("!!")
))
)
