I am using TFS 2012 for my build.
When a build runs in TFS, you get given the changesets that were included since the last successful build. These are called Associated Changesets
.
I have a custom build activity which I want to fail the build under certain conditions. To trigger this failure, I am simply throwing an exception from it.
The issue I have is that even if the exception is thrown (and the build fails), the next build does not include the changesets in the Associated Changesets
from the previous failed build.
Does anyone know at what point in the build workflow the changesets are marked as successful?
The behaviour I am after is that if my custom activity fails the build, the changesets from this build should appear in the Associated Changesets
of the next build. And so on, until the build succeeds.