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 Klera 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.
7. Now, open online Base64 encoding site on browser.
8. Paste the generated token followed by ":" , for e.g:- <your Token>:
9. Click on "ENCODE". It will generate Base64 Encoded Token.
10. Save this Base64 Encoded Token in Notepad++ or somewhere.
To configure SonarQube Server using Token Based authentication:-
- Enter your SonarQube URL for e.g: http://sonar.klera.io.
- Select Authentication Type as "Token".
- Select “Create New Account” and add account name
- 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:-
- Enter your SonarQube URL for e.g: http://sonar.klera.io
- Select Authentication Type as "Basic".
- Select “Create New Account” and add account name
- Enter your Username and Password
- 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".