Skip to content

Read build and runtime java from properties file #48355

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

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

alpar-t
Copy link
Contributor

@alpar-t alpar-t commented Oct 22, 2019

This PR changes the PS1 script that starts os tests for the packaging
test matrix to match the bash script we use on Linux in terms of reading
the runtime and build java versions.

Relates to elastic/infra#11593

This PR changes the PS1 script that starts os tests for the packaging
test matrix to match the bash script we use on Linux in terms of reading
the runtime and build java versions.

Relates to elastic/infra#11593
@alpar-t alpar-t added :Delivery/Build Build or test infrastructure v8.0.0 v7.5.0 v7.6.0 labels Oct 22, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@alpar-t alpar-t requested a review from mark-vieira October 22, 2019 13:58
Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

One comment, otherwise LGTM.

# $env:ES_BUILD_JAVA="java12"
#$env:ES_RUNTIME_JAVA="java11"
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
$env:ES_BUILD_JAVA=$AppProps.ES_BUILD_JAVA
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some generic way to just expose these environment variables so we don't have to hard code each of them? For example, loop over $AppProps and set each as a corresponding environment variable so we don't have to touch this script should we add something new to java-versions.properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered it, but don't really see a need to make this very generic.
This has the advantage of being simple and readable. I suggest we change ti if we'll have to add one more.

@alpar-t
Copy link
Contributor Author

alpar-t commented Oct 23, 2019

@elasticmachine run
elasticsearch-ci/packaging-sample-matrix and run elasticsearch-ci/bwc

@alpar-t alpar-t merged commit 0a26667 into elastic:master Oct 23, 2019
@alpar-t alpar-t deleted the read-props-ps1 branch October 23, 2019 10:22
alpar-t added a commit that referenced this pull request Oct 23, 2019
This PR changes the PS1 script that starts os tests for the packaging
test matrix to match the bash script we use on Linux in terms of reading
the runtime and build java versions.

Relates to elastic/infra#11593
alpar-t added a commit that referenced this pull request Oct 23, 2019
This PR changes the PS1 script that starts os tests for the packaging
test matrix to match the bash script we use on Linux in terms of reading
the runtime and build java versions.

Relates to elastic/infra#11593
@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
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.5.0 v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants