【发布时间】:2021-06-10 08:28:23
【问题描述】:
我们有一个开发服务器托管来自多个 Azure DevOps 项目的 Web 服务。为了使用 yaml 部署管道,我们从部署池迁移到环境/资源。与部署池 neither environments nor resources can be shared between projects 不同。你可以投票here 来改变它。
我们按如下方式解决此问题。
- 为每个项目创建一个环境。
- 为每个环境添加开发服务器作为资源。
- 在服务器上为每个项目安装一个环境代理。
很遗憾,如果服务器上已经安装了环境代理,则会产生命名冲突。
The service already exists: vstsagent.MyDevOpsAccount..MyServer, it will be replaced
Error: Operation CreateService failed with return code 1072
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-release-pipeline azure-pipelines-yaml