Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying files from Windows to Unix (In could)

 
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: 42970
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: 42970
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) :-)
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!