Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube Build Breaker plugin: Report processing did not complete successfully: FAILED

Tags:

I am trying to upload reports generated by Istanbul to Sonar dashboard using a gulp task and it fails with the below error. Looks like the Build Breaker plugin in SonarQube is timing out before it can upload the report to Sonar. Any way that i can tweak this plugin?

I am using Sonar 5.3.

15:42:43.411 INFO: Analysis report generated in /workspace/{project}/.sonar/report
15:42:43.430 INFO: ------------------------------------------------------------------------
15:42:43.430 INFO: EXECUTION FAILURE
15:42:43.430 INFO: ------------------------------------------------------------------------
15:42:43.430 INFO: Total time: 5:06.287s
15:42:43.609 INFO: Final Memory: 57M/2603M
15:42:43.609 INFO: ------------------------------------------------------------------------
15:42:43.609 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Report processing did not complete successfully: FAILED
      at org.sonar.plugins.buildbreaker.QualityGateBreaker.getAnalysisId(QualityGateBreaker.java:152)
      at org.sonar.plugins.buildbreaker.QualityGateBreaker.execute(QualityGateBreaker.java:108)
      at org.sonar.plugins.buildbreaker.QualityGateBreaker.executeOn(QualityGateBreaker.java:95)
      at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:65)
      at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:55)
like image 300
joy779 Avatar asked Feb 23 '17 14:02

joy779


1 Answers

This is a known invalid issue: #14 (he problem occurs on the server side, not in Build Breaker mechanism/logic).

Matthew DeTullio's comment:

This is because the server side background task for your project is failing. You need to check the logs there and fix that problem first. The report processing step is when SQ computes the quality gate status. This plugin simply checks the status computed there, so if processing fails this plugin will mark the analysis a failure.

In my company we found on the server side:

java.lang.OutOfMemoryError: GC overhead limit exceeded
like image 83
agabrys Avatar answered Sep 24 '22 15:09

agabrys