Question

I've got the strangest behaviour on Hudson. After downloading the project from svn, i'm trying to trigger ant build, in particular "deploy-war", but Hudson can't see the build.xml file even though the file exists in workspace dir. The thing is when i trigger 'deploy-ant' from cmd, it builds .war file just fine.

Hudson workspace

Hudson console output

And this is the way i invoke ant:

enter image description here

Was it helpful?

Solution 2

The strangest thing. The problem had nothing to do with Hudson nor ant, the issue was that the machine i was working on, had cmd.exe starting location in "regedit" set to some strange location, and thus cmd.exe was looking for a build file in that location.

OTHER TIPS

You have to mention the option build file only if the build file name is different from build.xml, say deploy.xml or build1.xml. If the build file name is build.xml and it is exactly in the workspace directory, you don't have to mention build file. You can leave this option blank.

If you still want to mention the build file, you have to mention the absolute path of the build file. enter image description here

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top