Azure-devops-docs: can you have a non deployment job not requiring approval in the same stage as a deployment job requiring approval?

Created on 18 Dec 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

seems like -deployment means the whole stage needs approval and no way to run a job/task before deployment, is that the case? in fact it seems like the strategy: isn't really even required the -deployment & environment trigger the approval need alone


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-cictech devopprod doc-bug

All 7 comments

Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Here are a couple of options where you might consider asking your question:

I am closing this issue now. You are welcome to @ mention me for any followup.
We hope to hear from you again.

Not sure how u got that impression...the docs don’t make it clear what happens if you have multiple jobs in a stage and one is a deploy job..are they all gated deploy jobs then? Or just the one deploy job? Since the config is at the job level and the gate is at the stage level it’s not clear at all in the docs

@WilliamAntonRohm can we revisit please?

@drdamour -- thank you for clarifying your concern. Apologies for the delay in responding.

@juliakm -- please look into this issue.

I have been testing diff scenarios with deployment jobs having approval checks
So, when used with other non deployment jobs in the same stage, no job of that stage gets executed unless checks are ok. Do you have any update on this please?

This is spelled out on the Define approvals and checks page. I'll add a link to it from the environments page.

"Before the execution of a stage can begin, all checks on all the resources used in that stage must be satisfied. Azure Pipelines pauses the execution of a pipeline prior to each stage, and waits for all pending checks to be completed. If any of the checks fails (for example, if you reject an approval on one of the resources), then that stage is not executed."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sevaa picture sevaa  Â·  3Comments

EM1L picture EM1L  Â·  3Comments

Naphier picture Naphier  Â·  3Comments

dtamai picture dtamai  Â·  3Comments

KacperMucha picture KacperMucha  Â·  3Comments