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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ssh-slaves-plugin
    • None

      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

            Unassigned Unassigned
            micklang mick lang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: