ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
Languages of the repository
- sonar-cloud.properties located in root of repository (censored keys)
sonar.host.url=https://sonarcloud.io sonar.organization= sonar.projectKey= sonar.projectName=Innlandet sonar.projectVersion=latest sonar.sources=src/main/java sonar.java.binaries=out sonar.language=java sonar.sourceEncoding=UTF-8
- Steps to reproduce
Using bitbucket piplines, run the pipeline as normal. The tests will pass, but on the sonarcloud website it will say “The “release-developer” branch has no lines of code.”
- Potential workaround
This has been working perfectly for 4 months now, but today it suddenly broke. All the keys and properties are the same and there has been no updates, on my end at least. The only weird thing i have noticed is that in the logs it will say “INFO: 0 files indexed”, and on the website it will say “The “release-developer” branch has no lines of code.”
I checked a previous working pipeline on a branch which has no new code which said “INFO: 15 files indexed”. I ran this branch again and it now says “0 files” and will get the same result as mentioned.
I am also using the free subscription with a public repository. Sonarcloud will recognize the different analyzed branches as usual.