- ALM used - Bitbucket Cloud
- CI system used - Bitbucket Cloud
- Languages of the repository - TS
- Error observed
We’ve just created a new organisation and some of the repositories are showing as linked / already imported. These do not show up in the projects view in sonar, so I cannot delete them. I suspect maybe someone historically has tried out sonar and not deleted their organisation.
Ultimately this means that the scans for these repositories fail to execute completely as they cannot upload results.
e.g.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.636s
INFO: Final Memory: 18M/67M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Could not find a default branch for project with key '######REDACTED########'. Make sure project exists.
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed. (exit code = 2)
- Potential workaround
No workaround available. Please can someone from support reach out via PM, this has been suggested by sales admin.