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

Work around javaws incorrectly putting quotes into the PATH environment variable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: remoting
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Last week I was tracking down an issue where I would get a PATH which looked
      like this:

      Path=C:\Windows\system32;...;"C:\Program Files\Java\jdk1.6.0_06\bin"

      The problem is the quotes - they caused a batch file somewhere deep in the build
      to break because the batch file (correctly!) quoted the %Path%.

      I put tracing info all over the place, and it turned out that this was already
      present at the time the slave was started via Java WebStart, so javaws must be
      the culprit. If you launch it from a command prompt where the quotes are not
      present, they are present by the time the slave starts up, and all goes to ****.

      The workaround for us was to hack EnvVars to strip quotes from that variable
      when it creates the initial one.

        Attachments

          Activity

            People

            • Assignee:
              kktest3 Kohsuke Kawaguchi
              Reporter:
              trejkaz trejkaz
            • Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: