The sonar.branch analysis parameter is deprecated since SonarQube 6.7 (
SONAR-9799), and this old way of analyzing branches is advantageously replaced by the proper support for branches and PRs provided with SonarQube DE 6.7+.
The analysis should now fail with a clear message when the parameter is used so that the main branch is not overridden.
The message could be:
The 'sonar.branch' parameter is no longer supported. You should stop using it.
Branch analysis is available in Developer Edition and above. See https://redirect.sonarsource.com/editions/developer.html for more information.
The documentation should be updated to stop mentioning this parameter as deprecated.
On scanner side:
- fail the analysis when 'sonar.branch" is provided
On server side:
- deprecate the 'branch' parameter in the WS api/projects/create
For now, sonar.branch should still work for SonarCloud analyses.