2

Currently i'm using Azure DevOps Rest API call from the CI to invoke the releases from a release definition. During the process i'm invoking releases one after another. All releases starts at the same time. Currently i have added a manual intervention at the start of every releases. SO when first release got finish i will go and resume the second releases and on completing that resume the third releases. But i want to remove this manual intervention and releases should start only after finishing the previous releases. For example if i'm triggering three releases

Release1,
Release2,
Release3

While Release1 is running both Release2 and Release3 should wait. On completing Release1, the Release2 should start without manual intervention and Release3 should still wait. On completing Release2, start Release3 without manual intervention.

4
  • Just checking to see if the information provided was helpful. Commented Aug 13, 2020 at 10:10
  • 1
    No, I tried a different approach. I used Rest API to call Release2 after Release1 and called Releases3 after Release2 Commented Aug 13, 2020 at 18:09
  • Hi Patrick, i did Commented Aug 14, 2020 at 15:23
  • 1
    I would recommend the approach you took, have 1 call 2 and 2 call 3 at the end of each release. If you are familiar with PowerShell check out the AzurePipelinesPS module to make those api calls with PowerShell. powershellgallery.com/packages/AzurePipelinesPS Commented Aug 14, 2020 at 20:49

2 Answers 2

1

While Release1 is running both Release2 and Release3 should wait. On completing Release1, the Release2 should start without manual intervention and Release3 should still wait. On completing Release2, start Release3 without manual intervention.

This will only occur when you are trying to create 3 releases in the same agent. If there have different agents, there should be running in parallel.

Since you are using a single release pipeline. Not sure why you want the later release executed after all of stages of previous release completed.

In release, the stages are independent of each other.

You could also take a look at this similar question. How to configure an Azure DevOps release to complete all its stages before starting a new one

Sign up to request clarification or add additional context in comments.

Comments

1

As I specified, I used Azure Devops Rest API to invoke multiple dependency releases. But I was calling all the releases one after another from the CI process itself. So I put the Manual intervention for the following releases. But now I updated my process to call the dependency release just after finishing the parent release. So I again took advantage of the REST API feature for the same. Also, the variable collection is same for all the releases. So I'm setting the release variable through REST API and use the same variable for setting the variable for successive release. So Release2 is called after calling Release1 and Release3 is called after calling Release2 using REST API.

2 Comments

Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. - From Review
What you mean?. This is the answer i was requested to put by Patrick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.