Azure DevOps、YAML 发布管道? [英] Azure DevOps, YAML release pipelines?
问题描述
我正在按照此流程为 .NET Core Web API 项目创建 YAML 构建管道:
I am following this process to create a YAML build pipeline for a .NET Core Web API project:
https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-yaml?view=vsts
谈到发布时,我注意到(最近重命名的)Azure DevOps 似乎不支持 YAML 来定义发布管道.但是,我可以看到已经定义了部署任务,例如:
When it comes to releasing it, I note that the (recently renamed) Azure DevOps doesn't seem to support YAML for defining release pipelines. However, I can see that deployment tasks have been defined eg:
我们是否期望升级发布管道功能以支持 YAML,如果是,何时升级?
Are we expecting an upgrade to the release pipelines functionality to support YAML and, if so, when?
推荐答案
在撰写此回复时,功能时间表反映了 2018 年第 3 季度即将发布的 yaml 版本.
At the time of writing this response the features timeline reflects yaml releases are coming 2018 Q3.
https://docs.microsoft.com/en-us/azure/devops/release-notes/
更新:这已经被撞了几次.建议查看下面的评论,因为人们一直在提供他们找到的更新.
Update: This has been bumped a few times. Checking the comments below is recommended as folks have been providing updates as they find them.
根据评论,这现在是可能的:https://devblogs.microsoft.com/devops/whats-new-with-azure-pipelines/.以下内容是从文章中复制粘贴的,并演示了使用各个阶段:
As per comments, this is now possible: https://devblogs.microsoft.com/devops/whats-new-with-azure-pipelines/. The following is copied and pasted from the article and demonstrates using various stages:
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'Ubuntu-16.04'
continueOnError: true
steps:
- script: echo my first build job
- stage: Deploy
jobs:
# track deployments on the environment
- deployment: DeployWeb
pool:
vmImage: 'Ubuntu-16.04'
# creates an environment if it doesn’t exist
environment: 'smarthotel-dev'
strategy:
# default deployment strategy
runOnce:
deploy:
steps:
- script: echo my first deployment
这篇关于Azure DevOps、YAML 发布管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!