On-Prem
How to integrate Sonarqube with Hivel?
How to Integrate SonarQube with Hivel (On-Prem)
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.
Step 1: Whitelist IP Addresses in Your Infrastructure
Before connecting, whitelist the following IP addresses to ensure a secure and uninterrupted connection:
Mandatory IPs:
107.23.139.76
3.219.89.23
Recommended, but Optional IPs:
45.119.114.218
183.82.116.218
Step 2: Generate an Access Token
Application: SonarQube
Log in to your SonarQube account
Click the name icon in the top right corner
Select "My Account" from the dropdown menu

Navigate to the "Security" tab

Go to Generate a token
Enter a token name (preferably "Hivel")
Click "Generate"
Copy and save the generated token securely

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

Step 3: Create a Webhook in SonarQube
Application: SonarQube
Log in to your SonarQube platform
Click "Administration" at the top of the page

Select "Configuration" from the administration options
Click "Webhooks" and create a new webhook

Name the webhook "Hivel"
Enter this URL:
https://app.hivel.ai/hivel/webhook/sonar?orgId={OrgID}

Note: Contact Hivel for your OrgID
Step 4: Connect SonarQube to Hivel
Application: Hivel Platform
Log in to Hivel
Go to Settings
Select Integrations

Find the SonarQube card and click "Connect"

Fill in the required details:
Instance Type: Select SonarQube Server (self-hosted)
SonarQube URL: Paste the server URL from Step 2.9
Access Token: Paste the token from Step 2.8

Click Submit
You've successfully connected your SonarQube instance to Hivel. For further assistance, contact the Hivel support team at support@hivel.ai.
Continue setting up your integrations
Next: Connect additional on-prem tools to complete your setup in Integrations.
Last updated