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

Does the API collect builds from all branches? #106

Open
AMoghrabi opened this issue Aug 9, 2016 · 1 comment
Open

Does the API collect builds from all branches? #106

AMoghrabi opened this issue Aug 9, 2016 · 1 comment

Comments

@AMoghrabi
Copy link

This is primarily a question for https://github.com/mavezeau/TeamCitySharp as this project seems to be dead.

Is it possible to collect all builds for all branches, not just the default branch?

Thanks.

@borismod
Copy link

That's nice to see, that there is an active fork of TeamCitySharp. Regarding your question, you may see the implementation of GetBuilds method in FluentTc, which allows retrieving with all branches and/or specific branch:

Here is an example:

            IList<IBuild> builds =
                new RemoteTc().Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest())
                    .GetBuilds(b => 
                        b.BuildConfiguration(c => 
                            c.Id("FluentTc_FluentTcDevelop"))
                                .Branch(r => r.Branched()));

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

2 participants