WORKSPACE env var on Slave VM running windows has unix path separators instead of windows

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: vsphere-cloud-plugin
    • None
    • Environment:
      Jenkins: Linux 64 bit
      Slave: windows 7 64 bit

      When Jenkins running on Linux issues a job to a vm slave running windows 7, the WORKSPACE environment variable received by the slave running a batch file has Unix style path separators instead of windows style path separators (). As a result, batch file commands such as 'DEL %WORKSPACE%*' results in a failure such as 'users is not a valid option' (because WORKSPACE is set to C:/users/build/workspace).

      Other combinations of Jenkins/slave OSs not attempted.

      Workaround is to simply replace '/' with '\' in WORKSPACE and job runs smoothly.

            Assignee:
            jswager
            Reporter:
            Todd Livesey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: