The issue comes from Ant's copy task which doesn't preserve permissions:
Unix Note: File permissions are not retained when files are copied; they end up with the default UMASK permissions instead. This is caused by the lack of any means to query or set file permissions in the current Java runtimes. If you need a permission-preserving copy function, use <exec executable="cp" ... > instead.
So I can't fix that unless fully rewriting Hudson's FilePath copy mechanism, which is nearly not possible (everything is, but the amount of time would be huge).
The issue comes from Ant's copy task which doesn't preserve permissions:
So I can't fix that unless fully rewriting Hudson's FilePath copy mechanism, which is nearly not possible (everything is, but the amount of time would be huge).