-
SonarQube Enterprise Edition v9.9.7 | Languages: C, C++ | Gitlab
-
I’m using Code Composer v9.1 for TI C6000 on windows. In this chip i have 8 different core so i have 8 different project in a gitlab repository. For each project i want to use sonarqube but i can not figure out what is this build command for sonar wrapper. Should I give the main.cpp of each core to the sonar.sources section in sonar-project.properties? I didn’t understand how to do that part either. Since this server is within the company, I also took care of the company’s own settings. Actually, I just couldn’t decide what to do for the C6000. I also browsed the forum but couldn’t reach any concrete conclusions.
-
my gitlab-ci runs a some tests and builds each project, after my pushs. then i try to use sonarqube. but i traped in wrapper step. Here my gitlab-ci.yml
build-with-wrapper: stage: sonar-build tags: - build-win script: - curl -sSLo build-wrapper-win-x86.zip “%SONAR_HOST_URL%/static/cpp/build-wrapper-win-x86.zip” - powershell -Command “Expand-Archive -Path ‘build-wrapper-win-x86.zip’ -DestinationPath ‘build-wrapper’” - .\build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe --out-dir bw-output D:\ti91\ccs\utils\bin\gmake artifacts: paths: - bw-output expire_in: 2 hours #analyze code analyze-repo: stage: sonar-analyze tags: - build-win dependencies: - build-with-wrapper #first finish build script: - D:\SonarScanner\bin%SONAR_SCANNER% -Dsonar.login=%SONAR_TOKEN% -Dsonar.host.url=%SONAR_HOST_URL% -Dsonar.cfamily.build-wrapper-output=bw-output
it gives an error at build-with-wrapper stage:
$ curl -sSLo build-wrapper-win-x86.zip “%SONAR_HOST_URL%/static/cpp/build-wrapper-win-x86.zip”
$ powershell -Command “Expand-Archive -Path ‘build-wrapper-win-x86.zip’ -DestinationPath ‘build-wrapper’”
$ .\build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe --out-dir bw-output D:\apps\ti91\ccs\utils\bin\gmake
gmake: *** No targets specified and no makefile found. Stop.
ERROR: Job failed: exit status 2
If there is any missing information you are requesting, I can share it with you if it is not confidential within the company.
Best regards