From 496bc19a1a054e8b8e0200cdf91871887d5e6baa Mon Sep 17 00:00:00 2001
From: Chris Copsey <150505+ccopsey@users.noreply.github.com>
Date: Tue, 12 Sep 2023 02:08:07 +0100
Subject: [PATCH] fix(platform/azure): Allows azure-got-wrapper to retry
 requests following connection failures (#24348)

---
 lib/modules/platform/azure/azure-got-wrapper.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/modules/platform/azure/azure-got-wrapper.ts b/lib/modules/platform/azure/azure-got-wrapper.ts
index d9628cba85..4dbfc72dfe 100644
--- a/lib/modules/platform/azure/azure-got-wrapper.ts
+++ b/lib/modules/platform/azure/azure-got-wrapper.ts
@@ -24,7 +24,10 @@ export function azureObj(): azure.WebApi {
     throw new Error(`No config found for azure`);
   }
   const authHandler = getAuthenticationHandler(config);
-  return new azure.WebApi(endpoint, authHandler);
+  return new azure.WebApi(endpoint, authHandler, {
+    allowRetries: true,
+    maxRetries: 2,
+  });
 }
 
 export function gitApi(): Promise<IGitApi> {
-- 
GitLab