As a part of a build process I need two queues of builds to be ran. The first queue services builds that compile solutions, and run unit tests. The second queue contains builds that run service tasks like uploading files to an FTP site.
Builds in the second queue are going to be dependant on builds in the first queue. For instance, I have four builds in two queues, thus S1 depends on F1, and S2 runs after F2.
So there are sample builds
First Queue: F1, F2
Second Queue: S1, S2
When I have only one build agent, and F2 is scheduled while F1 is running, I have builds executed in the following order, sequetiantly
F1 => F2 => S1 => S2
However, I'd like F1 to start at the same time as F2, immediatelly after F1 is complete. So a desired sequence is:
F1 => F2 =>S2
I believe that this is possible by adding another agent and setting corresponding agent requirements for builds.
However, when I try to install a new agent on the same PC, and select "Install service" checkbox, the service runs with a new agent, and the previous one becomes disconnected. So my question is how to install the second agent on the same PC where the first one was running and have them both functional.