首页 > 其他 > 详细

sonar

时间:2014-02-27 17:09:12      阅读:546      评论:0      收藏:0      [点我收藏+]
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.1:sonar (default-cli) on project video.parent: Can not execute SonarQube analysis: The current batch process and the configured remote server do not share the same DB configuration.
[ERROR] - Batch side: jdbc:mysql://ip:port/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true (user / *****)
[ERROR] - Server side: check the configuration at http://ip:port/sonar/system
[ERROR] -> [Help 1]

很奇怪,看了下sonar跟jenkins的配置DB这个URL是一致的,后面看到有说其实不是比较这个URL,而是ID,
如是看了下:
①http://server:port/sonar/api/server
②以及sonar数据库 
select * from properties where prop_key = ‘sonar.core.id‘

发现这两个ID是不一致的,这个不知道为什么不一致,因为只有一个sonar实例啊!后面重启了sonar,不行
再后面重启Jenkins与sonar后两个ID一致了,服务恢复正常。先记录下吧,具体还是搞透。

sonar,布布扣,bubuko.com

sonar

原文:http://blog.csdn.net/luyee2010/article/details/19992835

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!