- SonarQube Server / DCE 2025.1
- Jenkins 2.440 / Maven 3.5+
Hello,
I apologize if my question seems strange, but I failed to find an answer so far. I have been asked a question, for which I think I don’t know exactly what to answer, except: “it is how we’ve always been doing it”. One user asked me why they have to implement 2 calls to Maven in their pipeline, one to build their binary, and one for Sonar.
Basically, in our current pipelines, most of the time we have the following stages:
- build
- call JaCoCo and run sonar analyses
- wait for quality gate
- if quality gate is ok, push to binary repository
So the question is: would it be possible to merge #1 and #2 and just have one Maven run, or is it not recommended for some reasons — and if there are reasons not to do it, what are they?