SonarQube

How to integrate Sonarqube with Hivel?

Integrating SonarQube with Hivel enhances the quality and security of your codebase by enabling continuous code inspection and quality monitoring. SonarQube helps detect bugs, vulnerabilities, and code smells, ensuring that your software projects maintain high standards of code quality. By following the steps outlined below, you can seamlessly connect SonarQube to Hivel, allowing for efficient code quality management within your platform.

Step - 1: Whitelist Necessary IP Addresses

For a secure and uninterrupted connection, make sure to whitelist the following IP addresses:

  • Recommended, but Optional IPs:

    • 45.119.114.218

    • 183.82.116.218

  • Mandatory IPs:

    • 107.23.139.76

    • 3.219.89.23

Step - 2: Generate an Access Token in SonarQube

1. Log in to your SonarQube account.

2. Click on the name icon located in the top right corner.

3. Select "My Account" from the dropdown menu.

4. Navigate to the "Security" tab.

5. Go to Generate a token.

6. Enter a token name, preferably "Hivel".

7. Click on the "Generate" button.

8. Copy the generated token and save it securely.

9. Copy the URL from the address bar of your SonarQube server and save it.

Step - 3: Create Webhooks in SonarQube

1. Log in to your SonarQube platform.

2. Click on "Administration" at the top of the page.

4. Select "Configuration" from the administration options.

5. Click on "Webhooks" and create a new webhook.

6. Name the webhook "Hivel".

7. Enter this URL - https://app.hivel.ai/hivel/webhook/sonar?orgId={OrgID}

Step - 4: Connecting SonarQube to Hivel

1. Log in to the Hivel Platform.

2. Go to "Settings".

3. Select "Integrations" from the settings menu.

4. Find the SonarQube card and click on "Connect".

5. Fill in the required details:

SonarQube URL: Enter the SonarQube server URL you copied earlier.

Access Token: Enter the access token you generated in SonarQube.

6. Click on Submit.

By following these steps, you should successfully connect your SonarQube instance to Hivel. If you encounter any issues or need further assistance, please reach out to the Hivel support team at support@hivel.ai.

Last updated