Get the last-pinned build number from a teamcity build