How to get code coverage shown in SonarQube after Bamboo CI job

(Bamboo 6.10.4 - SonarQube version: 7.9.1)


I hope you are well and safe.

I need assistance on the following issue please.
I am working on a C++ code and I have a Bamboo plan with a job that basically:

1- Checks out the Git repo in Bitbucket
2- Creates the SonarQube project properties file
3- Scans C++ code (Sonar Scanner plugin)

And I would like to have code coverage in SonarQube.
I have 2 gcov files in a gcov directory in the project root.
I included sonar.cfamily.gcov.reportsPath=./gcov/ in my files.
But unfortunately I still get 0% code coverage in SonarQube.

Your help, guidance and suggestions on this matter would be highly appreciated!


If you’re able to analyze using only the steps you described, then you’re not using the C++ analysis that comes with Developer Edition($). Thus, you’ll need to contact the folks who provided the plugin you’re using for help.