Hi All
We have build script which sets a doskey for certain commands.
Jenkins somehow is not able to recognize doskey:
Problem is easily reproducible,
Script: foo.bat
====================
doskey d=dir
=======================
Jenkins : Execute Windows batch command
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
call foo.bat
d
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failure output
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Code\workspace\Windows-Trunk\src>call foo.bat
C:\Code\workspace\Windows-Trunk\src>doskey d=dir
C:\Code\workspace\Windows-Trunk\src>d
'd' is not recognized as an internal or external command,
operable program or batch file.
C:\Code\workspace\Windows-Trunk\src>exit 9009
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any idea why?
Regards
Ankit