Sonar Cloud unable to analyze C and C++ files

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

We are using self hosted agent for the Sonar Analysis The source is a combination of C/C++/C#.
Sonar Cloud analysis gave us results when we excluded C/C++. But when we include all the code, it fails to do so.
It also failing for the task Publish result, whereas when it ran successfully, we were able to see it in the Sonar Cloud dashboard.

##[error]Cmd.exe exited with code ‘1’.
##[error]ERROR: SonarCloud server [https://sonarcloud.io] can not be reached

Hi,

Welcome to the community!

There’s a lot here. Let’s start with your 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