title: How to exclude one branch in Azure DevOps build pipeline
body: <p>In Azure DevOps its possible to define <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&amp;tabs=yaml" rel="nofollow noreferrer">build pipelines</a> which by default is executed when a code is pushed to a branch.</p>
  
  <p>I want the pipeline to run for all branches except one. The configuration</p>
  
  <pre><code>trigger:
    branches:
      include:
      - branchToInclude
      exclude:
      - branchToExclude
  </code></pre>
  
  <p>works when I push to branchToInclude.</p>
  
  <p>But if I take away the include part the pipeline is not executed when I push to branchToInclude.</p>
  
  <pre><code>trigger:
    branches:
      exclude:
      - branchToExclude
  </code></pre>
  
  <p>A * instead of branchToInclude is not accepted when I try to save the file. Is there a way to configure a pipeline to execute for all branches except one?</p>