简体   繁体   English

SonarQube和Jenkins

[英]SonarQube with Jenkins

I am trying to do sonar analysis using Jenkins. 我正在尝试使用Jenkins进行声纳分析。 I have the maven based project and using the sonar plugin jenkin's in the post build action. 我有基于maven的项目,并在后期构建操作中使用声纳插件jenkin's。 Even the build status is successful but there are few errors in the log like: 即使构建状态成功,但日志中的错误很少,如:

[ERROR] [17:30:53.200] Class not found: aQute.bnd.annotation.ConsumerType

These Jar's are 3rd party libraries and not sure why it is looking for its .class file. 这些Jar是第三方库,不知道它为什么要查找它的.class文件。

Any help is appreciated. 任何帮助表示赞赏。

Thanks, Sanjiv 谢谢,Sanjiv

This error is bad logging level set in the sonar java analyzer as this is rather a harmless warning. 此错误是声纳java分析器中设置的错误日志记录级别,因为这是一个无害的警告。 This was fixed in version 3.11 of the plugin : https://jira.sonarsource.com/browse/SONARJAVA-1519 这个在插件的3.11版本中得到修复: https//jira.sonarsource.com/browse/SONARJAVA-1519

What it reveals is that the bytecode of your external dependencies was not properly provided to the analyzer and that some rules may have more false negatives. 它揭示的是外部依赖关系的字节码未正确提供给分析器,并且某些规则可能有更多的错误否定。

You should provide the bytecode to the analysis to have more precise results using sonar.java.binaries and sonar.java.libraries properties. 您应该使用sonar.java.binariessonar.java.libraries属性为分析提供字节码,以获得更精确的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM