-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Conversation
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
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
@elasticmachine run |
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
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