Hi SonarCloud Support,
We have a SonarCloud organization MyOrg bound to Azure DevOps.
The repository my-orderservice was renamed after being imported into SonarCloud.
Since then:
The project shows “Already imported”
The project is not analyzed yet
Analysis fails with “Could not find a default branch”
The project cannot be unbound or re-imported via the UI
Could you please remove the stale Azure DevOps repository binding for this repo so we can re-import it cleanly?
ganncamp
(G Ann Campbell)
February 11, 2026, 3:24pm
4
Hi,
Welcome to the community!
What branch are you trying to analyze? And is sonar.branch.name being passed in the analysis parameters?
Thx,
Ann
The default branch in sonarcloud i can see is master and there is no sonar.branch.name being passed in the analysis parameter
here are my ci steps
- task: SonarCloudPrepare@3
continueOnError: true
inputs:
SonarCloud: 'MY-Serviceconnection'
organization: 'myorg'
scannerMode: dotnet
projectKey: 'myorg_$(Build.Repository.Name)'
projectName: '$(Build.Repository.Name)'
extraProperties: |
sonar.verbose=true
sonar.dotnet.excludeTestProjects=false
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/\*\*/TestResults/\*.trx
sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)/\*\*/coverage.opencover.xml
sonar.cs.cobertura.reportsPaths=$(Agent.TempDirectory)/\*\*/coverage.cobertura.xml
sonar.cs.vscoveragexml.reportsPaths=$(Agent.TempDirectory)/\*\*/coverage.xml
- task: DotNetCoreCLI@2
displayName: 'Build solution'
inputs:
command: build
projects: '$(buildFilePattern)'
arguments: '$(buildArguments) /p:RunCodeAnalysis=false /p:Configuration=Release'
- task: DotNetCoreCLI@2
displayName: 'Run unit tests'
continueOnError: true
enabled: ${{ parameters.runTestSuite }}
inputs:
command: 'test'
publishTestResults: true
projects: '\*\*/UnitTests.csproj'
arguments: >
--no-build
--configuration Release
--collect "XPlat Code Coverage"
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format="opencover,cobertura"
resultsDirectory: '$(Agent.TempDirectory)/testresults'
- task: SonarCloudAnalyze@3
continueOnError: true
inputs:
jdkversion: 'JAVA_HOME_17_X64'
ganncamp
(G Ann Campbell)
February 12, 2026, 4:59pm
7
Hi,
Just to make sure, master is what’s being checked out, right? Because if you’re checking out some other branch, that branch’s name will automatically be passed by the integration even if you haven’t specified it manually.
Thx,
Ann
Hi @Project_Final
What is the organization key for your project? Do you prefer to share it in a PM?