I have one azure devops organization with 1 project, using the organizations deployment pool. I've recently created a second project (newProject2) and want to use these same agents in the organizations pool. Without configuring anything, the pools already show up in newProject2. See below:
However, when I want to reference them in my .yml
pipeline, like so:
I get the following message while trying to execute the pipeline: Enviroment required
.
However, all the agents installed on the machines are registered in the other project's environment and I have to install a new agent on the same machine to have them show up in newProject2. This is understandably not recommended and a dead end.
As I understand it, the usage of a deployment group is only available in a classic pipeline. This has several drawbacks which I won't go into here.
My question is: Is it possible to deploy to an existing deployment pool from multiple (a different/secondary) projects (in a .yml pipeline) and if so, how?