SonarQubeAnalyze@5 is very slow on Azure Pipeline

Hi, I am facing slowness on SonarQubeAnalyze@5 on Azure Devops.

I contacted Microsoft, they said there is nothing wrong with Azure Devops.

If I buy sonarqube enterprise edition, will it run faster?

I am a little bit confuse since Azure Devops on SonarQubeAnalyze@5 is very slow but in Sonarqube it takes only 4-5 mins to complete.

Thank you,
Natchanon Pornprasatpo

1 Like


Enterprise Edition($$) will not speed up your CI-side analysis. It does include a feature that could speed up the server-side processing of analysis reports, but that’s not what’s at issue here.

To be clear, you’re talking about the time to run CI-side analysis, versus the server-side processing of the report? Or are you talking about running analysis in ADO versus triggering analysis some other way?

Regarding how long analysis takes on ADO, duration is going to be closely related to project size. How big is yours?

And to dig in to your duration, we’d need the full text of your analysis log (in text, rather than screenshot form :pray: ).


Hi Ann,
Thank you for the feedback.
I am talking about CI-side analysis.
I thought ADO CI-side analysis and Sonar Task is the same process.

Meaning CI and server-side processing is not relevant at all?

How do I improve the speed of my CI?

Please find the analysis log in the attach. (501.3 KB)

Thank you,
Natchanon Pornprasatpol

Hi Natchanon,

Yes, they are. Sorry for the confusion.

Regarding your analysis speed, from the logs, it looks like resources are not the problem. There seems to be plenty of disk, memory and CPU available.

I see that the time is all taken in analysis of TypeScript files. Is there a tsconfig.json file in your project? If so, could you post it, redacted as necessary? And this thread may be relevant.

Also, could you tell us how many Lines of Code your project has?

As a side note, I see that you’re using

  • SonarQube 10.1
  • Java 11
  • SonarScanner 4.8.1

All of those are a bit dusty. Current versions are

  • SonarQube 10.4.1 (which requires Java 17)
  • SonarScanner 5.0.1 (which embeds Java 17)

And by the time you get to SonarQube 10.4.1, Node.js is embedded as well, so that may be helpful.

I don’t believe these upgrades will impact your analysis time, but it’s incumbent on me to mention them.


Hi Ann,
Sorry for late reply.
Here is my tsconfig:
tsconfig.base.json (8.9 KB)

Thank you,
Natchanon Pornprasatpol

Hi @natchanon_pornprasat,

from the logs, it does not seem your tsconfig is picked up. Can you set the following sonar property?


Also, can you share the full debug logs?