Recently we started having a strange problem. We are trying to build a .net solution with an msbuild plugin. All was well, until recently multiple chrome instances that get opened by a Jenkins build hold a pointer to a file in workspace folder after a build is done. The file doesn't get deleted and the next build fails with an IO Exception. What's interesting is this happens only when Xunit automation tests are run , the chrome seems to have a pointer to a file in xunit folder. If we delete everything related to xunit in build configuarion, the build runs each time without concerns. Having said that the multiple chrome instances are still there.
This is causing us go and kill the chrome instances after each build so the pointer is released.
see attached screen shot of exception