Search code examples
azure-devopsoctopus-deployazure-pipelines-yaml

How to pause an Azure Devops stage


We have a multi-stage devops build. Towards the end will publish to octopus deploy and trigger a release. We are not using releases in Devops for this.

We want to not mark the devops build as complete until octopus has finished but also not hold up an agent polling octopus.

You can set a stage in devops to require manual intervention which has the desired effect with the exception it requires manual work. There does not seem to be an API for this.

Is there a way to do this without holding up many agents just polling octopus deploy?


Solution

  • I imagine that what fits for you is the Approvals and Check feature from Azure Devops.

    It can be set to invoke a Rest Api and evaluate the request results to proceed a deploy job. enter image description here

    Surely you must need do some changes in your pipeline, add a Environment to acts like a virtual gate of your pipeline's ending and this kind of things, but in my experience it worths.