0

dynamically select the build agent based on a build parameter

Is this supported in some way?

I know that I can set a static requirement using the agent requirements section for example if os name contains windows, etc.

But how do I create a dynamic requirement for a single build configuration? Let's say I have a build parameter defined on the build config with 2  selectable list items 'A' and 'B'. Default is 'A', so build should routed to agents with 'A' defined somewhere (in their environment, whatever), but I want to route builds to agents that have 'B' defined if the user selects this option in the run dialog.

Currently I don't see any way to achieve this, only by creating two build configurations and hardcode the 'A' and 'B' requirements, respectively.

7 comments

Please sign in to leave a comment.