Dimensions CM Expert Chain to SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    • SonaQube : 6.7.5
    • Sonar Runner : 2.4
    • MicroFocus Dimensions CM 14.3 pulse
  • what are you trying to achieve

    I try to connection to Dimensions CM Pulse

  • what have you tried so far to achieve this

When I connect to expert chain to SonarQube, the output log occurred as below…

########################################################################
C:\sonar-runner-2.4\bin>sonar-runner.bat

C:\sonar-runner-2.4\bin..

SonarQube Runner 2.4

Java 1.8.0_66 Oracle Corporation (64-bit)

Windows Server 2012 R2 6.3 amd64

INFO: Runner configuration file: C:\sonar-runner-2.4\bin..\conf\sonar-runner.properties

INFO: Project configuration file: NONE

INFO: Default locale: "en_GB", source code encoding: "UTF-8"

INFO: Work directory: C:\sonar-runner-2.4\bin..sonar

INFO: SonarQube Server 6.7.5.38563

09:38:49.054 INFO - Publish mode

09:38:49.863 INFO - Load global settings

09:38:50.355 INFO - Load global settings (done) | time=494ms

09:38:50.363 INFO - Server id: BF41A1F2-AWbUF2WtRatdOFSJ2ZVV

09:38:50.373 INFO - User cache: C:\Users\Administrator.sonar\cache

09:38:58.962 INFO - Load plugins index

09:38:59.025 INFO - Load plugins index (done) | time=63ms

09:38:59.043 INFO - Download sonar-flex-plugin-2.3.jar

09:38:59.087 INFO - Download sonar-csharp-plugin-6.5.0.3766.jar

09:38:59.182 INFO - Download sonar-javascript-plugin-3.2.0.5506.jar

09:38:59.276 INFO - Download sonar-java-plugin-4.15.0.12310.jar

09:38:59.340 INFO - Download sonar-php-plugin-2.11.0.2485.jar

09:38:59.368 INFO - Download sonar-python-plugin-1.8.0.1496.jar

09:38:59.435 INFO - Download sonar-scm-git-plugin-1.3.0.869.jar

09:38:59.478 INFO - Download sonar-scm-svn-plugin-1.6.0.860.jar

09:38:59.548 INFO - Download sonar-typescript-plugin-1.1.0.1079.jar

09:38:59.598 INFO - Download sonar-xml-plugin-1.4.3.1027.jar

09:39:20.359 INFO - Process project properties

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

Total time: 1:35.163s

Final Memory: 7M/134M

INFO: ------------------------------------------------------------------------

ERROR: Error during Sonar runner execution

ERROR: Unable to execute Sonar

ERROR: Caused by: You must define the following mandatory properties for ‘Unknown’: sonar.projectKey, sonar.sources

ERROR:

ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.

ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

The execution failure is expected at this stage but you should see the runner at least connect to the sonar server. If that is not the case then please take this up with Sonar support.

You’ve executed an analysis, but without mandatory properties:

  • sonar.projectKey
  • sonar.sources

Read more about Analysis Parameters.

1 Like