Skip to content

Instantly share code, notes, and snippets.

@Mishco
Created June 2, 2022 08:33
Show Gist options
  • Save Mishco/cab49e15538c29d581208afb32e33e9f to your computer and use it in GitHub Desktop.
Save Mishco/cab49e15538c29d581208afb32e33e9f to your computer and use it in GitHub Desktop.
- powershell: |
$params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w,/,-]*"\,?'
Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params"
displayName: "Remove branches info"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment