Thanks Fred, I guess this would have worked..but I am not deploying to slave..it is totally different VM, where I run bash script via SSH copy plugin..
All I need is copy few log files back to master Jenkins, if my script determines that deployment was failure, and attach the files to email. Thanks S -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Fred G Sent: Friday, July 06, 2012 9:23 AM To: jenkinsci-users@googlegroups.com Subject: [External] Re: Jenkins ssh and pull (copy) files Hi, The Copy To Slave Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Copy+To+Slave+Plugin) can copy back files to the master. Currently this is only available as a post-build action, so I'm not sure if the files will be available to send them as attachments. Nevertheless it might still be cleaner than using ssh. It shouldn't be a big deal to change the plugin so that "copy back to master" is available as a normal build step. HTH, Fred On Thursday, July 5, 2012 3:39:15 PM UTC+2, marathiboy wrote: Hello, I need to pull files from remote machine and send it via email as attachment. Once the files are on Jenkins server, I can do the rest. In order to copy (pull) files from the remote server, is there any plugin or how can I use something like ssh target_address cat remotefile > localfile using ssh plugin? Thanks S -- View this message in context: http://jenkins.361315.n4.nabble.com/Jenkins-ssh-and-pull-copy-files-tp4633889.html <http://jenkins.361315.n4.nabble.com/Jenkins-ssh-and-pull-copy-files-tp4633889.html> Sent from the Jenkins users mailing list archive at Nabble.com.