This pull request fixes the issue when using the Community Edition of SonarQube.
In this case the SonarFacade.getNewIssues() method tries to retrieve issues from the SonarQube branch defined through the sonar.gitlab.ref_name property, which is usually equal to the GitLab pipeline $CI_COMMIT_REF_NAME variable.
Branch Analysis is though part of the Developer Edition (and above), so we need to handle that specific situation in order to avoid SonarQube / GitLab mismatches.
This pull request fixes the issue when using the Community Edition of SonarQube.
In this case the
SonarFacade.getNewIssues()
method tries to retrieve issues from the SonarQube branch defined through thesonar.gitlab.ref_name
property, which is usually equal to the GitLab pipeline$CI_COMMIT_REF_NAME
variable.Branch Analysis is though part of the Developer Edition (and above), so we need to handle that specific situation in order to avoid SonarQube / GitLab mismatches.