Issue with SonarQube Gerrit Integration #136
Unanswered
senthilnathanrajendran
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Daemon will be stopped at the end of the build after running out of JVM memory
SonarQube task 'AYVeb0_iFxqTWHRKXopX' is in progress.
Waiting PT5S before re-checking SonarQube task 'AYVeb0_iFxqTWHRKXopX' status ...
SonarQube task 'AYVeb0_iFxqTWHRKXopX' completed.
Issues to be commented: 0
Issues to be involved in score calculation: 0
ERROR: Build step failed with exception
java.lang.IllegalStateException: Expected NUMBER but was BEGIN_OBJECT at path $.labels.
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.JsonTreeReader.nextInt(JsonTreeReader.java:242)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.TypeAdapters$6.read(TypeAdapters.java:207)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.TypeAdapters$6.read(TypeAdapters.java:199)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
Caused: me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.JsonSyntaxException
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.Gson.fromJson(Gson.java:932)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.Gson.fromJson(Gson.java:1003)
at me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gson.Gson.fromJson(Gson.java:975)
at me.redaalaoui.gerrit_rest_java_client.rest.http.changes.parsers.ReviewResultParser.parseReviewResult(ReviewResultParser.java:35)
at me.redaalaoui.gerrit_rest_java_client.rest.http.changes.RevisionApiRestClient.review(RevisionApiRestClient.java:91)
at org.jenkinsci.plugins.sonargerrit.gerrit.GerritRevision.sendReview(GerritRevision.java:39)
at org.jenkinsci.plugins.sonargerrit.SonarToGerritPublisher.perform(SonarToGerritPublisher.java:135)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755)
at hudson.model.Build$BuildExecution.post2(Build.java:178)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699)
at hudson.model.Run.execute(Run.java:1913)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:99)
at hudson.model.Executor.run(Executor.java:432)
Build step 'Post SonarQube issues as Gerrit comments' marked build as failure
ERROR Gerrit response: FoundFinished: FAILURE
Jenkins is not able to post SonarQube comments
can someone help us to find the issue ?
Beta Was this translation helpful? Give feedback.
All reactions