I've seen the post about disabling work item creation on all failed builds, but I'd like to have TFS only create a work item on the first failure. We have a very complicated legacy system that involves VB6 COM components and frequently have build failures on the build server that track back to some funkiness VB6 does with binary files (frx, ctl, etc. -- if you haven't had to deal with that in a while, you don't want to). The only way to resolve those issues is to try to make updates on a developer machine, then check in the files and run the build again (since the build doesn't fail on the dev machine). So we may have three or four (or more) failed builds before we get a success, which means we'll have three or four work items to close out.
Ideally, I'd like to have the following:
- Joe checks in a change that causes the build to fail
- A work item gets created and assigned to Joe
- Joe checks in another change and the build still fails
- No additional work item creation
- Joe checks in a change the build succeeds
- The work item assigned to Joe in step 2 above gets marked as Closed
But I'd be happy with just steps 1 through 4.