Reputation: 287
how can I in azure devops using Pre-deployment approvals, after clicking cancel go to the next stage?
I thought use gate and resy api, I don’t know.
Upvotes: 0
Views: 967
Reputation: 19401
If the trigger for your next stage selection is After stage, then canceling the previous stage will not trigger the next stage. The trigger for the next stage is based on the successful deployment of the previous stage.
From your words "after find erroe on a stage QA, I click cancel " ,we can know that you should manually intervene in the deployment. Then you can choose After release trigger for the next stage.So even if the QA stage is canceled, you can go to the next stage.
Upvotes: 0
Reputation: 5549
I do not think it is possible to continue the stage after clicking cancel.Because a stage will not be triggered at all if the pre-deployment condition is rejected.
So, just as R Jain suggested in the comments, if the clean up task is necessary regardless of the success of the previous task, then it is a good choice to add it in previous task. This is logically reasonable.
Though, you can add a separated stage to perform the clean task which does not need pre-deployment condition.
Upvotes: 1