i've got a problem analysing a solution containing C# and Cpp Projects using Jenkins, SonarQube and cppcheck.. The analysis of the C# Code is working totaly fine, all results (issues, code coverage etc.) are shown in Sonar.
The analyses of the C++-code with cppcheck is working fine - the results are shown in Jenkins via the the Cppcheck plugin but no output in sonar (not even the quality profile for cpp gets activated in the sonar project - that worked automaticaly in a test project i set up for test purposes).
The console output in jenkins gives me the following warning for each .cpp, .h, .vcxproj file:
WARNING: File is not under the project directory and cannot currently be analysed by SonarQube. File [filepath]
The files are definitely located in the filepaths listed after these warnings and they are during the analysis (no copying/moving of files in the build jobs).
I already read this post and made sure that i've got no occurence of "Test" in my paths. I also made sure that the files i want to analyse are no shared files.
I hope anybody has some ideas what is getting wrong here - i haven't got a clue why sonar does not want to show my cppcheck-results.
My system:
- Jenkins v. 2.15
- Jenkins Cppcheck Plug-in v. 1.21
- SonarQube v. 5.6
- SonarQube C++ (Community) Plugin v. 0.9.6
- cppcheck v. 1.74 (cppcheck-results are written in XML version 2 format)
Best regards
Akki