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.