Posts

Showing posts with the label release

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 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 ...