@mavs877 Did you ever find a solution for this?
@ganncamp We’re running into the same issue. Here’s our use case:
We use Azure DevOps for builds and BitBucket for pull requests.
When we open a pull request, BitBucket posts a webhook to Azure DevOps, which kicks off our build, and we set these parameters:
sonar.pullrequest.key=$(comes_from_incoming_webhook)
sonar.pullrequest.base=$(comes_from_incoming_webhook)
sonar.pullrequest.branch=$(Build.SourceBranch)
The problem is that the Azure DevOps’ SonarQube plugin is automatically setting sonar.branch.name
, so then all four of these settings are set, and the analysis fails:
sonar.pullrequest.key=$(comes_from_incoming_webhook)
sonar.pullrequest.base=$(comes_from_incoming_webhook)
sonar.pullrequest.branch=$(Build.SourceBranch)
sonar.branch.name=[automatically set by the Azure DevOps' SonarQube plugin. Can we disable or override this?]
Is there any way to remove sonar.branch.name
after the plugin automatically sets it?
Thanks