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

Invalid environment variable values when running hierarchical jobs on windows slaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      If you try to run a hierarchical job on a windows slave the WORKSPACE environment variable will contain slashes.

      e.g.

      WORKSPACE=C:\JenkinsSlave\workspace\Folder/Test

      The root cause of this is that Slave.getWorkspaceFor(...) calls AbstractItem.getFullName() which will build up the name using '/' as the separator.

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: