Can SonarQube fetch Data from a Git Repository?

a 夏天 提交于 2019-12-08 16:01:29

问题


I have a SonarQube Instance running on my Debian 7 machine, and now I want that every time I push something in my git repository (BitBucket), the SonarQube Server automatically starts the scan from my repo.

Is this possible? And how?

Thanks


回答1:


No, this is not possible. This is not the responsibility of SonarQube to handle this part. Instead, you should configure a CI server (like Jenkins) that will do this job: check if your repo has been updated, and if so, trigger a SonarQube analysis.

You can read the following answer that is not exactly related to your question but that describes what you should do: Do I need sonar and sonar runner for Jenkins?



来源:https://stackoverflow.com/questions/28874890/can-sonarqube-fetch-data-from-a-git-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!