Thanks, No this is doable I guess..what I am trying to do is:
Using ssh plugin, copy wars to target environment, then I run a script on target environment to deploy those wars. If within the script, I figure out there was error in deployment, I want to get deployment logs back to Jenkins so that I can send them as email attachment. So I need logs, only if I detect error. And logs can be huge..so I just don't want to cat them with in my script and let it go to console out..So I was looking for elegent elegant solution. I guess, I can set up another job with ssh command you have mentioned, if my deployment job fails due to deployment error (some parameter to the new job).. Thanks S -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Sami Tikka Sent: Thursday, July 05, 2012 4:22 PM To: jenkinsci-users@googlegroups.com Subject: [External] Re: Jenkins ssh and pull (copy) files So, making a free-style job with a shell build step which executes something like "ssh target_address cat remotefile > localfile" would not work for you? -- Sami marathiboy kirjoitti 5.7.2012 kello 16.39: > 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-tp > 4633889.html Sent from the Jenkins users mailing list archive at > Nabble.com.