Azure DevOps switch agent queues for build and release
A long time ago I made a post on how to update all build queue agents.
After revisiting the api for unrelated tasks I remembered my old post and decided I would sit down in the evening to update my old post… that was 3 month ago (yes I forgot it again).
But now I finally updated my code and it can update both build and release queues!
Additional features include:
- Support for releases
- Instead of only setting the “build” queue of a build it will also set the queue of every single phase in the build (or release)
- Each build/release may have multiple phases which can either “inherit from build/release” or directly specify their queue (this script will keep the “inherited” and set all others)
- Added some filtering options for convenience
- Script no longer break when returned urls already contain querystring (no more hard appending “?api-version”, instead ? or & is used depending on the url)
I hosted the script on github, so you always get the latest version.