huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
44 stars 22 forks source link

Add task output variables for queued build status #83

Closed dwhearn closed 5 years ago

dwhearn commented 5 years ago

Add task output variables to return the status of the queued builds so that they can be checked in later build tasks to determine which of the queued builds failed. It would be helpful to also return any error messages from the queued builds. Then this information could be used in a following Send Email task to send an email with information about the failed queued builds.

huserben commented 5 years ago

Hi @dwhearn

thanks for the proposal. However I think it would be hard to store this information in a meaningful way (would it be just one variable with some special syntax? or multiple variables?). As I don't have too much time right now I cannot commit to do such specific changes/extensions.

Currently the id's of all the queued builds are stored, with this information you could write a little script that could fetch the info for you. In case you are interested in this I could try to assist you with that.

dwhearn commented 5 years ago

Thanks, I used your suggestion and used a PowerShell task to read the information that I needed.