Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN authentication failure when running a Sonar analysis in Jenkins 1.620 SonarQube 5.1.1

I have a java maven web project, I have also Jenkins 1.620 and SonarQube 5.1.1.

I have added in jenkins a maven post action with SonarQube setting the jdk as 7u79, the same used by the project.

When I run the jenkins task, I get on the console next error:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project *****: The svn blame command [svn blame --xml --non-interactive -x -w src/main/java/*****.java] failed: svn: PROPFIND request failed on '/*****/trunk/src/main/java/*****.java'
[ERROR] svn: PROPFIND of '/*****/trunk/src/main/java/*****.java': authorization failed (http://*****.*****.*****)
[ERROR] -> [Help 1]

It seems that I have to put login information for SVN in SonarQube task for a Maven project in Jenkins, but I have not found any documentation on that, and I do not know if it should be as MAVEN_OPTS or Additional Properties, and also the syntaxis.

Thanks in advance.

like image 796
gbelin Avatar asked Jul 17 '15 07:07

gbelin


1 Answers

You can configure it on the SonarQube server:

Global: Settings → General → SCM → SVN

Per project: Settings → General Settings → SCM → SVN

like image 152
agabrys Avatar answered Sep 19 '22 11:09

agabrys