Stuck on analyze

  • SonarQube 10.3 SonarScanner 4.7.0.2747
  • zip
  • Analyze Java Project
  • Run scan for java project in Jenkins CI/CD
    Scan stuck, there is log when i start scan in debug mode, how can I determine the cause of this error?:
    **01:07:18.578 INFO: Starting batch processing.
    01:07:19.637 INFO: The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
    01:07:20.293 DEBUG: Incomplete Semantic, unknown parameter type ‘BadCredentialsException’ line 29 col 19
    01:07:20.459 DEBUG: Incomplete Semantic, unknown parameter type ‘BadCredentialsException’ line 29 col 19
    01:07:28.579 INFO: 51% analyzed
    01:07:38.580 INFO: 51% analyzed
    01:07:48.580 INFO: 51% analyzed
    01:07:58.581 INFO: 51% analyzed
    01:08:08.581 INFO: 51% analyzed
    **

Hey there.

  • SonarQube v10.3 is an EOL version of SonarQube, you should upgrade to v10.6 ASAP
  • I have a feeling you’re using the SonarScanner CLI to analyze your project, rather than the Scanner for Maven or Gradle. Is that true? If your build is using either Maven/Gradle, you’re much better off using one of the dedicated scanners to make sure the bytecode is properly passed in.

Sorry for late display, some changes of code and version update resolve this error. Thank’s