构建 Sonar 稳定性插件不会从 Jenkins / Hudson CI 服务器收集数据
我想监控持续集成构建的构建稳定性。为此,我使用了 Sonar 的 Build Stability Plugin,但是不幸的是,我无法使其正常工作。
在构建结束时(基本上是 mvn clean install sonar:sonar
),日志显示以下信息:
[INFO] Sensor org.sonar.plugins.buildstability.BuildStabilitySensor@13fc816...
[INFO] CI URL: http://localhost:8080/jenkins
[WARN] Unknown CiManagement system or incorrect URL: http://localhost:8080/jenkins
[INFO] Sensor org.sonar.plugins.buildstability.BuildStabilitySensor@13fc816 done: 47 ms
在 Sonar 上,小部件不显示任何数据...
当然,URL 是正确,并且 Jenkins 和 Sonar 都在同一台机器上正确运行。我错过了什么吗?
我目前正在使用 Jenkins 1.410、Sonar 2.7 和插件 1.1.2,但我也尝试使用较旧的安装(Hudson 1.347 和 Sonar 2.1.2)。
I want to monitor the build stability of my continuous integration builds. To do that, I am using the Build Stability Plugin for Sonar, but unfortunately, I was not able to make it work correctly.
At the end of the build (basically a mvn clean install sonar:sonar
), the logs display the following information:
[INFO] Sensor org.sonar.plugins.buildstability.BuildStabilitySensor@13fc816...
[INFO] CI URL: http://localhost:8080/jenkins
[WARN] Unknown CiManagement system or incorrect URL: http://localhost:8080/jenkins
[INFO] Sensor org.sonar.plugins.buildstability.BuildStabilitySensor@13fc816 done: 47 ms
On Sonar, the widget does not display any data...
Of course, the URL is correct, and both Jenkins and Sonar are running correctly, and on the same machine. Did I miss something?
I am currently working with Jenkins 1.410, Sonar 2.7 and plugin 1.1.2, but I also tried with an older installation (Hudson 1.347 and Sonar 2.1.2).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于找到了问题所在(感谢代码浏览;))。
我将构建的 URL 设置为
http://localhost:8080/jenkins
,但正确的 URL 为Hudson:http://localhost:8080/jenkins/job/MyJobName
代码>.但不幸的是,这个插件不符合我的要求,但这是另一个问题!
I finally found the problem (thanks the code browsing ;) ).
I set the URL for my build to
http://localhost:8080/jenkins
, but the correct URL isHudson:http://localhost:8080/jenkins/job/MyJobName
.But unfortunately, this plugin does not meet my requirements, but this is another problem!