OpenSearch
OpenSearch copied to clipboard
Pickup Java version from .properties in OpenSearch gradle check
Is your feature request related to a problem? Please describe
Coming from https://github.com/opensearch-project/opensearch-build/issues/74#issuecomment-956496829. Use different JDKs depending on which branch of OpenSearch is being built.
Describe the solution you'd like
OpenSearch has CI defined in a private freestyle project that runs gradle check on OpenSearch#main, branches and PRs. It will get extracted into a Jenkinsfile that is committed to the OpenSearch repo in https://github.com/opensearch-project/opensearch-build/issues/851.
It will then needs to pickup the JDK version to use from https://github.com/opensearch-project/OpenSearch/blob/main/.ci/java-versions.properties#L16.
Describe alternatives you've considered
No response
Additional context
No response
Transferring this issue to https://github.com/opensearch-project/OpenSearch/ repo as this enhancement will be addressed as part of Gradle check migration process.
@bbarani is this already addressed?
@peterzhuamazon would know - show us where we get the java version in gradle checks?
@peterzhuamazon would know - show us where we get the java version in gradle checks?
You can improve it by getting it from versions.properties, and sent from webhook to Jenkins runs. https://github.com/opensearch-project/opensearch-build/blob/main/vars/runGradleCheck.groovy#L36-L42
Thanks @peterzhuamazon - @minalsha this is not done, care to queue it up?
@peterzhuamazon @dblock since build infra is open now, I could take it (if there are no objections)