How to get Jenkins/Hudson to preserve file permissions

file-permissionshudsonJenkins

I have an file in my Hudson workspace which has permissions of 777. It's listed under "Files to archive", and appears under "Last Successful Artifacts" on the Project page. If I right-click-save it, it only has 644 permission. How can I preserve the set permissions?

I am running Hudson 1.386 standalone on Ubuntu 10.04, if that matters.

Best Answer

This has nothing to do with Hudson, and everything to do with your browser. If you want to preserve file permissions, I'd recommend having Hudson tar the files up, which will maintain the permissions when you extract it on a *nix system.