Search code examples
azure-devopsazure-pipelinesmultistage-pipeline

Azure DevOps multi-stage pipeline deployment to specific environment


We've prototyped a multi-stage YAML pipeline in Azure DevOps. One thing that we need is the ability to manually deploy to one of several environments directly.

In other words, we may want to deploy to Dev environment or to Test environment.

I can think of ways to do it that seem like kludges but would prefer something more proper.

What is the preferred way to set this up?


Solution

  • Feature "Manually trigger stage(s) in YAML multi-stage pipelines" has been on Roadmap, check the link below:

    https://developercommunity.visualstudio.com/idea/697467/manually-triggered-stages-in-yaml-multi-stage-pipe.html

    Currently, you can start a manual run and skip the stages you don't want to run in your pipeline. The run pipeline panel presents a list of stages from the YAML file, and you have the option to skip one or more of those stages.

    enter image description here

    enter image description here