1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Update sonarExecuteScan.go

This commit is contained in:
alexander-petkov-SAP
2025-07-29 08:01:55 +03:00
committed by GitHub
parent 8cb1e6a7b6
commit 997ca71929

View File

@@ -98,12 +98,12 @@ func sonarExecuteScan(config sonarExecuteScanOptions, _ *telemetry.CustomData, i
javaToolOptions := fmt.Sprintf("-Dhttp.proxyHost=%v -Dhttp.proxyPort=%v", host, port)
os.Setenv("JAVA_TOOL_OPTIONS", javaToolOptions)
apiClient.SetOptions(piperhttp.ClientOptions{TransportProxy: transportProxy, TransportSkipVerification: true})
//apiClient.SetOptions(piperhttp.ClientOptions{TransportProxy: transportProxy, TransportSkipVerification: true})
log.Entry().Infof("HTTP client instructed to use %v proxy", proxy)
} else {
//TODO: implement certificate handling
apiClient.SetOptions(piperhttp.ClientOptions{TransportSkipVerification: true})
//apiClient.SetOptions(piperhttp.ClientOptions{TransportSkipVerification: true})
}
sonar = sonarSettings{