mendhak/teamcity-stash — pull request #7 by aefimov (2013-03-13 16:12:09+00:00)
Title: Use BuildTypeId instead of BuildId

See https://jira.atlassian.com/browse/STASH-3219

If TeamCity build is canceled and another one is started, then Stash will show two build, and first one is Failed. It can't be overriden by Success build reexecution.

Also if build failed on of external problem it never be replaced by Success run for the same build on the save commit. Because `BuildId` is always different.