Jenkins Sonar scanner of C project only showing "0 compilation units analyzed" for sonarcfamily

Hi Massimo,

I’ll need to redact some items from the log, but for the time being, let me outline our Jenkins build setup.

  1. Our source code is in a git repo, and we only build off of our master branch.

  2. We run Code Composer Studio (Eclipse based) to clean the project directory

  3. We use the following as an ‘Execute Windows batch command’ to run the build wrapper
    ::This is modified from src\build.bat for use by sonar analysis build wrapper
    D:\sonarqube-7.5\build-wrapper-win-x86\build-wrapper-win-x86\build-wrapper-win-x86-64.exe --out-dir D:\Jenkins\workspace\redacted_project\sonar_build_report C:\ti\ccsv8\eclipse\eclipsec.exe -noSplash -data workspace_redacted -application com.ti.ccstudio.apps.projectBuild -ccs.workspace

  4. We ‘Execute SonarQube Scanner’ with analysis properties as follows:

sonar.projectKey=redacted_SonarQube_project
sonar.sources=D:/Jenkins/workspace/redacted_project/source, D:/Jenkins/workspace/redacted_project/tests
sonar.cfamily.build-wrapper-output=sonar_build_report
sonar.sourceEncoding=UTF-8

Also I include the -X additional argument to get verbose logs

  1. After this is just clean-up

I’ll reply soon with a redacted log.