Hi All,
I am trying to integrate my Gradle based Java Project to be scanned by Sonarqube ran through a jenkins pipeline.
Issue - The build fails with the below error while running the Sonarqube task in build.gradle( root directory)
[INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':sonarqube' (up-to-date check took 0.0 secs) due to:
2021-03-01 15:58:17:616 GMT+05:30 Task has not declared any outputs.
[DEBUG] [org.sonarqube.gradle.SonarQubeTask] Could not complete symbolic execution:
2021-03-01 15:58:28:087 GMT+05:30 org.sonar.java.se.ExplodedGraphWalker$MaximumStepsReachedException: reached limit of 16000 steps for method validateLinkedTradeIdIsPopulated#823 in class CustomTradeValidator
[ERROR] [org.gradle.BuildExceptionReporter]
[org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
[org.gradle.BuildExceptionReporter]
[org.gradle.BuildExceptionReporter] * What went wrong:
[ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarqube'.
[ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException (no error message)
[ERROR] [org.gradle.BuildExceptionReporter]
[ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
[ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
Execution failed for task ':sonarqube'.
[ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException (no error message)
[ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException
Gradle version : 6.8.2
Sonarqube Version : 7.9.1
Sonarqube Plugin version : 3.1
Java - jdk1.8.0_191
Kindly suggest how to fix this
Regards
Rahul Singh