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.

Get Build by Id #61

@borismod

Description

@borismod

I am trying to retrieve build by it Id using the below code:

...
var client = new TeamCityClient(teamCityUrl);
client.Connect(user, password);
var compatibleBuilds = client.Builds.ByBuildLocator(BuildLocator.WithId(buildId));
...

It generates the following bad URL:

http://tc1:8080/httpAuth/app/rest/builds?locator=id:23121

Error has occurred during request processing (Bad Request).
Error: jetbrains.buildServer.server.rest.errors.LocatorProcessException: Locator dimension [id] is ignored or unknown.
Invalid request. Check locator is specified correctly.

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