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

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

    XMLWordPrintable

    Details

    • 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

          Hide
          gcummings Geoff Cummings added a comment -

          it seems to delete files, and files within folders correctly.
          It does not delete the directories.

          Show
          gcummings Geoff Cummings added a comment - it seems to delete files, and files within folders correctly. It does not delete the directories.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I have the same issue for both Linux and Windows hosts.
          Backward compatibility has been corrupted

          Show
          oleg_nenashev Oleg Nenashev added a comment - I have the same issue for both Linux and Windows hosts. Backward compatibility has been corrupted
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          src/main/java/hudson/plugins/ws_cleanup/PreBuildCleanup.java
          src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java
          http://jenkins-ci.org/commit/ws-cleanup-plugin/267f36cd45d9e8f05b6dcb7e4746187ffac4d410
          Log:
          [FIXED JENKINS-19574] Restore backward compatibility in prebuild cleanup

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: src/main/java/hudson/plugins/ws_cleanup/PreBuildCleanup.java src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java http://jenkins-ci.org/commit/ws-cleanup-plugin/267f36cd45d9e8f05b6dcb7e4746187ffac4d410 Log: [FIXED JENKINS-19574] Restore backward compatibility in prebuild cleanup
          Hide
          vjuranek vjuranek added a comment -

          fixed in 0.18 release right now.

          Show
          vjuranek vjuranek added a comment - fixed in 0.18 release right now.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: