Creating an ssh agent fails on Windows when Jenkins has not been installed on the C: drive

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Summary

      After creating a node I can see it is attempting to execute the following command and failing with the error "Unable to access jarfile remoting.jar"

      cd "D:\Jenkins" && java -jar remoting.jar -workDir D:\Jenkins\ -jar-cache D:\Jenkins/remoting/jarCache'.

      This is failing as cd does not change the drive.

      It should be cd /d "D:\Jenkins".

      Reproduction steps

      Install jenkins on a drive other than the C:

      1. Go to Manage Jenkins -> Manage Nodes and Clouds
      2. Click + New Node
      3. Fill in the details and select Launch agents via SSH
      4. Click Save
      5. Inspect the log for the node

            Assignee:
            Unassigned
            Reporter:
            mick lang
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: