Error: To use the property "sonar.branch.name" and analyze branches

Today I also faced that issue.
I resolved it by creating the next step in my YAML file

Put it somewhere between your SonarQubePrepare and SonarQubeAnalyze tasks.
Of course you can use it as PowerShell task in Azure Classic Pipeline

5 Likes