SonarQube Jenkins
  1. SonarQube Jenkins
  2. SONARJNKNS-29

Command line parameters ignored on Windows when an argument contains &

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:
      Sonar Runner + Windows slave
    • Number of attachments :
      0

      Description

      When running a sonar analysis on a Windows slave the command line looks like:

      c:\jenkins\tools\Sonar_Runner\Sonar_runner_2.0\bin\sonar-runner.bat -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://192.168.0.13:3306/sonar?useUnicode=true&characterEncoding=utf8 ******** ******** -Dsonar.host.url=http://192.168.0.13:9000 "-Dsonar.projectBaseDir=c:\jenkins\workspace\Freestyle avec SCM" -Dsonar.projectName=Branding -Dsonar.projectVersion=1.0 -Dsources=src/main/java -Dsonar.projectKey=sonar:branding
      

      But because of the & in the mysql jdbc URL it seems following parameters are ignored (in particular sonar.host.url).

      Problem reported here: http://sonar.15.n6.nabble.com/sonar-dev-VOTE-Jenkins-Hudson-Sonar-Plugin-2-0-tp5004051p5004071.html

        Issue Links

          Activity

          Hide
          Julien HENRY added a comment -

          I have reported the issue to Jenkins.

          Show
          Julien HENRY added a comment - I have reported the issue to Jenkins.
          Hide
          Julien HENRY added a comment -

          Waiting for a fix on Jenkins side we will use a workaround (like what was already done for the post job sonar action). Plugin will add the quote for arguments containing a &.

          Show
          Julien HENRY added a comment - Waiting for a fix on Jenkins side we will use a workaround (like what was already done for the post job sonar action). Plugin will add the quote for arguments containing a &.

            People

            • Assignee:
              Julien HENRY
              Reporter:
              Julien HENRY
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: