Sonarcloud Server Id impossible to find

Hi there,

I’m trying to setup SonarLint in VS Code. I need to put the “Server Id”, which I’m not able to find in our sonarcloud.
Can someone give me a hand an point me in the right direction?

Thanks,
Matthieu

Hi Matthieu,

Looking at the setting documentation in VS Code:

  // Configure the connection(s) to SonarQube/SonarCloud in your USER settings.
  // For security reasons, the token should not be stored in SCM with workspace settings
  // "sonarlint.connectedMode.servers": [
  //     {
  //        "serverId": "my_orga_in_sonarcloud.io", // Connection identifier
  //        "serverUrl": "https://sonarcloud.io",   // SonarQube/SonarCloud URL - https//sonarcloud.io for SonarCloud
  //        "organizationKey": "my_organization",   // Organization key in SonarCloud only
  //        "token": "V2VkIE1heSAyMyAwODowOTozMiBDRVNUIDIwMTgK"    // User token - generated in SonarQube/SonarCloud in My Account>Security
  //     }
  // ],
  "sonarlint.connectedMode.servers": [],

The serverId is a property that you have to define, to uniquely identify this connected server, allowing you to specify the right one in sonarlint.connectedMode.project. Makes sense ?

1 Like

Elaborate please; what is the difference between the serverID and the organizationKey?
What is the difference between, my_orga_in_sonarcloud.io and my_organization? From what I read they they would be equal?