title: TeamCity artifact from lastSuccessful branch build
body: <p>I recently re-configured our TeamCity build configuration to take advantage of the Branch features to apply the same build configuration to multiple branches in the same repository.</p>
  
  <p>Now, I'm trying to setup an automated build script that can pull the latest artifact from TeamCity, but only for a specific branch.  I was able to get it working fine on the default branch in the original configuration, using the TeamCity REST API, but can't figure out how to format the URL to pull the artifact for a specific branch.</p>
  
  <p>I've looked at the following resources, but to no avail:</p>
  
  <p><a href="http://confluence.jetbrains.com/display/TW/REST+API+Plugin" rel="noreferrer">http://confluence.jetbrains.com/display/TW/REST+API+Plugin</a>
  <a href="http://confluence.jetbrains.com/display/TCD7/Patterns+For+Accessing+Build+Artifacts" rel="noreferrer">http://confluence.jetbrains.com/display/TCD7/Patterns+For+Accessing+Build+Artifacts</a></p>
  
  <p>Thoughts?</p>