java.lang.IllegalStateException: basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist

Jenkins JIRA | Adam Cath | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    # Create a job with the Jacoco plugin pointing at this project: https://github.com/adamcath/jenkins-jacoco-delimiter-bug.git # The job should execute "cd project2; ./gradlew build" # Set the Jacoco config to: {code} Path to exec files: project1/build/jacoco/**.exec,project2/build/jacoco/**.exec Path to class directories: project1/build/classes,project2/build/classes Path to source directories: project1/src,project2/src {code} # Run the build. Note that everything works fine. # Now, edit the config as follows: {code} // Note spaces between list items! Path to exec files: project1/build/jacoco, project2/build/jacoco Path to class directories: project1/build/classes, project2/build/classes Path to source directories: project1/src, project2/src {code} # Run the build. Result: RTE during Jacoco step: {code} [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] project1/build/jacoco/**.exec, project2/build/jacoco/**.exec;project1/build/classes, project2/build/classes;project1/src, project2/src; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /build/jenkins/workspace/acath-test-job/project2/build/jacoco/test.exec [JaCoCo plugin] Saving matched class directories: [JaCoCo plugin] Saving matched source directories: [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.lang.IllegalStateException: basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550) at org.codehaus.plexus.util.FileUtils.getFileAndDirectoryNames(FileUtils.java:1717) at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1645) at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1627) at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1601) at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1584) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:129) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714) at hudson.model.Build$BuildExecution.post2(Build.java:182) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663) at hudson.model.Run.execute(Run.java:1714) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Finished: FAILURE {code}

    Jenkins JIRA | 3 years ago | Adam Cath
    java.lang.IllegalStateException: basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist
  2. 0

    # Create a job with the Jacoco plugin pointing at this project: https://github.com/adamcath/jenkins-jacoco-delimiter-bug.git # The job should execute "cd project2; ./gradlew build" # Set the Jacoco config to: {code} Path to exec files: project1/build/jacoco/**.exec,project2/build/jacoco/**.exec Path to class directories: project1/build/classes,project2/build/classes Path to source directories: project1/src,project2/src {code} # Run the build. Note that everything works fine. # Now, edit the config as follows: {code} // Note spaces between list items! Path to exec files: project1/build/jacoco, project2/build/jacoco Path to class directories: project1/build/classes, project2/build/classes Path to source directories: project1/src, project2/src {code} # Run the build. Result: RTE during Jacoco step: {code} [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] project1/build/jacoco/**.exec, project2/build/jacoco/**.exec;project1/build/classes, project2/build/classes;project1/src, project2/src; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /build/jenkins/workspace/acath-test-job/project2/build/jacoco/test.exec [JaCoCo plugin] Saving matched class directories: [JaCoCo plugin] Saving matched source directories: [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.lang.IllegalStateException: basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550) at org.codehaus.plexus.util.FileUtils.getFileAndDirectoryNames(FileUtils.java:1717) at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1645) at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1627) at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1601) at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1584) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:129) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714) at hudson.model.Build$BuildExecution.post2(Build.java:182) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663) at hudson.model.Run.execute(Run.java:1714) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Finished: FAILURE {code}

    Jenkins JIRA | 3 years ago | Adam Cath
    java.lang.IllegalStateException: basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist
  3. 0

    Jenkins issues - [JIRA] [jacoco] (JENKINS-22776) Jacoco: spaces don't work when listing multiple class/source folders

    nabble.com | 7 months ago
    java.lang.IllegalStateException: basedir / /lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-22776] Jacoco: spaces don't work when listing multiple class/source folders - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    java.lang.IllegalStateException: basedir / /lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist
  6. 0

    Jenkins issues - [JIRA] [jacoco] (JENKINS-19916) Confusing failure mode when no classes found by classPattern

    nabble.com | 1 year ago
    java.lang.IllegalStateException: basedir C:\Jenkins\jobs\Trunk_TestCoverage\builds\2014-10-01_09-16-20\jacoco\classes does not exist

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      basedir /var/lib/jenkins/jobs/acath-test-job/builds/2014-06-05_10-58-35/jacoco/classes does not exist

      at org.codehaus.plexus.util.DirectoryScanner.scan()
    2. Plexus Common Utilities
      FileUtils.getFiles
      1. org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550)
      2. org.codehaus.plexus.util.FileUtils.getFileAndDirectoryNames(FileUtils.java:1717)
      3. org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1645)
      4. org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1627)
      5. org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1601)
      6. org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1584)
      6 frames
    3. hudson.plugins.jacoco
      JacocoPublisher.perform
      1. hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:129)
      2. hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138)
      3. hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
      4. hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278)
      5. hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260)
      6. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380)
      6 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714)
      4. hudson.model.Build$BuildExecution.post2(Build.java:182)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663)
      6. hudson.model.Run.execute(Run.java:1714)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:231)
      9 frames