-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
"gradlew buildBwcVersion" fails with misleading error if JAVA11_HOME is not set #37586
Labels
Comments
hmcc
changed the title
"gradlew buildBwcVersion" fails with misleading error if JAVA11_HOME is not set
Jan 17, 2019
gradlew buildBwcVersion
fails with misleading error if JAVA11_HOME
is not set
This was referenced Jan 17, 2019
Pinging @elastic/es-core-infra |
rjernst
added a commit
to rjernst/elasticsearch
that referenced
this issue
Jan 18, 2019
Currently bwc builds require different java home environment variables depending on the version of elasticsearch being built. The java home version checks are run at the end of gradle configuration, when the task graph is ready. However, we do not know which versions are needed for bwc builds until execution time, when we have finished checking out the version of elasticsearch to be built. This commit accounts for late java home checks, checking immediately instead of delaying the check. closes elastic#37586
Thanks for the bug report! I've opened a fix in #37599 |
rjernst
added a commit
that referenced
this issue
Jan 21, 2019
Currently bwc builds require different java home environment variables depending on the version of elasticsearch being built. The java home version checks are run at the end of gradle configuration, when the task graph is ready. However, we do not know which versions are needed for bwc builds until execution time, when we have finished checking out the version of elasticsearch to be built. This commit accounts for late java home checks, checking immediately instead of delaying the check. closes #37586
rjernst
added a commit
that referenced
this issue
Jan 21, 2019
Currently bwc builds require different java home environment variables depending on the version of elasticsearch being built. The java home version checks are run at the end of gradle configuration, when the task graph is ready. However, we do not know which versions are needed for bwc builds until execution time, when we have finished checking out the version of elasticsearch to be built. This commit accounts for late java home checks, checking immediately instead of delaying the check. closes #37586
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Elasticsearch version (
bin/elasticsearch --version
): build issue, seen withmaster
branchPlugins installed: []
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
When I run
buildBwcVersion
, it fails withERROR: JAVA_HOME is set to an invalid directory: null
, butJAVA_HOME
is set. It's actuallyJAVA11_HOME
that's missing.Steps to reproduce:
JAVA_HOME
is set, butJAVA11_HOME
is not (env | grep JAVA
)grep 11 .ci/java-versions.properties
)./gradlew buildBwcVersion
. The build should fail withERROR: JAVA_HOME is set to an invalid directory: null
.Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: