java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist.

Jenkins JIRA | amirkibbar | 4 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

    [JENKINS-15463] JaCoCo Jenkins plugin does not work on a linux slave - Jenkins JIRA

    jenkins-ci.org | 8 months ago
    java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist.
  2. 0

    i'm using jacoco to produce coverage reports with jacoco-maven-plugin. The configuration is the basic simple one - just like in jacoco's example. The build has a post build action that collects the jacoco report - this is from the jacoco jenkins plugin. When running the build on a linux slave the following error appears in the log: 10:54:20 java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist. 10:54:20 at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) 10:54:20 at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116) 10:54:20 at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181) 10:54:20 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 10:54:20 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 10:54:20 at hudson.model.Run.execute(Run.java:1527) 10:54:20 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 10:54:20 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:54:20 at hudson.model.Executor.run(Executor.java:236) you can see that the plugin attempts to access \usr\local\jenkins\workspace\carmel-commons as the base dir - the slashes it uses are windows slashes and not linux ones.

    Jenkins JIRA | 4 years ago | amirkibbar
    java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist.
  3. 0

    i'm using jacoco to produce coverage reports with jacoco-maven-plugin. The configuration is the basic simple one - just like in jacoco's example. The build has a post build action that collects the jacoco report - this is from the jacoco jenkins plugin. When running the build on a linux slave the following error appears in the log: 10:54:20 java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist. 10:54:20 at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) 10:54:20 at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116) 10:54:20 at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181) 10:54:20 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 10:54:20 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) 10:54:20 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 10:54:20 at hudson.model.Run.execute(Run.java:1527) 10:54:20 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 10:54:20 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:54:20 at hudson.model.Executor.run(Executor.java:236) you can see that the plugin attempts to access \usr\local\jenkins\workspace\carmel-commons as the base dir - the slashes it uses are windows slashes and not linux ones.

    Jenkins JIRA | 4 years ago | amirkibbar
    java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    From this log you can see that first it finds exec file in my workspace and then says that this workspace does not exist. I'm confused. Recording test results [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/**.exec;**/classes;**/src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /scratch/jenkins/workspace/reference/build/tmp/jacoco/jacoco.execERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.lang.IllegalStateException: basedir /scratch/jenkins/workspace/reference does not exist. at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:720) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:695) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:642) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Recording fingerprints Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 4 years ago | Aleksandr Zhuikov
    java.lang.IllegalStateException: basedir /scratch/jenkins/workspace/reference does not exist.
  6. 0

    From this log you can see that first it finds exec file in my workspace and then says that this workspace does not exist. I'm confused. Recording test results [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/**.exec;**/classes;**/src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /scratch/jenkins/workspace/reference/build/tmp/jacoco/jacoco.execERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.lang.IllegalStateException: basedir /scratch/jenkins/workspace/reference does not exist. at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:720) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:695) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:642) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Recording fingerprints Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 4 years ago | Aleksandr Zhuikov
    java.lang.IllegalStateException: basedir /scratch/jenkins/workspace/reference 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 \usr\local\jenkins\workspace\carmel-commons does not exist.

      at org.apache.tools.ant.DirectoryScanner.scan()
    2. Ant
      DirectoryScanner.scan
      1. org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879)
      1 frame
    3. hudson.plugins.jacoco
      JacocoPublisher.perform
      1. hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116)
      2. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181)
      2 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994)
      1 frame
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      2. hudson.model.Run.execute(Run.java:1527)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:236)
      2 frames