Snapshot dependency chooses incompatible build agent
I have 2 projects setup (let's call them A and B) with the following properties:
- A can only run and a specific agent (set via a hostname requirement)
- A has a snapshot dependency on B (B creates some files that A needs)
- B can independently run on any build agent (it has no agent requirements)
So when A runs, I'd like it to first run B on the required agent. I first thought that using the 'Run build on the same agent' option would do this.
However, it seems to imply that A will run on the same agent as B. So if TC chooses an incompatible agent, then A ends up on the build queue with no compatible agent.
Is there any way to ensure that B runs on a compatible agent for A without changing its requirements. Note that B is also used by other projects that don't have this requirement.
I think what I'm looking for is a feature that inverts the 'Run build on the same agent' option, so the agent for A is selected, and this becomes imposed on B.
Please sign in to leave a comment.