Skip to content

No issues detected in C# analysis #152

Answered by calisto-le
SR4ven asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was resolved. There were two misconfigurations:

First was to get the file path of the SonarQube to match the folder structure of the actual git repo. Providing the full qualified path name of the Visual Studio Solution to msbuild resulted in correct SonarQube paths.

Second issue that got the plugin working for the .NET analysis was using a full git clone instead of shallow clone.

The working build script looks like:
MSBuild.exe %~dp0test_project.sln -t:rebuild

Also remember to set the MSBuild SonarScanner property for the projectBaseDir to project root. This is the Jenkins Workspace in this case.

/d:sonar.projectBaseDir=%WORKSPACE%

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SR4ven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #151 on December 07, 2023 08:16.