devopshq / teamcity

dohq-teamcity is a Python package providing access to the JetBrains TeamCity server API.
https://devopshq.github.io/teamcity/
MIT License
33 stars 12 forks source link

how to use the tc.build_queues.cancel_build() function #36

Closed vong0 closed 3 years ago

vong0 commented 3 years ago

Hi, so I'm a bit confused about how to use the "tc.build_queues.cancel_build()" function.

I have a teamcity server with the following queued build (with id=1). image

but when i try cancel it, all i get the a BuildCancelRequest object and I have no idea what to do with it (nothing gets canceleld). image

I think a "comment" and "readd_into_queue" is supposed to be provided with the cancel build but your function does not seem to accept it when i try.

vong0 commented 3 years ago

nvm after looking at the examples i managed to get it working