Azure DevOps build pipelines fails with error: To use the property “sonar.branch.name”, the branch plugin is required but not installed.

After upgrading our SonarQube Community version to the newly released version, our build pipelines hosted in the Azure DevOps (formerly VSTS) started failing with below errors:

“02:14:02.317 ERROR: Caused by: Validation of project reactor failed:
o To use the property “sonar.branch.name”, the branch plugin is required but not installed. See the documentation of branch support: https://redirect.sonarsource.com/doc/branches.html”

We were using the same release branches that we were using earlier and there was no changes made to the build configuration. Except that we shifted to new instance of SonarQube Server and hence the new connection that we created for it. So we checked all other things and also checked internet in search of possible solutions. Finally, we came across this post: https://jira.sonarsource.com/browse/VSTS-161

As it mentioned clearly, this issue started with the SonarQube Community version 7.2. Once we reverted to the previous build version of SonarQube, the pipelines started working fine. We then switched to new version 7.3 of SonarQube, and no issues with it too. Guess we should have used that earlier. 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s