SonarScanner for MSBuild: 126.96.36.1992
TeamCity Enterprise 2018.1.5
MSBuild version: Microsoft Build Tools 2017
MSBuild ToolsVersion: 15.0
Build Agent runs on Windows Server 2016, version 10.0
We have a requirement to scan our Test automation code (C#) in the CI pipeline(TeamCity).
We have added Begin and End steps corresponding to “Sonarscanner for MSbuild”.
The Analysis is successful, project gets created in Sonarqube server. But the project is EMPTY with no validation errors highlighted.
On checking the build logs, our project is categorised as TEST (rightfully).
- Does Sonarscanner NOT publish the results to the Sonarserver for Test projects??
- If so, is there any workaround to instruct the scanner to read our project as “Product / Non-test”?
- Does the scan focus only on new code since the previous commit. The screenshot makes me think only new code is being subject to scan? Refer attachment
SonarServer screenshot and Logs with Verbose ON attached. (Have masked project related strings)buildlog.txt (106.7 KB)