Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to connect to Sonarqube via intellij (SonarLint)

I am trying to integrate sonarqube(version 5.1.2) with intellij(2016.2). I have added sonarLint plugin. when I am trying to add a sonar server to the sonarLint settings it asks for username and password for sonar server and other details like url. But it somehow is unable to connect to the sonar server and gives error : Fail to request : https://example.com/api/system/status

enter image description here

like image 937
arjun Avatar asked Dec 06 '16 04:12

arjun


1 Answers

The latest version of SonarLint only supports SonarQube 5.6+ (5.6 is the current LTS version).

Apart of that, you might also be facing a problem with server SSL certificates. SonarLint will try to validate the server's SSL certificate using the JVM's truststore. So if your SonarQube server uses an SSL certificate, you might need to install the CA certificate in the trustore of the JVM used by IntelliJ.

Due to a limitation in SonarLint, certificates configured within IntelliJ aren't supported by SonarLint: https://jira.sonarsource.com/browse/SLI-75

like image 80
Duarte Meneses Avatar answered Nov 04 '22 20:11

Duarte Meneses