Skip to content

Commit

Permalink
implement get Build ById
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed Apr 12, 2014
1 parent 3d2e6b3 commit 9a5a007
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/TeamCitySharp/ActionTypes/Builds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ public Build LastBuildByAgent(string agentName)
)).SingleOrDefault();
}

public void Add2QueueBuildByBuildConfigId(string buildConfigId)
public Build ById(string buildId)
{
var build = _caller.GetFormat<Build>("/app/rest/builds/id:{0}", buildId);

return build;
}

public void Add2QueueBuildByBuildConfigId(string buildConfigId)
{
_caller.GetFormat("/action.html?add2Queue={0}", buildConfigId);
}
Expand Down
1 change: 1 addition & 0 deletions src/TeamCitySharp/ActionTypes/IBuilds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public interface IBuilds
List<Build> NonSuccessfulBuildsForUser(string userName);
List<Build> ByBranch(string branchName);
Build LastBuildByAgent(string agentName);
Build ById(string buildId);
void Add2QueueBuildByBuildConfigId(string buildConfigId);
}
}

1 comment on commit 9a5a007

@van800
Copy link
Owner Author

@van800 van800 commented on 9a5a007 Apr 12, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix for request "Get Build by Id stack72#61"

Please sign in to comment.