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

distfork does not setup environment on the slave correctly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • distfork-plugin
    • None
    • Jenkins 1.609.1
      distfork-plugin 1.3
      java8
      master on Windows.

      If a node has been given node properties such as "PATH" or "PATH+FOOBAR" then these are ignored by distfork which results in the distfork command not using the environment on the node and not being able to be built.

      The hacky workaround is to set up these variables as system properties on the machine.

      steps to reproduce

      1) install cygwin in c:\somewhere\not\in\the\path on windows
      2) setup the node to have PATH+CYGWIN=c:\somewhere\not\in\the\path node property.
      3) create a freestyle job - execute windows command -> env
      4) run a distfork command dist-fork -l windows cmd.exe /c

      expected results

      Both the freestyle and the distform have a path that contains c:\somewhere\not\in\the\path

      actual results

      • The freestyjob has the modified path
      • The distfork plugin has the unmodified path
      • attempting to run a command with distfork that is in c:\somewhere\not\in\the\path fails with command not found

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: