简体   繁体   English

Sonarqube sonar.analysis.mode预览模式被忽略

[英]Sonarqube sonar.analysis.mode preview mode gets ignored

I have a sonarqube plugin that acts as a PostJob , that shall retrieve information about resolved/new issues. 我有一个充当PostJob的sonarqube插件, PostJob检索有关已解决/新问题的信息。

Therefore I try to run my analysis in preview mode, but when I run mvn compile package sonar:sonar -Dsonar.analysis.mode=preview the mode is issues (I use sonarqube 6.2). 因此,我尝试在预览模式下运行分析,但是当我运行mvn compile package sonar:sonar -Dsonar.analysis.mode=preview该模式就会出现issues (我使用的是sonarqube 6.2)。

When I change it to mvn compile package sonar:sonar -Dsonar.analysis.mode=issues , it is logically the same output and when I change it to mvn compile package sonar:sonar -Dsonar.analysis.mode=publish , the results get (as expected) published. 当我将其更改为mvn compile package sonar:sonar -Dsonar.analysis.mode=issues ,在逻辑上是相同的输出,当我将其更改为mvn compile package sonar:sonar -Dsonar.analysis.mode=publish ,结果得到(按预期)发布。

For my only preview seems not to be recognised. 对于我来说,唯一的preview似乎未被认可。

Any idea why ? 知道为什么吗?

Thanks 谢谢

尝试在项目配置->设置->问题报告中添加问题报告插件

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

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