Ignore SSL when environment is specified

This commit is contained in:
Remco Mokveld 2025-03-12 13:57:54 +01:00
parent 4504a95ca5
commit cfdc6db0ae

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