Command line build hang calling non-java process
Hi,
I have a batch file, which is calling a non java program Beyond Compare to synchronize two folders. The batch file works fine if it runs from the command line and exits normally.
I am using teamcity 4.5 and I have created a build project with build runner set as command line. The working directory and batch file to call is configured properly.
When I run the build it calls bc2.exe and then it hang for infinite time. It does not execute even the first statement in the BC2 script.
As it is not a java process, the thread dump is also not available.
If I kill the BC2 process from the task manager then the build proceed further.
There is no error in the teamcity log and no error in the build log also.
Please find the batch file and beyond comapre script attached.
Can you please help me to resolve this issue?
Thanks,
Shailesh
Attachment(s):
BC_BEFORE_BUILD.txt
BC_SYNC.bat
Please sign in to leave a comment.
Hi!
Just an idea: did you try to call bc2 without the "call" instruction?
Regards,
Olivier.
Hi Olivier,
I tried that but no luck.
Thanks,
Shailesh