Use buildType external id as a key

Stash marks a pull-request as failed when at least one build is
failed, it's more convenient to have a status of the last build.