SurveyMonkey / pyteamcity

Use the TeamCity REST API from Python
51 stars 50 forks source link

Missing `get_all_builds_by_build_type_id` Method Or sample.py is not updated #94

Open sahilsk opened 5 years ago

sahilsk commented 5 years ago

I am not able to use get_all_builds_by_build_type_id as mentioned in below file. Method: get_all_builds_by_build_type_id

version: pyteamcity==0.1.1 https://github.com/SurveyMonkey/pyteamcity/blob/master/sample.py#L52-L54

I've switched to get_builds but would be great if you could update the sample file as well.

In [17]: tc.get_all_builds_by_build_type_id(build_type_id='KnowledgeMarketing_ECN_CiBuilds_CiBuildDevelop', start=0, count=3)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-17-dc15f8ca0a87> in <module>
----> 1 tc.get_all_builds_by_build_type_id(build_type_id='KnowledgeMarketing_ECN_CiBuilds_CiBuildDevelop', start=0, count=3)

AttributeError: 'TeamCity' object has no attribute 'get_all_builds_by_build_type_id'