Configuration Jenkins/Sonar-服务器重新启动后出现新错误

Configuration Jenkins/Sonar-服务器重新启动后出现新错误,configuration,jenkins,sonarqube,Configuration,Jenkins,Sonarqube,关于声纳/詹金斯集成的快速问题 首先,一点背景知识——我们正在实施构建管道插件,昨晚我们遇到了一个问题,我们的一个管道作业失去了它的历史。这把我们所有的遗嘱执行人都干掉了(甚至连奴隶也干掉了)。我试着重新命名,我试着弹跳,但没有成功。最后,我把大师带下来,清除了从临时工到Tomcat工作的一切,然后把它带回来。这解决了我的遗嘱执行人的问题 所以今天早上我运行了一个构建,运行声纳作为构建后的一个步骤。现在我看到了这个错误: [ERROR] Failed to execute goal org.co

关于声纳/詹金斯集成的快速问题

首先,一点背景知识——我们正在实施构建管道插件,昨晚我们遇到了一个问题,我们的一个管道作业失去了它的历史。这把我们所有的遗嘱执行人都干掉了(甚至连奴隶也干掉了)。我试着重新命名,我试着弹跳,但没有成功。最后,我把大师带下来,清除了从临时工到Tomcat工作的一切,然后把它带回来。这解决了我的遗嘱执行人的问题

所以今天早上我运行了一个构建,运行声纳作为构建后的一个步骤。现在我看到了这个错误:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project VendorProduct: Can not execute Sonar: The current batch process and the configured remote server do not share the same DB configuration.
[ERROR] - Batch side: jdbc:oracle:thin:@dansrzl105si.wellsfargo.com:3203/LBLDFRI1 (QMTDO / *****)
[ERROR] - Server side: check the configuration at http://lpwva3279:9000/sonar/system
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project VendorProduct: Can not execute Sonar
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118)
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: org.sonar.core.persistence.BadDatabaseVersion: The current batch process and the configured remote server do not share the same DB configuration.
    - Batch side: jdbc:oracle:thin:@dansrzl105si.wellsfargo.com:3203/LBLDFRI1 (QMTDO / *****)
    - Server side: check the configuration at http://lpwva3279:9000/sonar/system

[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
我已经根据sonar配置文件验证了配置,删除并重新创建了后期构建步骤,在Jenkins配置页面上删除并重新创建了sonar实例。我在这里不知所措。有人有什么建议吗


谢谢

当Sonar批次连接到与Sonar Web服务器上配置的数据库不同的数据库时,会打印此消息


在您的情况下,如果您转到
http://lpwva3279:9000/sonar/system
,您可能会发现数据库配置设置与jdbc:oracle:thin:@dansrzl105si.wellsfargo.com:3203/LBLDFRI1(QMTDO/****)不同。。然后,您应该转到Jenkins设置并更新与Sonar相关的信息,以匹配Sonar Web服务器上找到的信息。

当Sonar批连接到与Sonar Web服务器上配置的数据库不同的数据库时,会打印此消息

在您的情况下,如果您转到
http://lpwva3279:9000/sonar/system
,您可能会发现数据库配置设置与jdbc:oracle:thin:@dansrzl105si.wellsfargo.com:3203/LBLDFRI1(QMTDO/****)不同。。然后,您应该转到Jenkins设置并更新与Sonar相关的信息,以匹配Sonar Web服务器上找到的信息。

转到:

将值“数据库URL”复制到Jenkins配置(“数据库URL”)

将值“数据库登录”复制到Jenkins配置(“数据库登录”)

将值“数据库驱动程序”复制到Jenkins配置(“数据库驱动程序”)

并转到SONAR\u HOME/conf/SONAR。属性:

将值“数据库密码”复制到Jenkins配置(“数据库密码”)

转到:

将值“数据库URL”复制到Jenkins配置(“数据库URL”)

将值“数据库登录”复制到Jenkins配置(“数据库登录”)

将值“数据库驱动程序”复制到Jenkins配置(“数据库驱动程序”)

并转到SONAR\u HOME/conf/SONAR。属性:

将值“数据库密码”复制到Jenkins配置(“数据库密码”)