Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps, YAML release pipelines? [closed]

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

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:

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment?view=vsts

Are we expecting an upgrade to the release pipelines functionality to support YAML and, if so, when?

like image 637
Michael12345 Avatar asked Sep 13 '18 23:09

Michael12345


People also ask

How do I turn off release pipeline in Azure DevOps?

In my case, the pipeline is called Build, and I will click on the pipeline's options and click on Settings on the right corner, as shown in the screenshot below. I will set the “Processing of new run requests” from the options page to disabled.

Are Azure DevOps release Pipelines deprecated?

Draft releases are deprecated in Azure Pipelines because you can change variables while you're creating the release. Creating a draft release allows you to edit some settings for the release and tasks, depending on your role permissions before you start the deployment.

What is the difference between pipeline and release pipeline in Azure DevOps?

The Azure DevOps Server provides two different types of pipelines to perform build, deployment, testing and further actions. A Build Pipeline is used to generate Artifacts out of Source Code. A Release Pipeline consumes the Artifacts and conducts follow-up actions within a multi-staging system.


2 Answers

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.

Update

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 
like image 176
Justin Holbrook Avatar answered Oct 01 '22 07:10

Justin Holbrook


YAML build pipeline creation experience is in preview. (today is 2018-12-04)

YAML for release pipelines seems to be a ways off still: 2019 Q2

Preview features can be enabled from your profile like this:

profile menu

YAML feature

EDIT: As nullforce points out in comments, this only enables a YAML experience for build pipelines and not release pipelines.

UPDATE (2019-05-16): Following Microsoft's "Build 2019", the full YAML experience for both build and deployment should now be possible in the same YAML pipelines file.

like image 32
Jim Wolff Avatar answered Oct 01 '22 08:10

Jim Wolff