microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.21k stars 934 forks source link

How do I create a condition that will not block a PR from completing #515

Closed tomkuijsten closed 3 years ago

tomkuijsten commented 4 years ago

When I create a PR, I want to:

  1. run a build
  2. when valid, complete the PR
  3. use the PR build to deploy on an environment protected by a manual approvement

As far as I read the docs, this seems to be impossible. I created a development environment, added the approval. That part works fine. Our builds stop at the deploy stage and ask for approval. The problem however, is that the PR triggered pipeline never finishes, so the PR won't complete.

Any help?

stale[bot] commented 4 years ago

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.