I am creating a pipeline script in my jenkins server(windows). I am trying to copy from SOURCE to DESTINATION using following command. I am getting an error 'invalid number of parameters xcopy /O /X /E /H /K' when run the jenkins job. What is the issue in the command below.
xcopy \fileshares\myproject\builds\MyWelcomeApp\org D:\MyWelcomeApp\org /O /X /E /H /K
Could you try with like this?