SonarQube(Server & Cloud)

Supported versions: Server 4.X, 6.X, 7.X, 8.X up to 9.5 and Cloud

API Rate Limit: No limit.

Supported Authentication: Basic and Token Based Authentication

IMPORTANT: Please make sure your SonarQube instance must be accessible from the Gathr Analytics Machine.

Steps to generate Token:

  1. Login to SonarQube instance.

  2. Select “My Account” option from the dropdown which appears on clicking user icon on top right corner.

  3. In the next page that appears, select “Security” option.

  4. Enter a user friendly Token name and click on “Generate”.

  5. Copy the token generated and save it in Notepad++ or somewhere.

  6. Now, open online Base64 encoding site on browser.

  7. Paste the generated token followed by ":" , for e.g:-

  8. Click on “ENCODE”. It will generate Base64 Encoded Token.

  9. Save this Base64 Encoded Token in Notepad++ or somewhere.

To configure SonarQube Server using Token Based authentication:-

  1. Enter your SonarQube URL for e.g: http://sonar.klera.io.

  2. Select Authentication Type as “Token”.

  3. Select “Create New Account” and add account name

  4. Check “Pass Parameters(s) in Header” and add below details:

    • Key: Authorization
    • Value: Basic Base64_Encoded_Token
  5. Click on “Save”.

To configure SonarQube Server using Basic authentication:-

  1. Enter your SonarQube URL for e.g: http://sonar.Gathr Analytics.io
  2. Select Authentication Type as “Basic”.
  3. Select “Create New Account” and add account name
  4. Enter your Username and Password
  5. Click on “Save"

To configure SonarQube Cloud using Token Based authentication:

  1. Enter SonarQube Cloud URL: https://sonarcloud.io

  2. Select “Create New Account” and add user-friendly name for your account, for e.g. SonarQube Cloud Account.

  3. Check “Pass Parameters(s) in Header” and add below details:

    • Key: Authorization
    • Value: Bearer API_Token
  4. Click on “Save”.

Top