Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: ant-plugin
-
Labels:None
-
Environment:Hudson 1.376 on Windows 2003 Server with Tomcat 6.
Description
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
Issue Links
- 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
-
I can confirm this. I've just updated from 376 and its broken %BUILD_ID% and %BUILD_NUMBER%
ant runs as
cmd.exe /C '"ant.bat -file build.xml "-DBUILD_ID=%"B"UILD_ID%" "-DBUILD_NUMBER=%"B"UILD_NUMBER%" release && exit %%ERRORLEVEL%%"'