John Bull
John Bull

Reputation: 1109

SonarQube publish quality gate result takes far too long

Publishing Quality Gate results take way too long. Right now, when I publish using the respective Azure DevOps task, I have to wait for at least 18min until the process finished. The project doesn't have a huge codebase (only 45k lines of code) and as far as I can see, the process itself doesn't load our Azure-based database as well. What could be the issue? Are there any ways of improving QG publishing performance?

Upvotes: 4

Views: 4253

Answers (1)

duncanp
duncanp

Reputation: 1580

The Publish Quality Gate step polls the SonarQube server until the background processing on the server has completed, and then posts the success/failure result to the Azure DevOps build summary page.

If you can live without the SQ summary on the build summary page then you can just disable the Publish Quality Gate step.

To investigate why the step is taking so long you need to look at your SonarQube server. The docs on Background Tasks describe how to look at the background processing to see how long each task is taking. There are also perf suggestions on the Hardware Recommendations and Benchmark pages. If you are using the Enterprise edition you can increase the number of compute engine workers.

Upvotes: 3

Related Questions