Hello,
 
hope someone can give some hints to the following problem:
 
I have Jenkins Gerrit Trigger Plugin setup to listen to the Gerrit Event 
Stream. 
 
Jenkins: Jenkins ver. 1.509.4
Gerrit Trigger: 2.11.1
Running on Windows Server 2008 R2, 64 Bit 
 
 
Some parameter include the mail address of the commiting user. This 
address, in the build parameters looks like this:
 

GERRIT_CHANGE_OWNER:   \"Lastname, Firstname\" 
<firstname.lastn...@somedomain.tld>

 
So when it comes to call ANT it look like this:
 

$ cmd.exe /C '""c:\Program Files\Apache\apache-ant-1.9.2\bin\ant.bat" ... 
"-DGERRIT_PATCHSET_UPLOADER=\""Lastname, Firstname\"" 
<firstname.lastn...@somedomain.tdl>" ... "'

 
Here the relevant part (extra "" have been added):
 

"
-DGERRIT_PATCHSET_UPLOADER=
\"
"
*Lastname*, Firstname
\"
" 
<firstname.lastn...@somedomain.tdl>
"  

*Outcome*: quoting is broken, lastname (in bold letters) becomes the first 
non-paramter string in the ANT call and by this gets interpreted as build 
target.
 
So, would be great to get some answers/ideas!
 
Kind Regards,
Ralph

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to