Currently I’m using powershell remoting to run a bunch of tests on a separate machine… this is suboptimal for lots of reasons, and I was wondering if I could get continua ci to do it.
What I’d want to setup is for the test procedures to be forced to run on that machine, which has no compiler, etc. so can’t run anything like a build. The idea is not tying up the build machine. The documentation seems vague on this though and I may be misunderstanding the role of agents…
I worked it out, you can filter stages on the hostname.
Hi Tony
Glad you figured it out, for reference, the trick is to use the Stage’s Agent Requirements
$Agent.Hostname$ equals theagentyouwantouse
Hi,
we had a similar requirement. We have two build servers with different versions of Visual Studio installed to build different projects and our main CI server handles all deployment tasks because our build servers are not connected to our Active Directory domain.
So we came up with the idea of assigning roles to every agent. We added a custom property to each agent and entered a comma separated list of supported roles. Then we added the required role to the stage’s agent requirements as Tony already described. With these roles we are able to add new agents to or remove defunct agents from our CI enviroment without updating the projects.
Regards
Kay Zumbusch