Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29666

JAcoco publisher task fails with ioexception:-Data Error (cyclic redundancy check)

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • jacoco-plugin

    Description

      We are running build and junit test on different slave machines. The code coverage is gathered perfectly on slave machine, the jenkins jacoco plugin finds the exec file but at the time of publishing report it fails with following error:-
      [JaCoCo plugin] Collecting JaCoCo coverage data...
      [JaCoCo plugin] */coverage/.exec;/out/jars;*/src/RAC; locations are configured
      [JaCoCo plugin] Number of found exec files for pattern */coverage/*.exec: 1
      [JaCoCo plugin] Saving matched execfiles: D:\workdir\tc10.1.5_rac_client\coverage\rac_client.exec
      [JaCoCo plugin] Saving matched class directories for class-pattern: **/out/jars: D:\workdir\tc10.1.5_rac_client\out\jars
      [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/RAC: D:\workdir\tc10.1.5_rac_client\src\RAC
      [JaCoCo plugin] Loading inclusions files..
      [JaCoCo plugin] inclusions: []
      [JaCoCo plugin] exclusions: [**/*Messages*.class]
      [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0]
      [JaCoCo plugin] Publishing the results..
      Failed to load F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco
      java.io.IOException: Data error (cyclic redundancy check)
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(Unknown Source)
      at java.io.BufferedInputStream.read1(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at java.io.FilterInputStream.read(Unknown Source)
      at java.io.PushbackInputStream.read(Unknown Source)
      at java.util.zip.InflaterInputStream.fill(Unknown Source)
      at java.util.zip.InflaterInputStream.read(Unknown Source)
      at java.util.zip.ZipInputStream.read(Unknown Source)
      at java.util.zip.ZipInputStream.closeEntry(Unknown Source)
      at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
      at org.jacoco.core.analysis.Analyzer.analyzeZip(Analyzer.java:245)
      at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
      at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133)
      at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
      at hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:227)
      at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:377)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      at hudson.model.Run.execute(Run.java:1776)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      [JaCoCo plugin] Could not parse coverage results. Setting Build to failure.
      Build step 'Record JaCoCo coverage report' changed build result to FAILURE
      Finished: FAILURE

      Note:- jacoco plugin copies the classes, source files and exec file on the master home directory at F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco location. But dont know the reason why it fails with above error. Also, the slave where this job runs does not have F:\ drive.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            ognjenb Ognjen Bubalo
            prasad0612 Prasad Sawant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: