Repository navigation
Retry Gradle builds once in CI - #69750
Conversation
Use Arcade's ExecWithRetries task for Java builds in CI while preserving the existing single-attempt behavior for local builds. Co-authored-by: Copilot <[email protected]> Copilot-Session: 31880977-2e76-4303-9237-5e03bd9f9c9d
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
There was a problem hiding this comment.
🟢 Approval recommended
The retry configuration matches the pinned Arcade task contract and preserves existing local behavior.
0 open findings
What changed in this PR
Adds a single retry for Gradle builds in CI while preserving local build behavior.
Changes:
- Uses Arcade’s
ExecWithRetrieswith two attempts in CI. - Keeps local builds on the existing single-attempt
Execpath. - Prevents recovered stderr from failing MSBuild.
| File | Description |
|---|---|
eng/targets/Java.Common.targets |
Splits Gradle execution into local and retry-enabled CI paths. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Youssef1313
left a comment
There was a problem hiding this comment.
Is this trying to solve the same issue as #69365 ?
Nope...the wrapper retry only works for the distribution download. |
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR only adds a CI retry for Gradle builds in an engineering targets file. Documentation surfaces considered
|
Summary
ExecWithRetriestaskThis mitigates transient dependency download failures such as truncated Maven responses while keeping the retry policy small and unconditional.
Validation
git diff --check