Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #53 from mdevilliers/master
Browse files Browse the repository at this point in the history
Added ability to download build configurations
  • Loading branch information
stack72 committed Oct 18, 2013
2 parents 4f18e35 + dc820be commit f855d70
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TeamCitySharp/ActionTypes/BuildConfigs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ public void PutAllBuildTypeParameters(BuildTypeLocator locator, IDictionary<stri
_caller.PutFormat(sw.ToString(), HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/parameters", locator);
}

public void DownloadConfiguration(BuildTypeLocator locator, Action<string> downloadHandler)
{
_caller.GetDownloadFormat(downloadHandler, "/app/rest/buildTypes/{0}", locator);
}

public void PostRawAgentRequirement(BuildTypeLocator locator, string rawXml)
{
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/agent-requirements", locator);
Expand Down
2 changes: 2 additions & 0 deletions src/TeamCitySharp/ActionTypes/IBuildConfigs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Xml;
using TeamCitySharp.DomainEntities;
Expand Down Expand Up @@ -84,5 +85,6 @@ public interface IBuildConfigs
/// <since>8.0</since>
void PutAllBuildTypeParameters(BuildTypeLocator locator, IDictionary<string, string> parameters);

void DownloadConfiguration(BuildTypeLocator locator, Action<string> downloadHandler);
}
}
1 change: 1 addition & 0 deletions src/TeamCitySharp/DomainEntities/BuildConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ public override string ToString()
public BuildSteps Steps { get; set; }
public AgentRequirements AgentRequirements { get; set; }
public BuildTriggers Triggers { get; set; }
public Properties Settings { get; set; }
}
}

0 comments on commit f855d70

Please sign in to comment.