Reputation: 31
I have two stage pipeline where the second (deployment) stage requires environment with approval. If no one approves the deployment - the build fails after the timeout (30 days max configurable in env approvals) on the approval. This causes weird emails about failed builds from past as the timeout triggers the build failed email to be sent.
Is there anyway to not fail the build when the approval times out?
Upvotes: 3
Views: 1978
Reputation: 76760
Azure Devops pipeline fails when stage not approved
Indeed, just like Eric comment, this is a feature on the roadmap to mark the stage as skipped in the case of the approval timeout. The run will be marked successful and no failure email would be raised. Will keep you updated as we make progress.
You could vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback.
Besides, MS provided advanced approval options to configure approval policies in sprint 160 before we fully get this feature:
You can now use advanced approval options to configure approval policies like requester should not approve, require approval from a subset of users and approval timeout.
Hope this helps.
Upvotes: 4