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

Wipe out workspace nonfunctional with local subdirecory

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None

      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.

          [JENKINS-14717] Wipe out workspace nonfunctional with local subdirecory

          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.

          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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: