-
Bug
-
Resolution: Fixed
-
Major
-
None
-
windows server, hudson 1.351, standalone container
I just updated to 1.351 today and noticed that a problem cropped up with a job config that was working under 1.348 this morning.
I have a freestyle job with 2 ant tasks with one task that references another "enterprise" job using this type of config.
Ant version: Ant 1.7.1
build file: ${WORKSPACE}/../../Enterprise/workspace/build/entbuild.xml
targets: modifyenttarget
Ant version: Ant 1.6.5
build file: <-- normal default here, I actually didn't override.
targets: clean buildall
What I have found is it does not like the "../.." part of the path and truncates the path. So I switched it to using "..\.." in its place. (We are running on Windows with standalone container) That relative path worked.
I have since rolled back to 1.348 and it is again working with the original relative path syntax.
It may be related to this bug: http://issues.jenkins-ci.org/browse/JENKINS-3903
It is somewhat difficult to get the info out due to it being on a restricted server but here is some raw output. I did have to munge some of the non-problem info to protect the innocent.
---------------
Messed up path on the "antfile.dir" property. this was called with "${WORKSPACE}/../../DM_Builder/workspace/dm-builder.xml" which got shortened to just the "../" part.
–
U Documentation\Release Documentation\LocalFilename.xls
At revision 1733
FATAL: Unable to find build script at ../DM_Builder/workspace/build/dm-builder.xml
Finished: FAILURE
-------------------------------------
Messed up path on the "antfile.dir" property. this was called with ${WORKSPACE}/../../trunk I believe. I had the "${WORKSPACE}/../../DM_Builder/workspace/dm-builder.xml" from above coded as "${WORKSPACE}\..\..\DM_Builder\workspace\dm-builder.xml" instead on this try. note the slashes are DOS versions.
–
Started by user anonymous
Updating svn://server/Application1/trunk
At revision 1733
no change for svn://server/Application1/trunk since the previous build
[build] $ cmd.exe /C '"D:\Tools\ant\apache-ant-1.7.1\bin\ant.bat -file dm-builder.xml -Dantfile.dir=${WORKSPACE} runk modentbuildtgt && exit %%ERRORLEVEL%%"'
Buildfile: dm-builder.xml
BUILD FAILED
Target "runk" does not exist in the project "dmbuilder".
Total time: 0 seconds
Finished: FAILURE
-------------------------
Correct behavior from build 1.348 hudson war...
–
Started by user anonymous
Updating svn://server/Application1/trunk At revision 1733 no change for svn://server/Application1/trunk since the previous build [build] $ cmd.exe /C '"D:\Tools\ant\apache-ant-1.7.1\bin\ant.bat -file dm-builder.xml -Dantfile.dir=${WORKSPACE}/trunk modentbuildtgt && exit %%ERRORLEVEL%%"'
Buildfile: dm-builder.xml
modentbuildtgt:
[echo] Modifying enterprise:build target call to add quickbuild="true"
[replace] Replaced 0 occurrences in 0 files.