-
Notifications
You must be signed in to change notification settings - Fork 25.8k
"gradlew buildBwcVersion" fails with misleading error if JAVA11_HOME is not set #37586
Copy link
Copy link
Closed
Labels
:Delivery/BuildBuild or test infrastructureBuild or test infrastructureTeam:DeliveryMeta label for Delivery teamMeta label for Delivery team
Description
Elasticsearch version (bin/elasticsearch --version): build issue, seen with master branch
Plugins installed: []
JVM version (java -version):
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
OS version (uname -a if on a Unix-like system):
Linux <name> 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
When I run buildBwcVersion, it fails with ERROR: JAVA_HOME is set to an invalid directory: null, but JAVA_HOME is set. It's actually JAVA11_HOME that's missing.
Steps to reproduce:
- Confirm that
JAVA_HOMEis set, butJAVA11_HOMEis not (env | grep JAVA) - Check out the latest source and confirm that Java 11 is set in java-versions.properties (
grep 11 .ci/java-versions.properties) - Run
./gradlew buildBwcVersion. The build should fail withERROR: JAVA_HOME is set to an invalid directory: null.
Provide logs (if relevant):
> Task :distribution:bwc:bugfix:buildBwcVersion FAILED
[6.5.5] ERROR: JAVA_HOME is set to an invalid directory: null
[6.5.5]
[6.5.5] Please set the JAVA_HOME variable in your environment to match the
[6.5.5] location of your Java installation.
[6.5.5]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':distribution:bwc:bugfix:buildBwcVersion'.
> Process 'command '/home/heather/code/git/elasticsearch/distribution/bwc/bugfix/build/bwc/checkout-6.5/gradlew'' finished with non-zero exit value 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Delivery/BuildBuild or test infrastructureBuild or test infrastructureTeam:DeliveryMeta label for Delivery teamMeta label for Delivery team
Type
Fields
Give feedbackNo fields configured for issues without a type.