Configure SonarQube extension for VSTS for multiple solutions/projects

I am using:

  • Azure DevOps
  • SonarQube 7.4
  • SonarQube extension 4.5.1

There are 2 solutions in my Azure Build pipeline.
My build definition is as follows:

  • Prepare analysis configuration 1 - Project 1
  • Build solution 1
  • Run Code Analysis 1
  • Publish Quality Gate Result 1
  • Prepare analysis configuration 2 - Project 2
  • Build solution 2
  • Run Code Analysis 2
  • Publish Quality Gate Result 2

Is this definition configured correctly for multiple solutions that are mapped to multiple projects in SonarQube server?

The build completed succesfully. But in the build summary, there were 2 SonarQube Analysis Report:
SonarQube Analysis Report
Quality Gate Failed
Coverage on New Code 0.0% < 80.0%
Duplicated Lines on New Code (%) 4.8% > 3.0%
Detailed SonarQube report > [Redirects to Project 2]

SonarQube Analysis Report
Quality Gate Failed
Coverage on New Code 0.0% < 80.0%
Duplicated Lines on New Code (%) 4.8% > 3.0%
Detailed SonarQube report > [Redirects to Project 1]

The 2 reports looked similar, the only difference is that the hyperlink redirects to different project. Is there a way to customize the title “SonarQube Analysis Report” to visibly differentiate between the 2 projects?
Thank you

Hello,
Having multiple projects could work and that’s also the way I would configure it. Currently it’s not possible to customize the title, but it’s a feature we could add.

I’m wondering about the results your are getting though, is it really correct ? You are really expecting to have the same results for both projects ?

Hello Grégoire,
Thank you for confirming that the configuration is correct.
The results are correct, apparently a library project was incorrectly included in both solutions and the duplicated lines came from that project hence the same results.
Hopefully the feature to customize the title will be considered for future release.

Hello,
FYI we have this open ticket that should match your needs: VSTS-169
Don’t hesitate to vote for it, to give it a bit more traction!