Forked from wilbit/sonarqube-remove-branch-name.yml
Created
January 11, 2021 13:49
-
-
Save eriawan/147101f34375a0f6ba196c8981f11821 to your computer and use it in GitHub Desktop.
It removes sonar.branch.name property in Azure Pipeline. Put it somewhere between your SonarQubePrepare and SonarQubeAnalyze tasks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- powershell: | | |
$params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w/,-.]*"\,?' | |
Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment