stack72 / TeamCitySharp

No Longer Maintained - please use https://github.com/mavezeau/TeamCitySharp
Other
200 stars 165 forks source link

Added a client method to download the artifacts for a build. #23

Closed mdevilliers closed 12 years ago

mdevilliers commented 12 years ago

DownloadArtifactsByBuildId(string buildId, Action downloadHandler)

Executes the handler once the artifact has been downloaded.

Example usage

var client = new TeamCityClient(url, isUrlSecure); client.Connect(username, password); client.DownloadArtifactsByBuildId(selected.Id, x => UnZipSomwhere(x));

mdevilliers commented 12 years ago

Hey Paul, I had to add a download artifacts method to TeamCitySharp for a project here at work. Hopefully my patch is in the same sort of style as the rest of the code. Anyway it would be great to get some feedback,

Mark

stack72 commented 12 years ago

Hey Mark

thanks so much for the pull request. I am currently away on business for a while so I will try and get to this and give you some feedback asap. On initial investigation it looks good

Paul