-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Install java via native tools in CI #54421
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
The VMR doesn't have Java installed globally on the machines, but it does have it in the native tool cache. This PR updates the build scripts to use the native tool cache to install Java in CI builds. I've also updated to 11.0.22 (vs. the .3 version from 2019) and the script used to pull this from native tool assets.
.azure/pipelines/ci.yml
Outdated
@@ -200,7 +200,8 @@ stages: | |||
steps: | |||
- script: ./eng/build.cmd | |||
-ci | |||
-prepareMachine | |||
-prepareMchine | |||
-nativeToolsOnMachine |
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.
Spacing is off here
@@ -12,8 +12,6 @@ | |||
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)" | |||
] | |||
}, | |||
"Git": "2.22.0", |
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.
Why remove git?
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.
This doesn't do anything that I can tell. Do you know of any place that reads this? Btw last updated in 2019?
This needs a tweak or two. |
Do we need something similar for wasm-tools? Edit: ignore me - this is apparently known and the new requirement is being reverted. Out of curiosity, would the fix look like this, if we were going to install it? |
Because the native tools are laid out in a weird way...this doenst' work locally...i'll need to disable native tools installs unless the native tools are on the machine |
@mmitche, we've been seeing a lot of failures in
Do we need to revert this? Or do a follow-up? |
The VMR doesn't have Java installed globally on the machines, but it does have it in the native tool cache like other CI machines. This PR updates the build scripts to use the native tool cache to install Java in CI builds. I've also updated to 11.0.22 (vs. the .3 version from 2019) and the script used to pull this from native tool assets storage account.