Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 20 '10, 4:19 a.m.

Question was seen: 6,737 times

Last updated: Aug 20 '10, 4:19 a.m.

Confirmation Cancel Confirm