Build Forge failing to execute nested batch files.
Hi,
I have script for example called D:\build.bat
eg:
build.bat
@echo off
set SRCPATH=D:\Build
echo "Build start"
call %SRCPATH%\build.cmd
echo end
D:\build.bat is working absolutely fine from command line
I have created a project step in Build Forge and I am calling D:\build.bat,but
call %SRCPATH%\build.cmd, is not getting executed as expected. Its not taking the values define in d:\build.bat.
Please help me in getting this executed.
Thanks
Veena
I have script for example called D:\build.bat
eg:
build.bat
@echo off
set SRCPATH=D:\Build
echo "Build start"
call %SRCPATH%\build.cmd
echo end
D:\build.bat is working absolutely fine from command line
I have created a project step in Build Forge and I am calling D:\build.bat,but
call %SRCPATH%\build.cmd, is not getting executed as expected. Its not taking the values define in d:\build.bat.
Please help me in getting this executed.
Thanks
Veena
One answer
Hi,
I have script for example called D:\build.bat
eg:
build.bat
@echo off
set SRCPATH=D:\Build
echo "Build start"
call %SRCPATH%\build.cmd
echo end
D:\build.bat is working absolutely fine from command line
I have created a project step in Build Forge and I am calling D:\build.bat,but
call %SRCPATH%\build.cmd, is not getting executed as expected. Its not taking the values define in d:\build.bat.
Please help me in getting this executed.
Thanks
Veena
Hi Veena,
I tried recreating something similar to your scenario, but it worked for me. Is there any chance that there is an environment variable in your command window that is not present when running the commands through a step in Build Forge. You might execute a 'set' at the command prompt and compare the env variables in your command window with the ENV variables in the Build Forge step log.
bju