How to find a TFS release in progress?
How to find a TFS release in progress?
I need to fail a build on TFS 2018 if its pipeline is not fully complete. Batching just the build is not enough; the linked release must be finished as well before another build can begin. My idea is to do this in a PowerShell script via the REST API.
I see in the official documentation here that there's a property called TaskStatus
. It provides a value of inProgress
, presumably for releases that are in progress. This might do the trick, but there's no indication of how to actually use it.
TaskStatus
inProgress
Using the REST API, how can I get the TaskStatus
of a given release?
TaskStatus
@DanielMann—For the reasons in my other question that you found and answered. I posted this one a bit later, in hopes that it'd provide the answer to that one. But you fixed all that :-) Care to answer this one as well, so I can accept it?
– InteXX
2 days ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I don't understand why you'd want to do this. Can you give some context? A release failing doesn't necessarily mean that the build itself is bad.
– Daniel Mann
2 days ago