Hi Massimo,
I’ll need to redact some items from the log, but for the time being, let me outline our Jenkins build setup.
-
Our source code is in a git repo, and we only build off of our master branch.
-
We run Code Composer Studio (Eclipse based) to clean the project directory
-
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 -
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
- After this is just clean-up
I’ll reply soon with a redacted log.