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

Clone workspace doesn't copy empty directories when cloning entire workspace

    Details

    • Similar Issues:

      Description

      Currently clone workspace uses a */ glob to copy an entire workspace which causes it to miss empty directories. This can cause problems building if build scripts expect a directory to be present, even if it's empty (say a plugins directory).

        Attachments

          Activity

          Hide
          glennji Glenn J. Mason added a comment -

          I've just been hit by this too. Is there an Ant include pattern which can be used to include empty directories?

          Show
          glennji Glenn J. Mason added a comment - I've just been hit by this too. Is there an Ant include pattern which can be used to include empty directories?
          Hide
          jfigler jfigler added a comment -

          Hi – I'm curious if anyone knows of a workaround for this issue?

          Show
          jfigler jfigler added a comment - Hi – I'm curious if anyone knows of a workaround for this issue?
          Hide
          laurent_malvert Laurent Malvert added a comment -

          Would also be interested in a workaround.

          As a result of this, mvn release:prepare fails when attempting to use it on a cloned workspace, because the .svn/tmp folder is gone.

          It's possible to recreate it manually with a batch script and to run svn cleanup in a pre-build step, but it's kind of a drag obviously. Didn't find a globbing alternative pattern to fix this.

          Show
          laurent_malvert Laurent Malvert added a comment - Would also be interested in a workaround. As a result of this, mvn release:prepare fails when attempting to use it on a cloned workspace, because the .svn/tmp folder is gone. It's possible to recreate it manually with a batch script and to run svn cleanup in a pre-build step, but it's kind of a drag obviously. Didn't find a globbing alternative pattern to fix this.
          Hide
          etiennebec Etienne Bec added a comment -

          I created a PR which add an option to copy empty directories: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/pull/12

          Show
          etiennebec Etienne Bec added a comment - I created a PR which add an option to copy empty directories: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/pull/12

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              mleinart mleinart
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: