[英]Share Azure DevOps agent between classic deployment group and yaml environment
We have Azure Devops agents in Deployment Groups and would like to start migrating to YAML pipelines.我们在部署组中有 Azure 个 Devops 代理,并希望开始迁移到 YAML 个管道。 This means registering agents in Environments.这意味着在环境中注册代理。
Is there some way a Deployment Group and Environment can share the same agent?部署组和环境是否可以共享同一个代理? Or am I forced to install two agents to support both classic and YAML pipelines?或者我是否被迫安装两个代理来支持经典和 YAML 管道?
You can follow below steps to share agents in environment to deployment pool.您可以按照以下步骤将环境中的代理共享到部署池。 There is a mapping between environment and deployment pool.环境和部署池之间存在映射。
1 add resource virtual machine to an environment 1 将资源虚拟机添加到环境中
2 after registering resource successfully, you'll see an env pool added automatically 2 资源注册成功后,会看到自动添加了一个env pool
3 select a project to share 3 select 一个项目分享
Note: please create environment first because it's one-way mapping.注意:请先创建环境,因为它是单向映射。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.