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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ws-cleanup-plugin
    • Labels:
    • Environment:
      workspace cleanup 0.17
    • Similar Issues:

      Description

      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
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: