Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues retrieval for SonarQube Community Edition #227

Merged
merged 2 commits into from
Mar 28, 2019
Merged

Fix issues retrieval for SonarQube Community Edition #227

merged 2 commits into from
Mar 28, 2019

Conversation

alessiofachechi
Copy link
Contributor

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.

@gabrie-allaigre
Copy link
Owner

Hi,
Thanks.
But missing test for new method.
Sonarqube is asking to have an important code coverage for the new codes.

@alessiofachechi
Copy link
Contributor Author

Hi @gabrie-allaigre. Done! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants