Ticket #161 (new enhancement)

Opened 1 year ago

Last modified 7 months ago

FileUpload: write to tempfile, rename once finished

Reported by: exarkun Assigned to:
Priority: major Milestone: undecided
Component: other Version: 0.7.6
Keywords: Cc:

Description

It would be useful if the destination filename on the master for FileUpload could be dynamic. At the least, being able to include the builder name would let different builders upload files without stepping on each other. It would also be really great to be able to include an SVN version number so that subsequent runs wouldn't have to overwrite files uploaded earlier.

It would also be nice if FileUpload didn't clobber the file in-place, but instead wrote to a temporary file until the entire file had been received, and only then moved the file to its final destination. This would avoid partial uploads being left in place and appearing to be complete instead.

Allowing the source filename to be dynamic would be handy as well, but at least that lack can be worked around by making sure the build steps always generate a file with the same name.

Change History

04/28/08 15:10:59 changed by warner

  • summary changed from dynamic masterdest filename support to FileUpload: write to tempfile, rename once finished.

yeah. The destination filename can now accept WithProperties, which should handle the first chunk of feature requests.

Writing a temporary file first would be great. I'd be happy to accept a patch that did this.

The source filename can take WithProperties too.

04/28/08 17:23:47 changed by dustin

#210 fixes problems with using WithProperties?, btw