将环境与 Azure 发布管道一起使用

时间:2021-03-12 12:20:53

标签: azure-devops azure-pipelines

Azure Release Pipelines 可以使用环境功能吗? 我一直在寻找,但所有使用环境的示例都是 YAML 和管道部署任务。

2 个答案:

答案 0 :(得分:0)

不,你不能。环境是为多阶段 Yaml 管道设计的。对于发布管道,您有 Deployment groups。请查看here了解更多详情。

答案 1 :(得分:0)

<块引用>

Azure Release Pipelines 可以使用环境功能吗?

答案是否定的,不能在发布管道中使用环境功能。这在官方 document 中有说明:

enter image description here