Azure DevOps,YAML发布管道? [英] Azure DevOps, YAML release pipelines?

查看:95
本文介绍了Azure DevOps,YAML发布管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照以下过程为.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?

推荐答案

在撰写此回复时,功能时间表反映了yaml版本将于2018年第三季度发布.

At the time of writing this response the features timeline reflects yaml releases are coming 2018 Q3.

https://docs.microsoft.com/zh-CN/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆