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.
You can configure it on the SonarQube server:
Global: Settings → General → SCM → SVN
Per project: Settings → General Settings → SCM → SVN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With