I'm writing a c# activity to queue one build from another build. that bit's OK. However, I'm trying to add functionality that allwos me to select the specific build agent upon which the build should run. I've got it selecting the buildcontroller, but I can't seem to take it one step further by selecting the build agent. I'd prefer not to use tags. I can get the build agent after I've queued it, but I'd like to be able to select it before... even if that means my build sitting in a queue for the specific agent to become available.
The UI has the option to select a build agent when queuing a build, I'm trying to replicate it in C#.
Any help always appreciated.
Ta Padda