views:

43

answers:

1

I get "cannot stop" status once in a while after trying to stop builds on TeamCity. I would expect that killing my build process on build agent would do the trick, but it doesn't work. Stopping TeamCity agent process on the build machine doesn't help either. Restarting build agent (i.e. computer) does the trick, but it takes plus 2-3min after the machine has started. It looks like TeamCity server itself thinks that my build is still running.

Is there a better way to stop those builds? Or maybe there is some info somewhere that could explain this logic?

A: 

Build steps written in Java can't be stopped at an arbitrary moment in time. Just stop the build and wait a few seconds for the build step to complete. It will stop, just be more patient :-)

Aaron Digulla
I'm running batch-script which executes win executable. As I said I can see that win executable is not running any more, but the build is still there. I can stay in "cannon stop" phase for hours if I do not restart the build machine.Thanks anyway.
Paulius Liekis
Is the batch script still running?
Aaron Digulla