C++ Sonarqube Analysis

Hi,

I am currently working on c++ SonarQube analysis.SonrQube analysis works fine for c# elements but not showing any results in the dashboard for c++ elements.

Can anyone help me with the documentation for c++ SonarQube analysis.I want to integrate it with Jenkins.

Thanks

Hi @saisirisha05,

You haven’t mentioned which version of SonarQube you’re using, so let me point you to the most recent documentation and you can navigate from there. All the documentation for C++ analysis is here: https://docs.sonarqube.org/latest/analysis/languages/cfamily/

In particular, if you’re analysing a project that combines C# and C++, you’ll want this reference.

Regards,

Cameron.

Hi @Cameron,

Thanks for your reply.I am using 7.9.2.30863 version of SonarQube. As per the documentation provided in https://docs.sonarqube.org/latest/analysis/languages/cfamily/ ,I am unable to download build-wrapper-win-x86.zip from {SonarQube URL}/static/cpp/build-wrapper-win-x86.zip .I am getting the error attached in the screenshot.

I managed to get the build-wrapper-win-x86.zip from https://github.com/niksoc/sonarqube-plagiarism/blob/2c53ec89c3063647753945c96ed9969ead3b2d05/sonarqube/server/sonar-docs/src/pages/analysis/languages/cfamily.md .

Next step is to integrate c++ SonarQube analysis with Jenkins.Is there any documentation for the same?

Thanks,
Saisirisha

Hi @saisirisha05,

It’s unusual that the Build Wrapper isn’t downloadable from your own SonarQube server if you have the C Family plugin installed. Since C++ is a commercial language, can I just check: are you using one of the SonarQube commercial editions (Developer or Enterprise)?

Regards,

Cameron.

Hi @Cameron,

I am using community edition.I will be updating it to commercial edition.Thanks for the help.

Thanks,
Saisirisha

Hi @saisirisha05,

That explains the issue: the C Family plugin (and therefore Build Wrapper) are only available on the commercial editions so you’ll need to upgrade before you start experimenting with C++ analysis.

The references I supplied earlier should help you integrate into your normal Jenkins builds.

Regards,

Cameron.