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

Get Build by Id #61

Open
borismod opened this issue Dec 23, 2013 · 3 comments
Open

Get Build by Id #61

borismod opened this issue Dec 23, 2013 · 3 comments

Comments

@borismod
Copy link

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.

@slolife
Copy link

slolife commented Jan 31, 2014

It looks like the new url for this is:

http://teamcity/guestAuth/app/rest/builds/id:4014

@van800
Copy link

van800 commented Apr 11, 2014

2 years ago TeamCitySharp had ability to GetBuildById.
Today I tried to update to present version, but this bug is stopping me for now.

@van800
Copy link

van800 commented Apr 12, 2014

I have added fix here https://github.com/van800/TeamCitySharp

van800 referenced this issue in van800/TeamCitySharp Apr 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants