Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
Windows
Description
Some parameters are quoted with unix-stylq quotes, even on Windows.
e.g.
In this case both Gerrit and Jenkins run on Windows
I noticed https://issues.jenkins-ci.org/browse/JENKINS-5552 which seems to have a similar problem, but blame it on the BS-Build plugin.
When I look at the properties for the failed build they containe backslashes
before quotes, which seems wierd. I don't think this is the right place for quoting. Shouldn't the part that passes the propertie to the command line be the one that understands what and how to quote things.
\"My Name <myname@example.com\"
On windows this should be something like this.
"""My Name <myname@example.com"""
Is all of the problem in Jenkins, or does Gerrit have any part of it?
Attachments
Issue Links
- relates to
-
JENKINS-20808 Escaping of single quotes in commit message fails
-
- Open
-
I'm having this issue as well on windows:
[JOBNAME] $ cmd.exe /C '"c:\jenkins\tools\Ant\Ant1.8.4\bin\ant.bat "-DGERRIT_PATCHSET_UPLOADER=\""FIRSTNAME LASTNAME\"" <emailaddy@domain.com>" -DGERRIT_CHANGE_URL=http://gerrit.domain.net/186523 -DGERRIT_CHANGE_ID=I174269fea6e64daf2b8752b15e7831dd824541c6 -DGERRIT_CHANGE_NUMBER=186523 "-DGERRIT_PATCHSET_UPLOADER_NAME=FIRSTNAME LASTNAME" "-DGERRIT_CHANGE_SUBJECT=This is the subject of my change" -DGERRIT_PATCHSET_UPLOADER_EMAIL=emailaddy@domain.com -DGERRIT_EVENT_HASH=621616435 -DGERRIT_BRANCH=BRANCHNAME -DGERRIT_REFSPEC=refs/changes/23/186523/1 -DGERRIT_PATCHSET_NUMBER=1 "-DGERRIT_CHANGE_OWNER_NAME=FIRSTNAME LASTNAME" -DGERRIT_PATCHSET_REVISION=d4b5a7e04cf927a7ffbcde139685b95ec579e08c -DGERRIT_PROJECT=git/project "-DGERRIT_CHANGE_OWNER=\""FIRSTNAME LASTNAME\"" <emailaddy@domain.com>" -DGERRIT_CHANGE_OWNER_EMAIL=emailaddy@domain.com clean dist && exit %%ERRORLEVEL%%"'
Buildfile: c:\jenkins\workspace\JOBNAME\build.xml
BUILD FAILED
Target "LASTNAME" <emailaddy@domain.com>" does not exist in the project "PROJECTNAME".