tags:

views:

51

answers:

1

I am using hudson and the "Publish artifacts to FTP" option. It makes up its own directory based on the date and time of the build. I would like to override that with a fixed name/location. How can I do that? Is it possible?

+1  A: 

What version of the FTP Publisher plugin are you using? I just installed the 1.0 version on Hudson 1.361, and in that version I can control the path by selecting the Flatten files option in the job configuration. Timestamp directories can also be disabled (that was the default).

That would solve path control. For the filename control, there doesn't seem to be a way to rename the file. You will either have to create an artifact with the right name during the build, or use some other tool for the ftp upload.

Edit: For example, the Post Build task, that can run arbitrary shell commands based on the result of the build.

Anders Lindahl
I'll check into that. It looks like I have .9 of the ftp plugin on my build server. hudson version 1.341
Tim