Skip to content

Commit fd933f5

Browse files
committed
build: retry transient JDT LS p2 downloads
The JDT LS snapshot repository has no p2 mirrors, and Tycho 4.0.5 does not retry a direct connection reset. Let Azure Pipelines retry the build-plugin task on the same agent so the Maven and p2 caches are reused and only the missing artifact is fetched again. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ac225268-483d-4498-a08f-fe79a87d4d2e
1 parent eb07f76 commit fd933f5

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.azure-pipelines/vscode-java-test-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ extends:
5858
displayName: npm run lint
5959
- script: npm run build-plugin
6060
displayName: npm run build-plugin
61+
# The JDT LS snapshot p2 site has no mirrors, and Tycho 4.0.5
62+
# does not retry a direct connection reset. A task retry reuses
63+
# the Maven/p2 cache and fetches only the missing artifact.
64+
retryCountOnTaskFailure: 2
6165
# System.AccessToken is a secret, and Azure Pipelines does not export secret
6266
# variables to the environment -- not even through a variable that merely
6367
# references one. It is mapped here, on the step that actually runs Maven,

.azure-pipelines/vscode-java-test-nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ extends:
7474
displayName: npm run lint
7575
- script: npm run build-plugin
7676
displayName: npm run build-plugin
77+
# The JDT LS snapshot p2 site has no mirrors, and Tycho 4.0.5
78+
# does not retry a direct connection reset. A task retry reuses
79+
# the Maven/p2 cache and fetches only the missing artifact.
80+
retryCountOnTaskFailure: 2
7781
# System.AccessToken is a secret, and Azure Pipelines does not export secret
7882
# variables to the environment -- not even through a variable that merely
7983
# references one. It is mapped here, on the step that actually runs Maven,

.azure-pipelines/vscode-java-test-rc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ extends:
6969
displayName: npm run lint
7070
- script: npm run build-plugin
7171
displayName: npm run build-plugin
72+
# The JDT LS snapshot p2 site has no mirrors, and Tycho 4.0.5
73+
# does not retry a direct connection reset. A task retry reuses
74+
# the Maven/p2 cache and fetches only the missing artifact.
75+
retryCountOnTaskFailure: 2
7276
# System.AccessToken is a secret, and Azure Pipelines does not export secret
7377
# variables to the environment -- not even through a variable that merely
7478
# references one. It is mapped here, on the step that actually runs Maven,

0 commit comments

Comments
 (0)