TeamCityClient teamCityClient = new TeamCityClient("buildserver", "MyName", "MySecret");

TeamCityBuildConfiguration buildConfiguration = teamCityClient.FindBuildConfiguration("TheProject", "ConfigName");

if(buildConfiguration != null)
{
 TeamCityBuild lastSuccessfulBuild = teamCityClient.FindLastSuccessfulBuild(buildConfiguration);

 if(lastSuccessfulBuild != null)
 {
  teamCityClient.DownloadArtifacts(lastSuccessfulBuild.BuildId, delegate(string name)
  {
   // unzip file
  });
 }
}

Last edited Oct 4, 2010 at 9:43 PM by StefanStolz, version 1

Comments

No comments yet.