-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
Hudson 1.376 on Windows 2003 Server with Tomcat 6.
If Ant build steps take properties with an %, the next char is enclosed in quotes in a 'fancy' way:
$ cmd.exe /C '"C:\ant\apache-ant-1.7.1\bin\ant.bat "-Dhudsonhome=%"H"UDSON_HOME%" && exit %%ERRORLEVEL%%"'
The property should be "-Dhudsonhome=%HUDSON_HOME%"
This worked with Hudson 1.365
- is related to
-
JENKINS-7657 Ant properties escaping breaks url parameter for jsunit build
-
- Resolved
-
-
JENKINS-7108 Running a parametrized build with Copy Artifact's Build Selector breaks Ant functionality on Windows
-
- Resolved
-
Sorry, but this is yet not fixed.
The command line for Ant on Windows expands "vBTAG=$BUILD_TAG"
to "-D""vBTAG=jenkins-Test Jenkins7442-6""". It should be "-DvBTAG=jenkins-Test Jenkins7442-6".
The windows cmd interprets the first as two arguments '-DvBTAG=jenkins-Test' and 'Jenkins7442-6"'. But this has to be one argument '-DvBTAG=jenkins-Test Jenkins7442-6'.
This happens regardless of using "vBTAG=$BUILD_TAG" or "vBTAG=%BUILD_TAG%".
Tested with Jenkins 1.403