Sonarqube Scanner for Jenkins, analysis in parallel ? [SONARJNKNS-316]

Hi,

we want to speed up several parts of our Jenkins pipelines, including the Sonarqube analysis.
AFAIK the analysis in parallel is still not officially supported, Sonarqube docs

has

If you want to run multiple analysis in the same pipeline and use waitForQualityGate you have to do everything in order

Some teams nevertheless use the Sonarqube analysis in parallel, the duration of the analysis
is reduced from 8-9 mins to 2-3 mins.
The parallel scans are running fine most of the time, but sometimes one of several modules runs on timeout, waiting for the webhook from Sonarqube server (= waitForQualityGate() step).
It seems there are threading problems, when the listener waits for the Json payload of its analysisid.

We’ve opened a support ticket in late 2019 (SUPPORT-16650) which resulted in the Jira ticket
https://jira.sonarsource.com/projects/SONARJNKNS/issues/SONARJNKNS-316
but it has still status unresolved.

When will this problem be tackled ?
Automation and speed up are key and the Sonarqube analysis within parallel saves more than
half the time.

Gilbert

1 Like

Hi,

this ticket has a shadowy existence, but should finally be actively addressed.
https://jira.sonarsource.com/projects/SONARJNKNS/issues/SONARJNKNS-316
All my statements from 3 years ago are still relevant.
Our developers are asking for a solution!

Gilbert

1 Like

Hi,

recently Sonarsource has done a great step to make Sonarqube analysis faster :raised_hands:

The next step would be to take this further and support monorepos with many npm modules, see

This is a general problem for all pipelines that need to become faster, not only in Jenkins.

Gilbert

Any sample configuration & sonar-project.properties file for a monorepo support that you can share