Skip to content

Handle requiring versioned java home during execution#37599

Merged
rjernst merged 2 commits intoelastic:masterfrom
rjernst:require_java_home_runtime
Jan 21, 2019
Merged

Handle requiring versioned java home during execution#37599
rjernst merged 2 commits intoelastic:masterfrom
rjernst:require_java_home_runtime

Conversation

@rjernst
Copy link
Copy Markdown
Member

@rjernst rjernst commented 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 #37586

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
@rjernst rjernst added >bug :Delivery/Build Build or test infrastructure v7.0.0 v6.7.0 labels Jan 18, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rjernst rjernst merged commit 614950e into elastic:master Jan 21, 2019
@rjernst rjernst deleted the require_java_home_runtime branch January 21, 2019 06:48
rjernst added a commit that referenced this pull request 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
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v6.7.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"gradlew buildBwcVersion" fails with misleading error if JAVA11_HOME is not set

5 participants