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

Delete workspace before build starts - does not delete folders in workspace

XMLWordPrintable

      After upgrading to 0.17 the 'Delete workspace before build starts' does not delete the workspace

      I created a simple job which creates a test directory - mkdir testing
      Selected 'Delete workspace before build starts'

      Job runs first time ok as empty workspace.
      Second run fails as the 'testing' directory already exists, it should have been deleted.

      [EnvInject] - Loading node environment variables.
      Building on master in workspace /tr/j/jh/workspace/Test_Delete
      
      Deleting project workspace... done
      
      [Test_Delete] $ bash -xe /tmp/hudson4293487083551039325.sh
      + mkdir testing
      mkdir: cannot create directory `testing': File exists
      Build step 'Execute shell' marked build as failure
      Notifying upstream projects of job completion
      Finished: FAILURE
      

            vjuranek vjuranek
            gcummings Geoff Cummings
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: