How to setup code variants in a project?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • 10.2.1
  • how is SonarQube deployed: zip, Docker, Helm
  • Helm
  • what are you trying to achieve
  • Use code variants to scan different platform builds
  • what have you tried so far to achieve this
  • Tried using the suggested setup for code variants but it did not work.

Is there a guidelines on how to setup code variants for SonarQube analysis of C/C++ on different platforms?
I need example of existing project or sample application setup. How to run the build with wrapper to generate the output and scan the output file of different platform.

Thank you in advance!
SP

Hi SP,

Unfortunately, per the docs

We do not support analyzing two variants requiring the code to be built on two different machines.

 
Ann

1 Like