I am trying to run sonarqube as part of a hudson job. I installed sonarqube 5.4 and sonar plugin 2.0.1 in hudson.
But when the job runs I get the following error, where do I provide SVN authentication details for Sonar?
I already provided SVN details as part of my job but sonar is unable to read that properties.
Can't I make sonar to read source downloaded by hudson instead of again trying to connect to SVN?
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project MyProject: Error when executing blame for file Myfile.java: svn: E170001: Authentication required for ' Subversion repository'
As per SVN Plugin documentation you should most likely use sonar.svn.username
and sonar.svn.password.secured
properties.
The setting of such properties can be done in various places. Either in your project definition (see Scanner for Maven) or just follow the documentation of the Scanner for Jenkins (for example using -Dsonar.svn.username
).