[
https://issues.jenkins-ci.org/browse/JENKINS-12891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
bap resolved JENKINS-12891.
---------------------------
Resolution: Won't Fix
> Use a temporary name for the uploading files
> --------------------------------------------
>
> Key: JENKINS-12891
> URL: https://issues.jenkins-ci.org/browse/JENKINS-12891
> Project: Jenkins
> Issue Type: Improvement
> Components: publish-over-ssh
> Affects Versions: current
> Reporter: Artem V. Navrotskiy
> Assignee: bap
>
> Now when downloading large files for a long time at the destination may not
> be a complete file. This can lead to various problems.
> To avoid this problem you need to load it under a temporary name and then
> rename the.
> For example:
> {code}
> sftp> put bigfile.bin bigfile.bin~tmp123
> sftp> rename bigfile.bin~tmp123 bigfile.bin
> {code}
> Now you need to do:
> - Script to rename a file in the working directory;
> - Upload renamed files by ssh;
> - Using "Exec command" to change cuurent directory to upload directory
> (JENKINS-12890) and rename files back.
> This workaround looks like ugly :(
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira