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

Wipe out workspace nonfunctional with local subdirecory

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using Git as the SCM, if you set the "Local subdirectory for repo" option, the "Wipe out workspace before build" option no longer works.

      My guess is that it is using git clean on the subdirectory, but that ignores the rest of the workspace.

      The workaround I'm currently using is to delete the workspace in my build script.

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            Wipe workspace with a subdirectory succeeds with git plugin 2.0 and git client plugin 1.4.6 using the command line implementation.

            Wipe workspace with a subdirectory fails with git plugin 2.0 and git client plugin 1.4.6 using the jgit implementation on Windows because the jgit plugin leaves one or more pack files open so that they cannot be deleted.

            Show
            markewaite Mark Waite added a comment - Wipe workspace with a subdirectory succeeds with git plugin 2.0 and git client plugin 1.4.6 using the command line implementation. Wipe workspace with a subdirectory fails with git plugin 2.0 and git client plugin 1.4.6 using the jgit implementation on Windows because the jgit plugin leaves one or more pack files open so that they cannot be deleted.
            Hide
            markewaite Mark Waite added a comment -

            Since the original submitter reported that they are able to clear the repository with "git clean", and since the "wipe workspace" works correctly on Linux, I've closed this bug and left JENKINS-19994 as the placeholder bug for the Windows specific problem that pack files are left open. When the pack files are left open on Windows, the operating system will not allow the files to be deleted.

            Show
            markewaite Mark Waite added a comment - Since the original submitter reported that they are able to clear the repository with "git clean", and since the "wipe workspace" works correctly on Linux, I've closed this bug and left JENKINS-19994 as the placeholder bug for the Windows specific problem that pack files are left open. When the pack files are left open on Windows, the operating system will not allow the files to be deleted.

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                landerson Laplie Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: