title: tag VSTS build regarding branch name
body: <p>I'm using VSTS for CD/CI and I like to tag my builds (not the git branch) based on the git branch name.</p>
  
  <p>I got the below PowerShell script which is tagging the VSTS builds (it's different o git tag)
  :</p>
  
  <pre><code>If ("$(Build.SourceBranchName)" -like "master")
  {Write-Host "##vso[build.addbuildtag]prod"}
  
  If ("$(Build.SourceBranchName)" -like "deploy/dev*")
  {Write-Host "##vso[build.addbuildtag]dev"}
  </code></pre>
  
  <p>so when my code branch (git) is "master" then it's supposed to tag it "prod"
  which is does just fine.</p>
  
  <p>but when my branch name is something like "deploy/dev/feature1", it's supposed to tag it "dev" which it doesn't, it also doesn't error!</p>
  
  <p>any idea?</p>