• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying files from Windows to Unix (In could)  RSS feed

 
gokul.r ramamurthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I have the jar files from the project build in the windows machine. and this has to be copied to Unix machine(in cloud for deployment)

Even though we can perform this using Putty/WinScp. (i,e copying the files from windows machine to UNIX server ) can it be automated ?

presently we cannot access the shared path of unix machine in windows machine. so can any one please provide a suggestion for automation the copy operation
using ant/maven/ by jenkins.

Thanks
Gokul
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSch is a Java library that can be used to automate SSH and SCP: http://seancode.blogspot.de/2008/02/jsch-scp-file-in-java.html
 
gokul.r ramamurthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer for the reply.
But we are not suppose to use java/c# or any programming language. we can user only ant/maven or jenkin actions,
so can you provide suggestion on this please.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant has an SCP task. And Ant is written in Java itself, so you can add new tasks to it that you wrote in Java (if the SCP taks doesn't do what you need done) :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!