You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.
I started playing around with TeamCitySharp and noticed there was no way to get details about a build. In my case I wanted to find the last successful completed build and the start and finish and other interesting tidbits.
I added a method to Build to do this.
public Build LastSuccessfulCompletedBuildWithDetails(string configId)
{
var locator = BuildLocator.WithDimensions(running: false, status: BuildStatus.SUCCESS);
var path = $"/app/rest/buildTypes/id:{configId}/builds/{locator}";
var build = _caller.Get<Build>(path);
return build ?? new Build();
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I started playing around with TeamCitySharp and noticed there was no way to get details about a build. In my case I wanted to find the last successful completed build and the start and finish and other interesting tidbits.
I added a method to Build to do this.
The text was updated successfully, but these errors were encountered: