Sonar scanner and svn authentication

Hello
This is my setup

  • SonarQube ; 9.2.4.50792
  • Sonar scanner : 5.1.0.28487
    I have a .net project under svn that is being integrated in teamcity and analyzed with sonar.

My problem occurs when the sonar scanner tries to get blame informations, its not able to because of authentication issue

java.lang.IllegalStateException: Authentication error when executing blame for file …
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: Authentication required for…

I saw some posts saying svn credentials could be filled in under administration/configuration section but im not able to see any SVN section when i log in SonarQube 9.2.

At the project level, i also have nothing regarding svn credentials i could fill in.

I tried to pass the sonar.svn.username and sonar.svn.password.secured as arguments to the scanner begin phase but its as if they were ignored.

Could you please help to understand whats the problem and how i can make this work ?

Thanks !!!

and happy new year all !

Hello @MouradK

Happy New Year 2022.
Indeed the SonarQube server side SVN credentials configuration has been dropped in SonarQube 9.1 for security purposes. See [SONAR-15380] Remove SVN properties configuration section on Administration - SonarSource
As per the above JIRA ticket, passing sonar.svn.username and sonar.svn.password.secured as arguments to the scanner is the new way to go, as documented at https://docs.sonarqube.org/latest/analysis/scm-integration/#header-2

If after double checking that you pass the correct settings, you still have the problem, please send me:

  • Debug logs of your begin, build and end steps
  • The <PROJECT_ROOT>/.sonarqube/out/sonar-project.properties file (you may redact what needs to be redacted)

Olivier