Starting: SonarQubePrepare
==============================================================================
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 6.3.2
Author : sonarsource
Help : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
==============================================================================
##[warning]Error while executing SonarQube:Prepare task: [SQ] API GET '/api/server/version' failed, error is The operation was aborted.
##[error][SQ] API GET '/api/server/version' failed, error is The operation was aborted.
Finishing: SonarQubePrepare
I’m not sure I’ve seen this particular error before. The api/server/version call is the very first contact the scanner makes with the server, so there’s a basic communication problem between the two.
As a first step, you should double-check the SonarQube URL you’ve configured in your global settings under the ‘SonarQube’ configuration name. If that URL is correct, then I would look at what sits between scanner and server that might be aborting the connection (because this is not something the scanner does).
As a first step, you should double-check the SonarQube URL you’ve configured in your global settings under the ‘SonarQube’ configuration name
I just copy-pasted (even clicking on the button) the URL provided in the tutorial, so…
A control question - does our server need to be exposed to the internet?
Do I need to somehow configure the sonarQube connection, like checks or something?
That is the only build agent currently used; we have another azure pipeline in preparation, but that is out of the scope - I think you are not asking about that, but about the environment which is hosting the mentioned job.
The SonarQube worker is on another - in local network - server.
Regarding connection, there is that tab on the screen below - it was not mentioned to change there anything, but maybe?
Thank you for the clarification.
But, regarding the abort, should the worker machine be exposed to the internet, or it is not necessary? I ask because for the self hosted workers (for normal azure pipeline) it is not required - it works in the pooling way. But what about the sonar qube worker, if the agent is MS hosted?