Hi Patroklos,
Thanks for the quick feedback.
I am using SCM release 1.5
I am still facing some issues on one project.
sonar:sonar] 04:48:41.706 INFO p.PhasesTimeProfiler - Sensor ScmActivitySensor...
[sonar:sonar] 04:48:41.706 INFO o.s.p.s.ScmUrlGuess - Trying to guess scm provider from project layout...
[sonar:sonar] 04:48:41.706 INFO o.s.p.s.ScmUrlGuess - Found SCM type: git
[sonar:sonar] 04:48:41.706 INFO org.sonar.INFO - Retrieve SCM blame information...
[sonar:sonar] 04:48:42.472 INFO org.sonar.INFO - Retrieve SCM info for D:\GIT\XXX.cpp
[sonar:sonar] 04:48:42.503 INFO .p.s.SonarScmManager - Executing: cmd.exe /X /C "git blame --porcelain XXX.cpp"
etc
[sonar:sonar] 04:49:20.237 INFO org.sonar.INFO - Retrieve SCM blame information done: 38531 ms
[sonar:sonar] 04:49:20.331 INFO p.PhasesTimeProfiler - Sensor ScmActivitySensor done: 38625 ms
then I am getting:
org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: SCM URL must not be blank. Please check the parameter SCM URL or the <scm> section of Maven pom.
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
Caused by: org.sonar.api.utils.SonarException: SCM URL must not be blank. Please check the parameter SCM URL or the <scm> section of Maven pom.
at org.sonar.plugins.scmstats.UrlChecker.failure(UrlChecker.java:56)
at org.sonar.plugins.scmstats.UrlChecker.check(UrlChecker.java:36)
at org.sonar.plugins.scmstats.ScmStatsSensor.analyse(ScmStatsSensor.java:53)
my URL is not blank as it was processed by SCM activitySensor.
I even tried to disable the plugin for that project, still my build is failing, so I would need to uninstall the plugin for the whole system I guess, waiting for next release.
Hi Stephane. Thanks for the feedback. Which version of SCM activity are you using because the latest one (1.5) has the same behavior as Scm stats -> If the url is not set then the analysis fails.
Nevertheless I agree with your point so next release of SCM Stats plugin will fix it