-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] macOS version of JDK21.0.1+12 not able to be install with java global tools #4272
Comments
Once opensearch-project/opensearch-ci#376 is merged,
Thanks. |
I am closing this issue as the implementaion has been made, and test on CI looks well with the new AMI https://build.ci.opensearch.org/job/publish-opensearch-min-snapshots/466/ |
It appers the jenv did not set the JAVA_HOME and java version properly as the min snapshot fail on build 1.3.15 which has the Java 11 in manifest - https://build.ci.opensearch.org/blue/organizations/jenkins/publish-opensearch-min-snapshots/detail/publish-opensearch-min-snapshots/514/pipeline/62
major version 65 is Java 21 (https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers) , which means it takes the latest installed JDK as the default and the jenv does not setup the needed JDK taken from the manifest properly |
The issue is due to jenv setup is using
In Jenkins, each Will PR. |
Thanks, Peter , apart from that, in order to get JAVA_HOME set properly, we also need to enable plugin
|
Got it, thanks! |
Correction:
We will now only use jenv global to avoid confusion. |
There are a lot of issues related to the jenv setups, as it is actually eval a function and not switching versions properly without the export plugin. Have a long session with @jordarlu and eventually I use update-alternatives to solve the issues:
Thanks. |
Error: https://build.ci.opensearch.org/blue/organizations/jenkins/publish-opensearch-min-snapshots/detail/publish-opensearch-min-snapshots/432/pipeline/
See here:
This should be change on the build side to use other means to install jdk on macOS.
Then sunset the jdk global tools on opensearch-ci.
So we can avoid relying on the global tools and adoptium api again just to install jdk.
Thanks.
The text was updated successfully, but these errors were encountered: