SonarQube可以从Git仓库获取数据吗? [英] Can SonarQube fetch Data from a Git Repository?

查看:712
本文介绍了SonarQube可以从Git仓库获取数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Debian 7机器上运行着一个SonarQube实例,现在我希望每次在我的git存储库(BitBucket)中推送某些东西时,SonarQube服务器会自动从我的repo中启动扫描。



这可能吗?如何?



谢谢

解决方案

不,这是不可能的。这不是SonarQube处理这部分的责任。相反,你应该配置一个能完成这项工作的CI服务器(比如詹金斯):检查你的repo是否已经更新,如果是,触发一次SonarQube分析。



您可以阅读以下与您的问题并不完全相关的答案,但它描述了您应该执行的操作:我需要声纳和sonar runner为Jenkins吗?


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

解决方案

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?

这篇关于SonarQube可以从Git仓库获取数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆