title: Azure DevOps: Pipeline for all branches but master
body: <p>I have a website project with two pipelines</p>
  <p>1.- PROD pipeline, which is triggered on every master branch push. This builds the site, deploys it and sends an email to the whole company informing about the new version. This works perfectly so far ✅</p>
  <p>2.- DEV pipeline: should be triggered on a push to ANY branch that is not master. Builds the site, deploys the site to a DEV stage and sends an email to the author of the commit.</p>
  <p>Following the docs, this trigger configuration should trigger the DEV pipeline on all branches but master.</p>
  <pre><code>trigger:
    branches:
      exclude:
        - master
      include:
        - '*'
  </code></pre>
  <p>However, if I then try run the pipeline in any branch that is not master, I get the following error: <code>Encountered error(s): Could not find valid pipeline YAML file for this branch/tag</code></p>
  <p><a href="https://i.stack.imgur.com/dCIKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dCIKf.png" alt="Azure DevOps pipelines: Encountered error(s): Could not find valid pipeline YAML file for this branch/tag" /></a></p>
  <p>How can I setup the pipeline, so that it gets triggered by all branches but the master branch?</p>
  <p>Thanks in advance for your help!</p>
  <p>D</p>