we want to integrate Sonarqube(using SQ enterprise 10.8 with an on-prem environment) with Copado agents.
as an initial step, we have created inbound and outbound rules from SQ side Firewall for copado agent’s IP range, but getting an error from copado agent while running analysis as
" ERROR c.c.l.c.e.CodeScanExceptionHandler - Handled exception: feign.RetryableException: Connect timed out executing"
My question is,
1)Do we need to install Sonarscaner in each copado agent?
2)How can I connect from Sonarqube portal to copado pipelines (as I don’t see an option for this to import a project)
*** The pending task is to know the repo configuration from copado
SonarQube doesn’t have any specific integration with Copado. Just like any analysis, a SonarScanner will need to be available (which here would mean installing it on each agent).
You won’t be able take integrate with Copado like, say, GitHub, Bitbucket, Gitlab or Azure DevOps (the DevOps platform that SonarQube supports integrating with). But you can still run scans as long as the SonarScanner is installed, and the SonarScanner can reach your SonarQube instance.
So far as this exception:
This doesn’t look like a SonarScanner error to me. Can you provide a wider range of logs?
Yes, the error is not related to Sonarqube but is network-related, as per the Copado support team, a scanner is not required for their cloud agents! From the documentation, a few steps are there to execute an analysis.
If Copado has built an integration with SonarQube, we don’t know anything about it, and you should reach out to them for support! We can tell you about the SonarScanner until we’re blue in the face, but we aren’t Copado support, and we don’t know how they’ve integarted analysis.