I’m using the gradle sonarqube plugin (2.6.2) to analyse a Java project, using CircleCI.
It’s analysing the master branch fine, but when I use ‘-Dsonar.branch.name’ to analyse a feature branch the analysis runs through and the branch is created within sonarcloud, but the code is empty and there are no issues listed.
Am I doing something wrong here?
- run: name: SonarQube analysis command: | gradle sonarqube \ -Dsonar.login=$SONAR_LOGIN\ -Dsonar.branch.name=$CIRCLE_BRANCH
Note that the other sonar properties (organisation, project, etc) are set from within the gradle build, and it’s creating the branch in sonar in the correct project so the connection to sonar seems to be working.