[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一致了,服务恢复正常。先记录下吧,具体还是搞透。
原文:http://blog.csdn.net/luyee2010/article/details/19992835