I'm running unit tests after the application is built. They can hang up, so I need to kill the process and fail the build after certain timeout.
I've written a batch file that handles it by using Windows "timeout", "tasklist" and "taskkill" commands. The question is, if two builds are launched simultaneously, is there a chance that one of them would kill the process from another build? And how about "tasklist" command, do separate builds have separate task lists?
Welcome to the Community!
To answer your question directly, yes you can accidentally kill processes of another build if you aren't careful.
I haven't done what you are doing in a batch file, but we spawn a number of background jobs using Powershell for our builds and we are careful to give them specific naming conventions so that if we kill a job do to a timeout threshold being passed, we know that the job being terminated belongs to the build that spawned it.
I hope that help!
G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events