sonar+github integration

核能气质少年 提交于 2019-12-10 14:24:44

问题


I want to enable sonar with git but is it neccesary that first pull the project from git repository using hudson or something else and then sonar will analyse the code periodically on hudson .am I right means my steps :

1.Pull project from git using hudson.

2.Sonar on hudson will analyse the code and send the updates.?

or directly we can use git+sonar how it works ,can anybody guide me to get it work.


回答1:


Yes, you need first to pull your project from GitHub, and then launch a Sonar analysis on your local copy (Sonar needs the file to exist on the file system to be able to analyse them).

So you can pull your project manually or obvioulsy using a CI server like Jenkins/Hudson.




回答2:


The good news, yesterday (2015-07-08) SonarQube has launched a Github Pluging, every time a pull request is submitted, the CI system launches a SonarQube preview analysis.

Reference: http://www.sonarqube.org/github-pull-request-analysis-helps-fix-the-leak/



来源:https://stackoverflow.com/questions/14559197/sonargithub-integration

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