问题
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