Ignore SSL when environment is specified

This commit is contained in:
Remco Mokveld committed 2025-03-12 14:04:19 +01:00
1 parent 4504a95ca5
commit cfdc6db0ae
1 file changed
+5 -1
+5 -1
View File
@@ -67,7 +67,11 @@ export async function getToken(accessKey: string, expiry: string): Promise<Devel
}
class ShortLivedTokenClient {
httpc = new httpm.HttpClient('gradle/actions/setup-gradle')
httpc = new httpm.HttpClient(
'gradle/actions/setup-gradle',
undefined,
{ignoreSslError: process.env.DEVELOCITY_ALLOW_UNTRUSTED_SERVER == "true"}
)
maxRetries = 3
retryInterval = 1000