I want to connect Visual Studio Professional 2019 (v16.6.3) to my enterprise’s SonarQube server via the SonarLint plugin for Visual Studio (v184.108.40.20699).
In the “Connect to a SonarQube Server” modal dialog I enter these values:
SonarQube server: https://my.company.server.com/sonarqube/
Username/Token: <name of token I created at https://my.company.server.com/sonarqube/account/security/>
but when I click on Connect it fails with:
Cannot connect to the SonarQube server. Make sure you provided the correct connection information, including your sign-in credentials, and try again.
See more information in the output window (SonarLint).
SonarLint output window:
Connecting to SonarQube server: https://my.company.server.com/sonarqube/
Connecting to SonarQube server: Validating credentials
Connecting to ‘https://my.company.server.com/sonarqube/’.
Connected to SonarQube ‘220.127.116.11448’.
SonarQube request failed: Invalid credentials
Connecting to SonarQube server: Failed
Can someone help me connect please? I’ve tried creating different tokens but to no avail. I had no problem connecting to the same server from PyCharm using a different token, but using PyCharm’s token in Visual Studio gives me the same error as above.