SonarQube Jenkins
  1. SonarQube Jenkins
  2. SONARJNKNS-40

Hudson-Sonar plugin v1.8 fails to execute the sonar-runner task

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Labels:
      None
    • Environment:
      Environment: Windows Server 2003

      Hudson - 2.2
      Sonar - 2.13
      Hudson-Sonar Plugin - 1.8 fails, 1.72 works
    • Number of attachments :
      0

      Description

      I am using the Standalone Sonar analysis by adding it as a build step and it was working perfectly with plugin v 1.7.2. After updating to 1.8 the Sonar analysis has stopped working. The following message is displayed whenever the build task gets to Sonar.

      [workspace] $ java -cp E:\HudsonHome\jobs\projectname\workspace\sonar-runner1567324001315970448.jar;E:\HudsonHome\jobs\projectname\workspace\sonar-batch-bootstrapper1989682622024136145.jar org.sonar.runner.Main -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8 ******** ******** -Dsonar.host.url=http://localhost:8080/sonar -Dsonar.projectName="PROJECT_NAME" -Dsonar.projectVersion=1.0 -Dsources=src -Dsonar.projectKey=sdk
      
      Unrecognized option: -Dsonar.jdbc.driver=com.mysql.jdbc.Driver
      
      usage: sonar-runner [options]
      
      Options:
       -h,--help             Display help information
       -X,--debug            Produce execution debug output
       -D,--define <arg>     Define property
      

      If I now downgrade the plugin to 1.7.2 and run the build the analysis is done perfectly.

        Activity

        Hide
        Eric Hartmann added a comment -

        Kindly tested by Fabrice

        Show
        Eric Hartmann added a comment - Kindly tested by Fabrice

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Eric Hartmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: