
So far my findings are:
1. I’m on Server: 10.211.18.108
2. Change directory to Folder F:\CBTbuild
3. Script: xcopy_src_dest.bat
From Windows command prompt, when I run the script or xcopy command itself with 2 parameters ex:
xcopy_src_dest.bat \\10.211.18.115\c$\CBTBUILDS\cbt_05_07_02_004 cbt_05_07_02_004_test_test_test
(It runs fine)
or
xcopy /v /y /e /i /c /Z /h \\10.211.18.115\c$\CBTBUILDS\cbt_05_07_02_004 cbt_05_07_02_004_test_test_test
(It runs fine)
-------------------
Now Issue:
1. If I create a “Scheduler task” on this x.x.x.108 server and run the same script / command with the above params, I get the same error message that I’m getting in Jenkins (as shown below in RED).
2. On Jenkins as well, when I’m running the command using “remcom”, I’m getting the following for the above script. Remcom is able to call the remote server script successfully (thus the following user given output is displayed on Jenkins page) but xcopy command part fails. Wondering IF running the script/command from x.x.x.208 server’s command prompt is fine, then, why even Windows server’s own Scheduler task is having the same issue.
22:16:39 --------------------- xcopy src dest - batch -------------------- start
22:16:39 - Source loc : \\10.211.18.115\c$\CBTBUILDS\cbt_05_07_02_004
22:16:39 - Target loc : cbt_05_07_02_004_test_test_test
22:16:39 ------------------------------------------------------------
....
...
somewhere here the same above xcopy command runs (as shown above which is successful) resulting into the following error.
...
....
22:16:51 Invalid drive specification
22:16:51 0 File(s) copied