Hello.
I successfully integrated SonarCloud into our instance of Azure DevOps and I followed the steps on my dashboard to integrate the SonarCloud steps into my build pipeline. I am currently working out of a ‘short-lived branch’ to test these changes in my YAML file before I merge them into main. I have run my build a number of times but there is no data in SonarCloud at all. I am not real sure what the problem is, the logs all say that everything is succeeding but it doesn’t look like data is making its way up. This is a C# project that I am trying to build.
I set sonar.verbose = true and in my Analyze step I can see that a report was generated and the report was POSTed to the SonarCloud API. Happy to provide additional details.
The relevant sections of my YAML file are below. Any help you can provide would be greatly appreciated!
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'Sonar Cloud - sms'
organization: '[my org]'
scannerMode: 'MSBuild'
projectKey: '[my key]'
projectName: '[my project]'
- task: VSBuild@1
displayName: 'Build WebV2'
inputs:
solution: $(WebV2Project)
msbuildArgs: $(MsBuildArgs)
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
maximumCpuCount: true
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'