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

java.io.IOException: While reading execution data-file: /var/jenkins/jobs/AppBuild/jobs/JobName/builds/22/jacoco/execFiles/exec0/jacoco.exec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • jacoco-plugin
    • None

      We have upgraded the Jenkins to 2.213 and the Jacoco plugin is 3.0.4. It was working fine before the upgrade. Below is the error snippet. Please help me on fixing this issue.

       

      Pipeline] jacoco
      [JaCoCo plugin] Collecting JaCoCo coverage data...
      [JaCoCo plugin] */.exec;/classes;*/src/main/java; locations are configured
      [JaCoCo plugin] Number of found exec files for pattern */*.exec: 2
      [JaCoCo plugin] Saving matched execfiles: /tmp/workspace/DevOps/JobName/runtime/README.exec /tmp/workspace/DevOps/JobName/target/coverage-reports/jacoco-ut.exec
      [JaCoCo plugin] Saving matched class directories for class-pattern: **/classes:
      [JaCoCo plugin] - /tmp/workspace/DevOps/JobName/target/classes 145 files
      [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/main/java:
      [JaCoCo plugin] Source Inclusions: */.java
      [JaCoCo plugin] Source Exclusions:
      [JaCoCo plugin] - /tmp/workspace/DevOps/JobName/src/main/java 125 files
      [JaCoCo plugin] Loading inclusions files..
      [JaCoCo plugin] inclusions: []
      [JaCoCo plugin] exclusions: []
      [Pipeline] }
      [Pipeline] // script
      Error when executing always post condition:
      java.io.IOException: While reading execution data-file: /var/jenkins_home/jobs/DevOps/jobs/JobName/builds/21/jacoco/execFiles/exec0/jacoco.exec
      at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:98)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:139)
      at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:110)
      at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:339)
      at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:326)
      at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:657)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Invalid execution data file.
      at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:89)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:95)
      ... 13 more

       

       

            Unassigned Unassigned
            rameshar Ramesh Audireddy
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: