Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: core
Created: 17/Oct/12 10:28 AM
Description:

In the Sonar plugin we are using ArgumentListBuilder to create the command line to be executed for sonar analysis.
In case we add a parameter containing a & (for example -Dsonar.jdbc.url="" the execution fails on Windows because the parameter should be escaped.
Produced command line:

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

Expected:

c:\jenkins\tools\Sonar_Runner\Sonar_runner_2.0\bin\sonar-runner.bat -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url="" class="code-comment">//192.168.0.13:3306/sonar?useUnicode=true&characterEncoding=utf8" ******** ******** -Dsonar.host.url="" "-Dsonar.projectBaseDir=c:\jenkins\workspace\Freestyle avec SCM" -Dsonar.projectName=Branding -Dsonar.projectVersion=1.0 -Dsources=src/main/java -Dsonar.projectKey=sonar:branding
Environment: Windows
Project: Jenkins
Priority: Major Major
Reporter: henryju
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to