gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Only scan commited files #171

Closed suanziliu closed 5 years ago

suanziliu commented 5 years ago

I'm using gitlab-ci pipeline, it will run a new docker container with following commands: mvn --batch-mode verify sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.only_issue_from_commit_file=true -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.host.url=xxx -Dsonar.test.inclusions="/src/test/java/**/*.java" -Dsonar.login=xxx

It becomes quite slow for my project, almost run for 20mins. I found that seems like it will scan all files instead of only the commited files.

Is there anything wrong with my configurations?

gabrie-allaigre commented 5 years ago

Hi, SonarQubeScanner scan all files, but Sonar-Gitlab-Plugin will only comment on commit files Have you a log ?

suanziliu commented 5 years ago

@gabrie-allaigre Thanks for your reply. Sorry that I it is my own problem about it. I will close this issue.