We are trying to use sonarscanner cli and use the specific proxy sonarqube server. But upon starting the scan it resulted to this error.
Caused by: java.net.ConnectException: Failed to connect to sonarqube-xx…com/10.x.x.x.x:443
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connectSocket(RealConnection.java:265)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connect(RealConnection.java:183)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Transmitter.newExchange(Transmitter.java:169)
We are using proxy settings with the sonarqube server. I would like to ask if there are required parameter to include in sonar.properties in order to read the proxy settings? Aside from this I already added the certificate to the local.
I’ve read the proxy can set using JVM level and
SONAR_SCANNER_OPTS.