Analyzing branches with special characters in their names

Using SonarQuber Runner 2.4 with cli, I’m trying to analyze a branch as below and I get “…is not a valid branch name” error. If I remove these characters it works fine. How can I get around this beside changing branch name since its interconnected with the same name on multiple products.

sonar-runner -Dsonar.branch=some-branch-name-with-öığş-etc

Hi,

the branch name handling is part of the Sonarqube server application.
What Sonarqube version do you use ?
Guess it may be fixed with https://jira.sonarsource.com/browse/SONAR-11561,
means you have to update to Sonarqube 7.7
Also you should use the Sonarqube scanner instead of Sonarqube runner, the runner is the predecessor, see documentation
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

Gilbert

1 Like

sonar.branch has been dropped in version 7.8 (read more here). I would recommended to not invest your time in solution which has been removed.