We are trying to get the branch analysis working for our python projects going, but so far we only managed to do that for main branch analysis. Short lived analysis appears to be successful, but in the end analysis itself is basically empty - even if we change the analyzed code or try to introduce violations to test it. We use almost identical command and environment for branch analysis (with the addition of sonar.branch.target, of course).
We want to see the the analysis of the branch code - any potential new violations and code coverage regressions.
We are using:
- CI system used: Jenkins with Gerrit
- Scanner command used when applicable:
-Dsonar.branch.target=master -Dsonar.branch.name=672730-1 - we use prebuilt sonar-scanner docker image, hence -D.
- Languages of the repository: python
- Only if the SonarCloud project is public, the URL
https://sonarcloud.io/dashboard?id=discovery-analytics - main branch analysis (working as expected)
https://sonarcloud.io/dashboard?branch=672730-1&id=discovery-analytics - example short lived branch analysis (empty).
- Additional info:
Logs from correct, main branch build:
wikimedia-discovery-analytics-master-tox-docker-with-sonar #11 Console [Jenkins]
Logs from branch build:
wikimedia-discovery-analytics-patch-tox-docker-with-sonar #21 Console [Jenkins]
Docker with sonar scanner:
integration-config/dockerfiles/sonar-scanner at master · wikimedia/integration-config · GitHub
wikimedia-discovery-analytics/sonar-project.properties at master · wikimedia/wikimedia-discovery-analytics · GitHub