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

Shouldn't prevent build from starting if WS doesn't exist and we're using a pattern

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ws-cleanup-plugin
    • None

      When trying to build a job that uses the cleanup plugin with a pattern, I get the following exception (where I replaced the real job name with $job_name):

      Deleting project workspace... FATAL: basedir /tmp/jenkins-root-ssh/workspace/$job_name does not exist.
      java.lang.IllegalStateException: basedir /tmp/jenkins-root-ssh/workspace/$job_name does not exist.
      	at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:852)
      	at hudson.plugins.ws_cleanup.Cleanup.invoke(Cleanup.java:30)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:287)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      

      Creating the directory made it stop complaining.

            vjuranek vjuranek
            jorgenpt Jørgen Tjernø
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: