No Analysis Found in the build

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Version - 10.3

We have a project with both c# and cpp. Two different pipeline are there. One for c# where MS Build is used and another for cpp where stand alone scanner is used.

For MS Build, everything is working fine and getting the report in Sonar dashboard but for the pipeline for cpp where stand alone scanner is being used, i am getting the correct report on sonar dashboard but not in pipeline. In publish quality gate, getting the below error.

No Analysis found in this build: Please check your build configuration.

Btw I am using the latest version of task in pipeline and no special characters are there.

Hi,

First, it should be possible to analyze all your code together. But let’s set that aside.

Regarding your missing Quality Gate information, can you please share your pipeline and your full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann