• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Windows master, Windows slave, Linux slave

      If you enable the clone workspace plugin for a Linux slave and clone from the workspace of a Windows slave, the result is a flat directory of files containing the subdirectory paths with backslashes, instead of a directory tree.

          [JENKINS-9942] Clone from windows to linux slave fails

          Andrew Bayer added a comment -

          I think this is probably an issue in the workspace archiver logic in the core.

          Andrew Bayer added a comment - I think this is probably an issue in the workspace archiver logic in the core.

          blalor added a comment -

          Patch submitted via pull request. https://github.com/jenkinsci/jenkins/pull/340

          blalor added a comment - Patch submitted via pull request. https://github.com/jenkinsci/jenkins/pull/340

          Code changed in jenkins
          User: Brian Lalor
          Path:
          changelog.html
          core/src/main/java/hudson/util/io/ZipArchiver.java
          core/src/test/java/hudson/util/io/ZipArchiverTest.java
          http://jenkins-ci.org/commit/jenkins/7e48d4ba4029062ccb13a6ba2a53e8e230b46402
          Log:
          [FIXED JENKINS-9942] Convert system path separator to "/"

          The ZipArchiver was visit()'d with a relative path that uses the system's path
          separator, but zip archives require a forward slash for platform compatibility.
          This fix replaces the platform-dependent File.separatorChar with a forward
          slash.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Brian Lalor Path: changelog.html core/src/main/java/hudson/util/io/ZipArchiver.java core/src/test/java/hudson/util/io/ZipArchiverTest.java http://jenkins-ci.org/commit/jenkins/7e48d4ba4029062ccb13a6ba2a53e8e230b46402 Log: [FIXED JENKINS-9942] Convert system path separator to "/" The ZipArchiver was visit()'d with a relative path that uses the system's path separator, but zip archives require a forward slash for platform compatibility. This fix replaces the platform-dependent File.separatorChar with a forward slash.

          dogfood added a comment -

          dogfood added a comment - Integrated in jenkins_main_trunk #1409

            blalor blalor
            djs Dan Savilonis
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: