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

No way to get details for a build #100

Description

@derhally

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();
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions