jenkins mysql插件_无法加载JDBC驱动程序类'com.mysql.jdbc.Driver'声纳插件jenkins

我正在与詹金斯使用声纳插件。它总是产生此错误。看来插件找不到JDBC驱动程序。我尝试根据我在google中找到的许多解决方案将JDBC驱动程序放在许多可能的位置,但是它仍然会产生此错误。

C:\Jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\sonar-runner-2.4

SonarQube Runner 2.4

Java 1.7.0_21 Oracle Corporation (32-bit)

Windows Server 2008 R2 6.1 x86

INFO: Runner configuration file: C:\Jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\sonar-runner-2.4\conf\sonar- runner.properties

INFO: Project configuration file: C:\Jenkins\jobs\check2\workspace\sonar- project.properties

INFO: SonarQube Server 4.3.2

10:18:10.612 INFO - Load batch settings

10:18:14.265 INFO - User cache: C:\.sonar\cache

10:18:14.321 INFO - Install plugins

10:18:18.941 INFO - Install JDBC driver

10:18:18.971 INFO - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

Total time: 22.884s

Final Memory: 3M/15M

INFO: ------------------------------------------------------------------------

ERROR: Error during Sonar runner execution

ERROR: Unable to execute Sonar

ERROR: Caused by: Fail to connect to database

ERROR: Caused by: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

ERROR: Caused by: com.mysql.jdbc.Driver

ERROR:

ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.

ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

Build step 'Invoke Standalone Sonar Analysis' marked build as failure

Finished: FAILURE

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值