1
votes

I've got a single self-hosted agent. Its used as a kind of deployment agent. All release versions of our software gets build by this agent and then copied to a network location.

Question: Is there a way I can utilize both the agent from the 'azure-pipelines' Microsoft hosted pool and my own self-hosted pool in my pipelines?

2

2 Answers

2
votes

This is not possible. There is a ticket on developer community asking for similar functionality but it is already closed.

There is another ticket Allow agent pools to contain Microsoft hosted and self-hosted agents which refer to similar case, it is open but MS is silent there.

1
votes

Which benefits do you want to achieve?

Basically, you can use several agent pools in one build/release definition. You just split your definition into several jobs and assign the needed agent pool to the corresponding job.

If you want to dynamically assign different pools from one pipeline to do the same build steps, we can not do that (as Krzysztof mentioned).