0

I have a situation where in I need to copy set of files to a windows server through Jenkins. I see a lot of Jenkins plugins that will do this kind of job through ssh but not in my case. Jenkins is also hosted in a windows server and end server is also a windows, so I believe ssh is not an option. Any plugin available in the market to get the job done or writing our requirements in powershell/MSDos script is the only option? Thanks in advance!

Squashman
  • 13,010
  • 5
  • 25
  • 35
Prasa2166
  • 339
  • 1
  • 4
  • 12

1 Answers1

0

just execute a bat command with the following

copy C:\localfile.bak \\remotemachine\c$\Path\remotefile.bak

in the Using the Execute Windows batch command option in the build Step

How to run bat file in jenkins

rohit thomas
  • 2,227
  • 10
  • 23