Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.2, 1.2.1, 1.2
-
Fix Version/s: 1.3
-
Labels:None
-
Environment:Windows
-
Number of attachments :
Description
There is an issue when the Hudson Sonar-Plugin invokes maven to execute sonar on Windows.
When the JDBC URL contains the "&" character, e.g. -Dsonar.jdbc.url=mysql://xxxxx.com:3306/sonar?useUnicode=true&characterEncoding=utf8
the build fails.
You then get this error:
"You must specify at least one goal or lifecycle phase to perform build steps."
When the "&" character is ommited, it works. I think the whole parameter must be put in quotes for this to work, because else the "&" breaks the command line:
"-Dsonar.jdbc.url=mysql://xxxxx.com:3306/sonar?useUnicode=true&characterEncoding=utf8"
AFAIK this issue already occured in an older version of the plugin, was fixed, and now re-apperead in the current version 1.2.2 of the plugin.
Issue Links
- is related to
-
SONARJNKNS-17
Hudson Sonar plugin fails on Unix if jdbcUrl quoted
-
Hi Sebastian.
Actually this issues comes from Hudson core. Here is discussion in dev mailing list: http://n4.nabble.com/hudson-tasks-Maven-with-in-properties-fails-on-windows-tp1469973p1469973.html
Current workaround is not use "&characterEncoding=utf8" and configure this on mysql side.