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

fix: Use the correct overload of TeamCityCaller where a return object is... #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/TeamCitySharp/ActionTypes/BuildConfigs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused)

public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml)
{
_caller.PostFormat<ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
}

public void PostRawBuildStep(BuildTypeLocator locator, string rawXml)
{
_caller.PostFormat<BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator);
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/steps", locator);
}

public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml)
Expand Down
2 changes: 1 addition & 1 deletion src/TeamCitySharp/ActionTypes/VcsRoots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId)
public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot)
{
var xml = string.Format(@"<vcs-root-entry><vcs-root id=""{0}""/></vcs-root-entry>", vcsRoot.Id);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
}

public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)
Expand Down