huserben / TfsExtensions

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

Add option to specify Queue ID #30

Closed user273835 closed 6 years ago

user273835 commented 6 years ago

It would be nice to be able to specify the Queue ID in which the triggered build will run. Use case: I have a build I want to run in multiple queues to verify agent performance and requirements, where each queue has agents running different base operating systems.

https://www.visualstudio.com/en-us/docs/integrate/api/build/builds#queue-a-build image

huserben commented 6 years ago

Hi

thanks for the input. I will include the functionality in the next version.

I'll let you know once I uploaded it.

user273835 commented 6 years ago

Thanks!

huserben commented 6 years ago

Hi

I just updated the task, you should now find the Queue ID under the advanced configuration section. If not specified, it will use the default, otherwise it'll try to use the one specified. If the queue with the specified id does not exist, it will give an approrpiate error message.

Please try it out and let me know if everything works as you would expect. Otherwise feel free to let me know that it's working or just close the issue :-)

Thanks again for the input 👍

user273835 commented 6 years ago

This is great and works as expected. My only other enhancement request would be to make the Queue ID field a dropdown or to allow the name of the queue to be entered as a string (so when I look at the build later, I don't wonder which queue 153 is). If you don't want to add that, I understand. I'll wait for your feedback before closing the issue.

huserben commented 6 years ago

Hi

making a dropdown is not so simple, but i could look into the option to fetch it via the name. However I probably will not get to it before the weekend.

user273835 commented 6 years ago

Making it a name would be very nice. I don't have any timetable. Do you want to track that in a new issue and close this one?

huserben commented 6 years ago

Hi

yeah I will create a new issur for it. Once this is done i then close this one.

Thanks again for your feedback

user273835 commented 6 years ago

You're welcome. I appreciate the quick response.

huserben commented 6 years ago

I added the new issue (https://github.com/huserben/TfsExtensions/issues/33) and will close this one then.

@user273835 : The newest version (2.4.0) now contains the possibility to specify the queue via the name.