It's all about the answers!

Ask a question

Build Forge failing to execute nested batch files.


Veena Balakrishna (361106) | asked Aug 20 '10, 4:19 a.m.
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

One answer



permanent link
Brent Ulbricht (2.5k11) | answered Aug 23 '10, 1:52 p.m.
JAZZ DEVELOPER
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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.