Hi!
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:
When we click into the project, the overview shows a successful scan result:
The analysis also seems to be producing results for the main branch:
Can anyone help us determine why we’re not seeing results for the main branch in the project summary? Thanks!
-Shane
- ALM/CI used: Azure DevOps
- Scanner command used (on main branch build):
- task: SonarCloudPrepare@1
displayName: 'Prepare SonarCloud Analysis'
inputs:
SonarCloud: 'SonarCloud'
organization: '<sonar org>'
scannerMode: 'MSBuild'
projectKey: '<sonar key>'
projectName: '<proj name>'
extraProperties: |
sonar.verbose=true
sonar.modules=services
services.sonar.projectName=<proj name>
services.sonar.projectBaseDir=$(Build.SourcesDirectory)/$(CheckoutFolder)/Src
services.sonar.sources=$(Build.SourcesDirectory)/$(CheckoutFolder)/Src/<proj>/Services/<proj>.Services,$(Build.SourcesDirectory)/$(CheckoutFolder)/Src/<proj>Common/<proj>.Infrastructure,$(Build.SourcesDirectory)/$(CheckoutFolder)/Src/<proj>Business/BusinessLogic/<proj>.Domain
services.sonar.tests=$(Build.SourcesDirectory)/$(CheckoutFolder)/Src/UnitTests/<proj>Business/BusinessLogic/<proj>.Domain.Tests
sonar.branch.name=$(Build.SourceBranchName)
sonar.cs.vstest.reportsPaths=$(Net6TestResults)/**/*.trx
sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)/**/*.opencover.xml
sonar.exclusions=**/bin/**,**/obj/**,$(Build.SourcesDirectory)/$(CheckoutFolder)/Src/<proj>Business/BusinessLogic/<proj>.Models/**,**/Models/**
sonar.cs.analyzeGeneratedCode=true
sonar.cs.ignoreHeaderComments=true
- C#/dotNet