简体   繁体   English

声纳,用于定期分析java maven项目

[英]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.

相关问题 声纳分析导致0个文件通过Jenkins在Maven项目上建立索引 - Sonar analysis causes 0 files indexed on a maven project through Jenkins 从命令行运行声纳分析时出现链接错误(maven 项目) - Linkage Error on running sonar analysis from command line (maven project) 如何从声纳分析中排除一些maven项目 - How to exclude some maven project from sonar analysis 使用Maven而不是SonarRunner从Jenkins调用Java和Java语言的Sonar分析 - calling Sonar analysis of Java and Javascript from Jenkins using Maven not SonarRunner 声纳maven分析 - 没有找到类 - Sonar maven analysis - class not found Sonar 4.2在同一个项目中分析Java和JavaScript - Sonar 4.2 analysis both Java and JavaScript in same project 在对本机项目运行声纳分析时,得到与sonar.java.binaries属性相关的错误 - On running sonar analysis on react-native project getting error related to sonar.java.binaries property 无法通过具有Jenkins构建和Maven项目的Sonar分析中的ClassLoader警告访问“ XXX / XXX / XXX”类 - Class 'XXX/XXX/XXX ' is not accessible through the ClassLoader warning in Sonar analysis with Jenkins build and maven project 用Jenkinsfile和maven启动对pullRequest代码的声纳分析 - launch a sonar analysis for the code of a pullRequest with Jenkinsfile and maven 当声纳分析绑定到多模块项目中的maven生命周期时,如何使SonarQube模块仅分析项目一次? - How to make SonarQube module analyze the project only once when sonar analysis is bound to maven lifecycle in a multi-module project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM