on-internet
← Community

Override SonarQube automatic branch detection

Stack Overflow ·

SonarQube has the concept of a main branch irrespective of its actual name. According to the documentation, the key is not to pass the sonar.branch.name property to the analysis. So far, so good. However, when my Gradle build in Github does not set the property, then automatic branch detection kicks in and I get: Detected branch/PR in 'GitHub Action' Auto-configuring branch 'develop' Well, that’s unfortunate, because now sonar.branch.name is set to develop, and SonarQube will not accept it as the main branch. This develop is set as the default branch in Github, but the scanner seems not able t

Comments

Sign in or sign up to comment and upvote.

No comments yet.