Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10071

Omit stack trace when SCM provider autodetection failed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1
    • Component/s: Scanner, Scm
    • Labels:
      None

      Description

      When more than one possible SCM are detected, analysis fails with an error, and that would be enough, the stack trace is not useful for anyone.

      ERROR: Error during SonarQube Scanner execution
      java.lang.IllegalStateException: SCM provider autodetection failed. Both svn and git claim to support this project. Please use sonar.scm.provider to define SCM of your project.
      	at org.sonar.scanner.scm.ScmConfiguration.autodetection(ScmConfiguration.java:130)
      	at org.sonar.scanner.scm.ScmConfiguration.start(ScmConfiguration.java:92)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
      	at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320)
      	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
      	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
      	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
      	at org.picocontainer.behaviors.Stored.start(Stored.java:110)
      	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
      	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
      	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
      	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:143)
      	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
      	at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
      	at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
      	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
      	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
      	at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)
      	at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:118)
      	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:72)
      	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      	at com.sun.proxy.$Proxy0.execute(Unknown Source)
      	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:166)
      	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:126)
      	at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
      	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
      	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
      

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            janos.gyerik Janos Gyerik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: