We have a number of projects that are being scanned by SonarCloud but are seeing the issue described in the title for one project and I’m hoping to get some help finding a fix. To summarize:
On the ‘Projects’ list, this project does not display the main branch scan summary that shows for our other projects:
Would it be possible to schedule some time for a screen sharing session to have a look? We’re building using an Azure DevOps task on an auto-provisioned agent but I believe the logs I attached earlier should include the verbose output from msbuild. Thanks!
I am sorry to inform you that we cannot have a screen-sharing session.
I double-checked the logs that you have sent and they don’t contain the verbose-level build logs.
You have provided the logs of the Prepare Analysis Configuration and the Run Code Analysis steps.
As I mentioned above what we need to continue with the investigation is the detailed build logs.
I think there’s a disconnect here. We’re building and scanning from Azure DevOps pipelines so it wouldn’t really make sense to see sonar logs on the build. We’re building using the ‘VsBuild@1’ Azure DevOps task (which essentially just runs msbuild.exe) and targeting our solution file. The sonar prepare/scan tasks are run separately within the pipeline (prepare is run before the build, scan is run after). Thanks,
The prepare task injects our C# analyzers into the build. And the analyzers are executed as part of the build of your project. This means I should see in the verbose level logs of the build that our analyzers are injected, and yet I don’t see this. This is why I was interested in where and how you exactly invoke each task.
We are using Azure DevOps so the scripts are invoked through powershell runner tasks (documentation found here) using the parameters in our pipeline yaml files found below. Let me know if anything jumps out from this, or if you need additional information