Commit cfdc6db0 authored by Remco Mokveld's avatar Remco Mokveld
Browse files

Ignore SSL when environment is specified

parent 4504a95c
Loading
Loading
Loading
Loading
+5 −1
Changes for sources/src/develocity/short-lived-token.ts: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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