[英]sonar for regular analysis of java maven project
I am able to do my project analysis on sonar server using mvn sonar:sonar command in my Ubuntu environment. 我可以在Ubuntu环境中使用mvn sonar:sonar命令在声纳服务器上进行项目分析。 But now i want to do this on regular basis to see updated version of my project on sonar server. 但是现在我想定期执行此操作,以在声纳服务器上查看我的项目的更新版本。 Executing mvn sonar:sonar for my each commit is not a good idea. 对我的每次提交执行mvn sonar:sonar并不是一个好主意。 Is there any way to do this for regular basis? 有什么办法可以定期进行此操作吗?
You're probably looking for a Continuous Integration system. 您可能正在寻找持续集成系统。 For this you could install Jenkins and use the Sonar plugin to trigger analysis at your preferred rhythm. 为此,您可以安装Jenkins并使用Sonar插件以您喜欢的节奏触发分析。 This is probably the most popular way to trigger sonar analysis. 这可能是触发声纳分析的最流行方法。
On the other hand, periodic jobs can be triggered on Ubuntu using crontab . 另一方面,可以使用crontab在Ubuntu上触发定期作业。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.